2.1.121 [HTML5:2014] Section 6.3.3 document.write()
V0285: No InvalidStateError exception is thrown for a Document object not flagged as an HTML document
The specification states:
-
... document.write() ... The document.write(...) method must act as follows: 1. If the method was invoked on an XML document, throw an InvalidStateError exception and abort these steps.
All document modes (All versions)
No InvalidStateError
exception
is thrown for a Document object not flagged as an HTML document.