2.1.120 [HTML5:2014] Section 6.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.

All document modes (All versions)

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