2.1.110 [W3C-HTML51] Section 7.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.

EdgeHTML Mode

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