<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28864</bug_id>
          
          <creation_ts>2015-06-29 14:53:33 +0000</creation_ts>
          <short_desc>Make document.write() check for &quot;not flagged as an HTML document&quot; instead of &quot;XML document&quot;</short_desc>
          <delta_ts>2016-03-22 13:45:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#closing-the-input-stream</bug_file_loc>
          <status_whiteboard>[good first bug]</status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>121525</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2015-06-29 14:53:33 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/
Multipage: https://html.spec.whatwg.org/multipage/#closing-the-input-stream
Complete: https://html.spec.whatwg.org/#closing-the-input-stream
Referrer: 

Comment:
Make document.write() check for &quot;not flagged as an HTML document&quot; instead of
&quot;XML document&quot;

Posted from: 212.116.72.179
User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2398.0 Safari/537.36 OPR/31.0.1876.0 (Edition developer)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121526</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-06-29 14:56:16 +0000</bug_when>
    <thetext>This has been moved from HTMLDocument to Document together with open() and close(), and we&apos;re trying to implement that in Blink:
https://code.google.com/p/chromium/issues/detail?id=496376

open() and close() both say &quot;If the Document object is not flagged as an HTML document, throw an InvalidStateError exception and abort these steps&quot; while write says &quot;If the method was invoked on an XML document, throw an InvalidStateError exception and abort these steps.&quot;

It would make sense to use the same condition in both cases.

The non-normative documentation of all three talk about XML documents, so these should probably be updated as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125588</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2016-03-22 13:45:02 +0000</bug_when>
    <thetext>https://github.com/whatwg/html/pull/916</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>