2.1.92 [W3C-HTML52] Section 7.4.2. Closing the input stream

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

The specification states:

 ... Closing the input stream
     ...
     The close() method must run the following steps:
  
         1.  If the Document object is [an XML document/not flagged as an HTML 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.