2.1.93 [W3C-HTML52] Section 7.4.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.

EdgeHTML Mode

No InvalidStateError exception is thrown for a Document object not flagged as an HTML document.