Files
browser/src
Karl Seguin 3d6af216dc document.write, document.close, document.open
Add support for both modes - parsing and post-parsing. In post-parsing mode,
document.write implicitly calls document open, and document.open wipes the
document. This mode is probably rarely, if ever, used.

However, while parsing, document.write does not call document.open and does not
remove all existing nodes. It just writes the html into the document where the
parser is. That isn't something we can properly do..but we can hack it. We
create a new DocumentFragment, parse the html into the document fragment, then
transfer the children into the document where we currently are.

Our hack probably doesn't work for some advance usage of document.write (e.g
nested calls), but it should work for more common cases, e.g. injecting a script
tag.
2025-12-19 21:29:28 +08:00
..
2025-08-11 21:37:02 +08:00
2025-11-14 10:52:43 +08:00
2025-11-14 10:52:43 +08:00
2025-12-09 17:10:59 -08:00
2025-11-24 20:12:43 +08:00
2025-12-19 10:05:42 +08:00
2025-12-05 17:48:49 +08:00
2025-11-26 11:05:20 -08:00
2025-11-14 10:52:43 +08:00
2025-11-14 10:52:43 +08:00