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