HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
3896[Conformance Checkers] [Gecko] [Tools] Ignore (most) end tags before the <html> tag.2009-09-18 08:42
@@ -79747,42 +79747,48 @@ document.body.appendChild(text);
     removed; otherwise, if there is no such attribute or resolving it
     fails, run the <span title="concept-appcache-init">application
     cache selection algorithm</span> with no manifest. The algorithm
     must be passed the <code>Document</code> object.</p>
 
     <p>Switch the <span>insertion mode</span> to "<span
     title="insertion mode: before head">before head</span>".</p>
 
    </dd>
 
+   <dt>An end tag whose tag name is one of: "head", "body", "html", "br"</dt>
+   <dd>
+    <p>Act as described in the "anything else" entry below.</p>
+   </dd>
+
+   <dt>Any other end tag</dt>
+   <dd>
+    <p><span>Parse error</span>. Ignore the token.</p>
+   </dd>
+
    <dt>Anything else</dt>
    <dd>
 
     <p>Create an <code>html</code> element. Append it to the
     <code>Document</code> object. Put this element in the <span>stack
     of open elements</span>.</p>
 
     <p>If the <code>Document</code> is being loaded as part of <span
     title="navigate">navigation</span> of a <span>browsing
     context</span>, then: run the <span
     title="concept-appcache-init">application cache selection
     algorithm</span> with no manifest, passing it the
     <code>Document</code> object.</p>
 
     <p>Switch the <span>insertion mode</span> to "<span
     title="insertion mode: before head">before head</span>", then
     reprocess the current token.</p>
 
-    <p class="XXX">Should probably make end tags be ignored, so
-    that "&lt;/head>&lt;!-- -->&lt;html>" puts the comment before the
-    root node (or should we?)</p>
-
    </dd>
 
   </dl>
 
   <p>The root element can end up being removed from the
   <code>Document</code> object, e.g. by scripts; nothing in particular
   happens in such cases, content continues being appended to the nodes
   as described in the next section.</p>
 
 

|