This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: https://html.spec.whatwg.org/ Multipage: https://html.spec.whatwg.org/multipage/#closing-the-input-stream Complete: https://html.spec.whatwg.org/#closing-the-input-stream Referrer: Comment: Make document.write() check for "not flagged as an HTML document" instead of "XML document" Posted from: 212.116.72.179 User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2398.0 Safari/537.36 OPR/31.0.1876.0 (Edition developer)
This has been moved from HTMLDocument to Document together with open() and close(), and we're trying to implement that in Blink: https://code.google.com/p/chromium/issues/detail?id=496376 open() and close() both say "If the Document object is not flagged as an HTML document, throw an InvalidStateError exception and abort these steps" while write says "If the method was invoked on an XML document, throw an InvalidStateError exception and abort these steps." It would make sense to use the same condition in both cases. The non-normative documentation of all three talk about XML documents, so these should probably be updated as well.
https://github.com/whatwg/html/pull/916