[html5] r1314 - /
whatwg at whatwg.org
whatwg at whatwg.org
Sun Mar 2 18:49:49 PST 2008
Author: ianh
Date: 2008-03-02 18:49:46 -0800 (Sun, 02 Mar 2008)
New Revision: 1314
Modified:
index
source
Log:
[ct] (2) Make the processing of correct <html> start tags more explicit. Also, make a text node before <html> give a parse error, which it didn't before.
Modified: index
===================================================================
--- index 2008-03-03 02:33:07 UTC (rev 1313)
+++ index 2008-03-03 02:49:46 UTC (rev 1314)
@@ -41378,6 +41378,24 @@
<dd>
<p>Ignore the token.</p>
+ <dt>A start tag whose tag name is "html"
+
+ <dd>
+ <p><a href="#create">Create an element for the token</a>. Append it to
+ the <code>Document</code> object. Put this element in the <a
+ href="#stack">stack of open elements</a>.</p>
+
+ <p id=parser-appcache>If the token has an attribute "manifest", then run
+ the <a href="#application2"
+ title=concept-appcache-init-with-attribute>application cache selection
+ algorithm</a> with the value of that attribute as the manifest URI.
+ Otherwise, run the <a href="#application3"
+ title=concept-appcache-init-no-attribute>application cache selection
+ algorithm</a> with no manifest.</p>
+
+ <p>Change the <a href="#insertion0">insertion mode</a> to "<a
+ href="#before4" title="insertion mode: before head">before head</a>".</p>
+
<dt>A character token that is <em>not</em> one of U+0009 CHARACTER
TABULATION, U+000A LINE FEED (LF), U+000B LINE TABULATION, U+000C FORM
FEED (FF), <!--U+000D CARRIAGE RETURN (CR),--> or U+0020 SPACE
@@ -41389,20 +41407,16 @@
<dt>An end-of-file token
<dd>
- <p id=parser-appcache>If the token is a start tag token with the tag name
- "html", and it has an attribute "manifest", then run the <a
- href="#application2"
- title=concept-appcache-init-with-attribute>application cache selection
- algorithm</a> with the value of that attribute as the manifest URI.
- Otherwise, run the <a href="#application3"
- title=concept-appcache-init-no-attribute>application cache selection
- algorithm</a> with no manifest.</p>
-
<p>Create an <code><a href="#htmlelement">HTMLElement</a></code> node
with the tag name <code><a href="#html">html</a></code>, in the <a
href="#html-namespace0">HTML namespace</a>. Append it to the
- <code>Document</code> object.</p>
+ <code>Document</code> object. Put this element in the <a
+ href="#stack">stack of open elements</a>.</p>
+ <p>Run the <a href="#application3"
+ title=concept-appcache-init-no-attribute>application cache selection
+ algorithm</a> with no manifest.</p>
+
<p>Change the <a href="#insertion0">insertion mode</a> to "<a
href="#before4" title="insertion mode: before head">before head</a>".</p>
@@ -41946,14 +41960,11 @@
<dt>A start tag whose tag name is "html"
<dd>
- <p>If this start tag token was not the first start tag token, then it is
- a <a href="#parse0">parse error</a>.</p>
+ <p><a href="#parse0">Parse error</a>. For each attribute on the token,
+ check to see if the attribute is already present on the top element of
+ the <a href="#stack">stack of open elements</a>. If it is not, add the
+ attribute and its corresponding value to that element.</p>
- <p>For each attribute on the token, check to see if the attribute is
- already present on the top element of the <a href="#stack">stack of open
- elements</a>. If it is not, add the attribute and its corresponding
- value to that element.</p>
-
<dt>A start tag token whose tag name is one of: "base", "link", "meta",
"script", "style"
Modified: source
===================================================================
--- source 2008-03-03 02:33:07 UTC (rev 1313)
+++ source 2008-03-03 02:49:46 UTC (rev 1314)
@@ -38474,6 +38474,26 @@
<p>Ignore the token.</p>
</dd>
+ <dt>A start tag whose tag name is "html"</dt>
+ <dd>
+
+ <p><span>Create an element for the token</span>. Append it to the
+ <code>Document</code> object. Put this element in the <span>stack
+ of open elements</span>.</p>
+
+ <p id="parser-appcache">If the token has an attribute "manifest",
+ then run the <span
+ title="concept-appcache-init-with-attribute">application cache
+ selection algorithm</span> with the value of that attribute as the
+ manifest URI. Otherwise, run the <span
+ title="concept-appcache-init-no-attribute">application cache
+ selection algorithm</span> with no manifest.</p>
+
+ <p>Change the <span>insertion mode</span> to "<span
+ title="insertion mode: before head">before head</span>".</p>
+
+ </dd>
+
<dt>A character token that is <em>not</em> one of U+0009 CHARACTER
TABULATION, U+000A LINE FEED (LF), U+000B LINE TABULATION, U+000C
FORM FEED (FF), <!--U+000D CARRIAGE RETURN (CR),--> or U+0020 SPACE</dt>
@@ -38482,18 +38502,15 @@
<dt>An end-of-file token</dt>
<dd>
- <p id="parser-appcache">If the token is a start tag token with the
- tag name "html", and it has an attribute "manifest", then run
- the <span title="concept-appcache-init-with-attribute">application
- cache selection algorithm</span> with the value of that attribute
- as the manifest URI. Otherwise, run the <span
+ <p>Create an <code>HTMLElement</code> node with the tag name
+ <code>html</code>, in the <span>HTML namespace</span>. Append it
+ to the <code>Document</code> object. Put this element in the
+ <span>stack of open elements</span>.</p>
+
+ <p>Run the <span
title="concept-appcache-init-no-attribute">application cache
selection algorithm</span> with no manifest.</p>
- <p>Create an <code>HTMLElement</code> node with the tag name
- <code>html</code>, in the <span>HTML namespace</span>. Append it
- to the <code>Document</code> object.</p>
-
<p>Change the <span>insertion mode</span> to "<span
title="insertion mode: before head">before head</span>".</p>
@@ -39081,12 +39098,10 @@
<dt>A start tag whose tag name is "html"</dt>
<dd>
- <p>If this start tag token was not the first start tag token, then
- it is a <span>parse error</span>.</p>
- <p>For each attribute on the token, check to see if the attribute
- is already present on the top element of the <span>stack of open
- elements</span>. If it is not, add the attribute and its
- corresponding value to that element.</p>
+ <p><span>Parse error</span>. For each attribute on the token,
+ check to see if the attribute is already present on the top
+ element of the <span>stack of open elements</span>. If it is not,
+ add the attribute and its corresponding value to that element.</p>
</dd>
<dt>A start tag token whose tag name is one of: "base", "link",
More information about the Commit-Watchers
mailing list