[html5] r1307 - /
whatwg at whatwg.org
whatwg at whatwg.org
Sun Mar 2 14:53:06 PST 2008
Author: ianh
Date: 2008-03-02 14:53:06 -0800 (Sun, 02 Mar 2008)
New Revision: 1307
Modified:
index
source
Log:
[e] (0) DOCTYPE parsing: Rename the 'correctness' flag to 'force-quirks', since it is no longer about correctness. Add a comment to clarify that missing the public and system identifiers is not the same as the empty string.
Modified: index
===================================================================
--- index 2008-03-02 22:46:33 UTC (rev 1306)
+++ index 2008-03-02 22:53:06 UTC (rev 1307)
@@ -38633,10 +38633,11 @@
<p>The output of the tokenisation step is a series of zero or more of the
following tokens: DOCTYPE, start tag, end tag, comment, character,
end-of-file. DOCTYPE tokens have a name, a public identifier, a system
- identifier, and a correctness flag. When a DOCTYPE token is created, its
- name, public identifier, and system identifier must be marked as missing,
- and the correctness flag must be set to <i>correct</i> (its other state is
- <i>incorrect</i>). Start and end tag tokens have a tag name and a list of
+ identifier, and a <i>force-quirks flag</i>. When a DOCTYPE token is
+ created, its name, public identifier, and system identifier must be marked
+ as missing (which is a distinct state from the empty string), and the
+ <i>force-quirks flag</i> must be set to <i>off</i> (its other state is
+ <i>on</i>). Start and end tag tokens have a tag name and a list of
attributes, each of which has a name and a value. Comment and character
tokens have data.
@@ -39565,14 +39566,14 @@
<dt>U+003E GREATER-THAN SIGN (>)
<dd><a href="#parse0">Parse error</a>. Create a new DOCTYPE token. Set
- its correctness flag to <i>incorrect</i>. Emit the token. Switch to the
- <a href="#data-state">data state</a>.
+ its <i>force-quirks flag</i> to <i>on</i>. Emit the token. Switch to
+ the <a href="#data-state">data state</a>.
<dt>EOF
<dd><a href="#parse0">Parse error</a>. Create a new DOCTYPE token. Set
- its correctness flag to <i>incorrect</i>. Emit the token. Reconsume the
- EOF character in the <a href="#data-state">data state</a>.
+ its <i>force-quirks flag</i> to <i>on</i>. Emit the token. Reconsume
+ the EOF character in the <a href="#data-state">data state</a>.
<dt>Anything else
@@ -39608,7 +39609,7 @@
<dt>EOF
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Emit that DOCTYPE token.
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
Reconsume the EOF character in the <a href="#data-state">data
state</a>.
@@ -39645,7 +39646,7 @@
<dt>EOF
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Emit that DOCTYPE token.
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
Reconsume the EOF character in the <a href="#data-state">data
state</a>.
@@ -39663,8 +39664,8 @@
href="#before3">before DOCTYPE system identifier state</a>.</p>
<p>Otherwise, this is the <a href="#parse0">parse error</a>. Set the
- DOCTYPE token's correctness flag to <i>incorrect</i>. Switch to the <a
- href="#bogus0">bogus DOCTYPE state</a>.</p>
+ DOCTYPE token's <i>force-quirks flag</i> to <i>on</i>. Switch to the
+ <a href="#bogus0">bogus DOCTYPE state</a>.</p>
</dl>
<dt><dfn id=before2>Before DOCTYPE public identifier state</dfn>
@@ -39702,20 +39703,20 @@
<dt>U+003E GREATER-THAN SIGN (>)
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Emit that DOCTYPE token. Switch
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Switch
to the <a href="#data-state">data state</a>.
<dt>EOF
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Emit that DOCTYPE token.
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
Reconsume the EOF character in the <a href="#data-state">data
state</a>.
<dt>Anything else
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Switch to the <a
+ <i>force-quirks flag</i> to <i>on</i>. Switch to the <a
href="#bogus0">bogus DOCTYPE state</a>.
</dl>
@@ -39733,13 +39734,13 @@
<dt>U+003E GREATER-THAN SIGN (>)
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Emit that DOCTYPE token. Switch
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Switch
to the <a href="#data-state">data state</a>.
<dt>EOF
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Emit that DOCTYPE token.
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
Reconsume the EOF character in the <a href="#data-state">data
state</a>.
@@ -39764,13 +39765,13 @@
<dt>U+003E GREATER-THAN SIGN (>)
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Emit that DOCTYPE token. Switch
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Switch
to the <a href="#data-state">data state</a>.
<dt>EOF
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Emit that DOCTYPE token.
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
Reconsume the EOF character in the <a href="#data-state">data
state</a>.
@@ -39821,14 +39822,14 @@
<dt>EOF
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Emit that DOCTYPE token.
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
Reconsume the EOF character in the <a href="#data-state">data
state</a>.
<dt>Anything else
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Switch to the <a
+ <i>force-quirks flag</i> to <i>on</i>. Switch to the <a
href="#bogus0">bogus DOCTYPE state</a>.
</dl>
@@ -39867,20 +39868,20 @@
<dt>U+003E GREATER-THAN SIGN (>)
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Emit that DOCTYPE token. Switch
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Switch
to the <a href="#data-state">data state</a>.
<dt>EOF
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Emit that DOCTYPE token.
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
Reconsume the EOF character in the <a href="#data-state">data
state</a>.
<dt>Anything else
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Switch to the <a
+ <i>force-quirks flag</i> to <i>on</i>. Switch to the <a
href="#bogus0">bogus DOCTYPE state</a>.
</dl>
@@ -39898,13 +39899,13 @@
<dt>U+003E GREATER-THAN SIGN (>)
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Emit that DOCTYPE token. Switch
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Switch
to the <a href="#data-state">data state</a>.
<dt>EOF
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Emit that DOCTYPE token.
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
Reconsume the EOF character in the <a href="#data-state">data
state</a>.
@@ -39929,13 +39930,13 @@
<dt>U+003E GREATER-THAN SIGN (>)
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Emit that DOCTYPE token. Switch
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Switch
to the <a href="#data-state">data state</a>.
<dt>EOF
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Emit that DOCTYPE token.
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
Reconsume the EOF character in the <a href="#data-state">data
state</a>.
@@ -39974,7 +39975,7 @@
<dt>EOF
<dd><a href="#parse0">Parse error</a>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Emit that DOCTYPE token.
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
Reconsume the EOF character in the <a href="#data-state">data
state</a>.
@@ -39982,7 +39983,7 @@
<dd><a href="#parse0">Parse error</a>. Switch to the <a
href="#bogus0">bogus DOCTYPE state</a>. (This does <em>not</em> set the
- DOCTYPE token's correctness flag to <i>incorrect</i>.)
+ DOCTYPE token's <i>force-quirks flag</i> to <i>on</i>.)
</dl>
<dt><dfn id=bogus0>Bogus DOCTYPE state</dfn>
@@ -40479,7 +40480,7 @@
href="#quirks">quirks mode</a>:</p>
<ul class=brief>
- <li> The correctness flag is set to <i>incorrect</i>.
+ <li> The <i>force-quirks flag</i> is set to <i>on</i>.
<li> The name is set to anything other than "<code
title="">HTML</code>".
Modified: source
===================================================================
--- source 2008-03-02 22:46:33 UTC (rev 1306)
+++ source 2008-03-02 22:53:06 UTC (rev 1307)
@@ -36196,13 +36196,14 @@
<p>The output of the tokenisation step is a series of zero or more
of the following tokens: DOCTYPE, start tag, end tag, comment,
character, end-of-file. DOCTYPE tokens have a name, a public
- identifier, a system identifier, and a correctness flag. When a
- DOCTYPE token is created, its name, public identifier, and system
- identifier must be marked as missing, and the correctness flag must
- be set to <i>correct</i> (its other state is
- <i>incorrect</i>). Start and end tag tokens have a tag name and a
- list of attributes, each of which has a name and a value. Comment
- and character tokens have data.</p>
+ identifier, a system identifier, and a <i>force-quirks
+ flag</i>. When a DOCTYPE token is created, its name, public
+ identifier, and system identifier must be marked as missing (which
+ is a distinct state from the empty string), and the <i>force-quirks
+ flag</i> must be set to <i>off</i> (its other state is
+ <i>on</i>). Start and end tag tokens have a tag name and a list of
+ attributes, each of which has a name and a value. Comment and
+ character tokens have data.</p>
<p>When a token is emitted, it must immediately be handled by the
<span>tree construction</span> stage. The tree construction stage
@@ -37109,12 +37110,12 @@
<dt>U+003E GREATER-THAN SIGN (>)</dt>
<dd><span>Parse error</span>. Create a new DOCTYPE token. Set its
- correctness flag to <i>incorrect</i>. Emit the token. Switch to
+ <i>force-quirks flag</i> to <i>on</i>. Emit the token. Switch to
the <span>data state</span>.</dd>
<dt>EOF</dt>
<dd><span>Parse error</span>. Create a new DOCTYPE token. Set its
- correctness flag to <i>incorrect</i>. Emit the token. Reconsume
+ <i>force-quirks flag</i> to <i>on</i>. Emit the token. Reconsume
the EOF character in the <span>data state</span>.</dd>
<dt>Anything else</dt>
@@ -37147,9 +37148,9 @@
state</span>.</dd>
<dt>EOF</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Emit that DOCTYPE token. Reconsume the
- EOF character in the <span>data state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
+ Reconsume the EOF character in the <span>data state</span>.</dd>
<dt>Anything else</dt>
<dd>Append the current input character to the current DOCTYPE
@@ -37180,9 +37181,9 @@
state</span>.</dd>
<dt>EOF</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Emit that DOCTYPE token. Reconsume the
- EOF character in the <span>data state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
+ Reconsume the EOF character in the <span>data state</span>.</dd>
<dt>Anything else</dt>
<dd>
@@ -37198,7 +37199,7 @@
to the <span>before DOCTYPE system identifier state</span>.</p>
<p>Otherwise, this is the <span>parse error</span>. Set the
- DOCTYPE token's correctness flag to <i>incorrect</i>. Switch to
+ DOCTYPE token's <i>force-quirks flag</i> to <i>on</i>. Switch to
the <span>bogus DOCTYPE state</span>.</p>
</dd>
@@ -37234,18 +37235,18 @@
(single-quoted) state</span>.</dd>
<dt>U+003E GREATER-THAN SIGN (>)</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Emit that DOCTYPE token. Switch to the
- <span>data state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE
+ token. Switch to the <span>data state</span>.</dd>
<dt>EOF</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Emit that DOCTYPE token. Reconsume the
- EOF character in the <span>data state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
+ Reconsume the EOF character in the <span>data state</span>.</dd>
<dt>Anything else</dt>
<dd><span>Parse error</span>. Set the DOCTYPE token's
- correctness flag to <i>incorrect</i>. Switch to the <span>bogus
+ <i>force-quirks flag</i> to <i>on</i>. Switch to the <span>bogus
DOCTYPE state</span>.</dd>
</dl>
@@ -37264,14 +37265,14 @@
<dd>Switch to the <span>after DOCTYPE public identifier state</span>.</dd>
<dt>U+003E GREATER-THAN SIGN (>)</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Emit that DOCTYPE token. Switch to the
- <span>data state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE
+ token. Switch to the <span>data state</span>.</dd>
<dt>EOF</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Emit that DOCTYPE token. Reconsume the
- EOF character in the <span>data state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
+ Reconsume the EOF character in the <span>data state</span>.</dd>
<dt>Anything else</dt>
<dd>Append the current input character to the current DOCTYPE
@@ -37294,14 +37295,14 @@
<dd>Switch to the <span>after DOCTYPE public identifier state</span>.</dd>
<dt>U+003E GREATER-THAN SIGN (>)</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Emit that DOCTYPE token. Switch to the
- <span>data state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE
+ token. Switch to the <span>data state</span>.</dd>
<dt>EOF</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Emit that DOCTYPE token. Reconsume the
- EOF character in the <span>data state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
+ Reconsume the EOF character in the <span>data state</span>.</dd>
<dt>Anything else</dt>
<dd>Append the current input character to the current DOCTYPE
@@ -37343,14 +37344,14 @@
state</span>.</dd>
<dt>EOF</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Emit that DOCTYPE token. Reconsume the
- EOF character in the <span>data state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
+ Reconsume the EOF character in the <span>data state</span>.</dd>
<dt>Anything else</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Switch to the <span>bogus DOCTYPE
- state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Switch to the <span>bogus
+ DOCTYPE state</span>.</dd>
</dl>
@@ -37383,19 +37384,19 @@
(single-quoted) state</span>.</dd>
<dt>U+003E GREATER-THAN SIGN (>)</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Emit that DOCTYPE token. Switch to the
- <span>data state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE
+ token. Switch to the <span>data state</span>.</dd>
<dt>EOF</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Emit that DOCTYPE token. Reconsume the
- EOF character in the <span>data state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
+ Reconsume the EOF character in the <span>data state</span>.</dd>
<dt>Anything else</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Switch to the <span>bogus DOCTYPE
- state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Switch to the <span>bogus
+ DOCTYPE state</span>.</dd>
</dl>
@@ -37413,14 +37414,14 @@
<dd>Switch to the <span>after DOCTYPE system identifier state</span>.</dd>
<dt>U+003E GREATER-THAN SIGN (>)</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Emit that DOCTYPE token. Switch to the
- <span>data state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE
+ token. Switch to the <span>data state</span>.</dd>
<dt>EOF</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Emit that DOCTYPE token. Reconsume the
- EOF character in the <span>data state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
+ Reconsume the EOF character in the <span>data state</span>.</dd>
<dt>Anything else</dt>
<dd>Append the current input character to the current DOCTYPE
@@ -37443,14 +37444,14 @@
<dd>Switch to the <span>after DOCTYPE system identifier state</span>.</dd>
<dt>U+003E GREATER-THAN SIGN (>)</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Emit that DOCTYPE token. Switch to the
- <span>data state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE
+ token. Switch to the <span>data state</span>.</dd>
<dt>EOF</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Emit that DOCTYPE token. Reconsume the
- EOF character in the <span>data state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
+ Reconsume the EOF character in the <span>data state</span>.</dd>
<dt>Anything else</dt>
<dd>Append the current input character to the current DOCTYPE
@@ -37482,14 +37483,14 @@
state</span>.</dd>
<dt>EOF</dt>
- <dd><span>Parse error</span>. Set the DOCTYPE token's correctness
- flag to <i>incorrect</i>. Emit that DOCTYPE token. Reconsume the
- EOF character in the <span>data state</span>.</dd>
+ <dd><span>Parse error</span>. Set the DOCTYPE token's
+ <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token.
+ Reconsume the EOF character in the <span>data state</span>.</dd>
<dt>Anything else</dt>
<dd><span>Parse error</span>. Switch to the <span>bogus DOCTYPE
state</span>. (This does <em>not</em> set the DOCTYPE token's
- correctness flag to <i>incorrect</i>.)</dd>
+ <i>force-quirks flag</i> to <i>on</i>.)</dd>
</dl>
@@ -37813,7 +37814,7 @@
set the document to <span>quirks mode</span>:</p>
<ul class="brief">
- <li> The correctness flag is set to <i>incorrect</i>. </li>
+ <li> The <i>force-quirks flag</i> is set to <i>on</i>. </li>
<li> The name is set to anything other than "<code title="">HTML</code>". </li>
<li> The public identifier is set to: "<code title="">+//Silmaril//dtd html Pro v0r11 19970101//EN</code>" </li>
<li> The public identifier is set to: "<code title="">-//AdvaSoft Ltd//DTD HTML 3.0 asWedit + extensions//EN</code>" </li>
More information about the Commit-Watchers
mailing list