Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Test document.write() on image and text documents #10209
See https://bugzilla.mozilla.org/show_bug.cgi?id=1444872 for context.
HTML does have this note:
But the "document open steps" also say nothing of them delaying the load event, so dunno. I'd say this is undefined or a bug in Firefox...
The load event for the parent is delayed by any activity in the child, I would think.
They do say to set the document readiness to "loading". It's a bit weird to have that and not be considered as blocking onload.
It's not super-clear to me whether close() fires load or not; I bet browsers differ....
More generally, this is a symptom of Firefox treating open() as "more like navigation" and Safari/Chrome treating it more as "mess with this existing thing" and the spec not having any idea what it wants to treat it as.