[html5] r2230 - [] (0) WF2: Collapse down some of the <input> algorithms for simplicity. Fill in [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Sep 24 04:25:56 PDT 2008


Author: ianh
Date: 2008-09-24 04:25:55 -0700 (Wed, 24 Sep 2008)
New Revision: 2230

Modified:
   index
   source
Log:
[] (0) WF2: Collapse down some of the <input> algorithms for simplicity. Fill in a little more type=datetime detail (not much). Minor editorial fixes.

Modified: index
===================================================================
--- index	2008-09-24 10:44:03 UTC (rev 2229)
+++ index	2008-09-24 11:25:55 UTC (rev 2230)
@@ -348,21 +348,24 @@
 
          <li><a href="#vaguer"><span class=secno>2.4.4.2. </span>Vaguer
           moments in time</a>
-        </ul>
 
-       <li><a href="#time-offsets"><span class=secno>2.4.5 </span>Time
-        offsets</a>
+         <li><a href="#utc-dates"><span class=secno>2.4.4.3. </span>UTC dates
+          and times</a>
 
-       <li><a href="#space-separated"><span class=secno>2.4.6
+         <li><a href="#time-offsets"><span class=secno>2.4.4.4. </span>Time
+          offsets</a>
+        </ul>
+
+       <li><a href="#space-separated"><span class=secno>2.4.5
         </span>Space-separated tokens</a>
 
-       <li><a href="#comma-separated"><span class=secno>2.4.7
+       <li><a href="#comma-separated"><span class=secno>2.4.6
         </span>Comma-separated tokens</a>
 
-       <li><a href="#keywords"><span class=secno>2.4.8 </span>Keywords and
+       <li><a href="#keywords"><span class=secno>2.4.7 </span>Keywords and
         enumerated attributes</a>
 
-       <li><a href="#syntax-references"><span class=secno>2.4.9
+       <li><a href="#syntax-references"><span class=secno>2.4.8
         </span>References</a>
       </ul>
 
@@ -4727,14 +4730,26 @@
     <p>Abort these steps (the string is parsed).
   </ol>
 
-  <h4 id=time-offsets><span class=secno>2.4.5 </span>Time offsets</h4>
+  <h5 id=utc-dates><span class=secno>2.4.4.3. </span>UTC dates and times</h5>
 
-  <p class=big-issue><dfn id=valid6>valid time offset</dfn>, <dfn
+  <p>A <dfn id=utc-date>UTC date and time</dfn> consists of a specific
+   Gregorian date expressed relative to the UTC timezone, consisting of a
+   year, a month, a day, an hour, a minute, a second, and a fraction of a
+   second. <a href="#refsGREGORIAN">[GREGORIAN]</a>
+
+  <p class=big-issue>... <dfn id=valid6>valid UTC date and time</dfn>
+
+  <p class=big-issue>... rules to <dfn id=parse0>parse a UTC date and
+   time</dfn>
+
+  <h5 id=time-offsets><span class=secno>2.4.4.4. </span>Time offsets</h5>
+
+  <p class=big-issue><dfn id=valid7>valid time offset</dfn>, <dfn
    id=rules4>rules for parsing time offsets</dfn>, <dfn id=time-offset>time
    offset serialization rules</dfn>; in the format "5d4h3m2s1ms" or "3m 9.2s"
    or "00:00:00.00" or similar.
 
-  <h4 id=space-separated><span class=secno>2.4.6 </span>Space-separated
+  <h4 id=space-separated><span class=secno>2.4.5 </span>Space-separated
    tokens</h4>
 
   <p>A <dfn id=set-of>set of space-separated tokens</dfn> is a set of zero or
@@ -4879,7 +4894,7 @@
    to a single space, except at the start and end of the string, where such
    spaces are removed.
 
-  <h4 id=comma-separated><span class=secno>2.4.7 </span>Comma-separated
+  <h4 id=comma-separated><span class=secno>2.4.6 </span>Comma-separated
    tokens</h4>
 
   <p>A <dfn id=set-of0>set of comma-separated tokens</dfn> is a set of zero
@@ -4933,7 +4948,7 @@
     <p>Return <var title="">tokens</var>.
   </ol>
 
-  <h4 id=keywords><span class=secno>2.4.8 </span>Keywords and enumerated
+  <h4 id=keywords><span class=secno>2.4.7 </span>Keywords and enumerated
    attributes</h4>
 
   <p>Some attributes are defined as taking one of a finite set of keywords.
@@ -4977,9 +4992,9 @@
    value default</i>), but for various reasons that isn't the way this
    specification actually defines it.
 
-  <h4 id=syntax-references><span class=secno>2.4.9 </span>References</h4>
+  <h4 id=syntax-references><span class=secno>2.4.8 </span>References</h4>
 
-  <p>A <dfn id=valid7>valid hash-name reference</dfn> to an element of type
+  <p>A <dfn id=valid8>valid hash-name reference</dfn> to an element of type
    <var title="">type</var> is a string consisting of a U+0023 NUMBER SIGN
    (<code title="">#</code>) character followed by a string which exactly
    matches the value of the <code title="">name</code> attribute of an
@@ -5033,7 +5048,7 @@
    script, in which case the associated <code>Document</code> is the script's
    <a href="#script4">script document context</a>.</span>
 
-  <p>A <a href="#url">URL</a> is a <dfn id=valid8>valid URL</dfn> if at least
+  <p>A <a href="#url">URL</a> is a <dfn id=valid9>valid URL</dfn> if at least
    one of the following conditions holds:
 
   <ul>
@@ -5065,7 +5080,7 @@
 
   <h4 id=parsing0><span class=secno>2.5.2 </span>Parsing URLs</h4>
 
-  <p>To <dfn id=parse0>parse a URL</dfn> <var title="">url</var> into its
+  <p>To <dfn id=parse1>parse a URL</dfn> <var title="">url</var> into its
    component parts, the user agent must use the following steps:
 
   <ol>
@@ -5280,7 +5295,7 @@
      URL</a>.)
 
    <li>
-    <p><a href="#parse0" title="parse a URL">Parse</a> <var
+    <p><a href="#parse1" title="parse a URL">Parse</a> <var
      title="">url</var> into its component parts.
 
    <li>
@@ -5513,7 +5528,7 @@
    title="">#</code>" before a <fragment> component.
 
   <p>For the purposes of the above definitions, URLs must be parsed using the
-   <a href="#parse0" title="parse a URL">URL parsing rules</a> defined in
+   <a href="#parse1" title="parse a URL">URL parsing rules</a> defined in
    this specification.
 
   <table>
@@ -9776,7 +9791,7 @@
    address of the document's <a href="#application0">application cache</a> <a
    href="#the-manifest" title=concept-appcache-manifest>manifest</a>, if
    there is one. If the attribute is present, the attribute's value must be a
-   <a href="#valid8">valid URL</a>.
+   <a href="#valid9">valid URL</a>.
 
   <p>The <code title=attr-html-manifest><a
    href="#manifest">manifest</a></code> attribute only <a
@@ -9937,7 +9952,7 @@
    attribute, or both.
 
   <p>The <dfn id=href title=attr-base-href><code>href</code></dfn> content
-   attribute, if specified, must contain a <a href="#valid8">valid URL</a>.
+   attribute, if specified, must contain a <a href="#valid9">valid URL</a>.
 
   <p>A <code><a href="#base">base</a></code> element, if it has an <code
    title=attr-base-href><a href="#href">href</a></code> attribute, must come
@@ -9952,7 +9967,7 @@
    attributes, all but the first are ignored.
 
   <p>The <dfn id=target title=attr-base-target><code>target</code></dfn>
-   attribute, if specified, must contain a <a href="#valid10">valid browsing
+   attribute, if specified, must contain a <a href="#valid11">valid browsing
    context name or keyword</a>. User agents use this name when <a
    href="#following0">following hyperlinks</a>.
 
@@ -10033,7 +10048,7 @@
 
   <p>The destination of the link is given by the <dfn id=href1
    title=attr-link-href><code>href</code></dfn> attribute, which must be
-   present and must contain a <a href="#valid8">valid URL</a>. If the <code
+   present and must contain a <a href="#valid9">valid URL</a>. If the <code
    title=attr-link-href><a href="#href1">href</a></code> attribute is absent,
    then the element does not define a link.
 
@@ -10892,7 +10907,7 @@
       U, a U+0052 LATIN CAPITAL LETTER R or a U+0072 LATIN SMALL LETTER R, a
       U+004C LATIN CAPITAL LETTER L or a U+006C LATIN SMALL LETTER L, a
       U+003D EQUALS SIGN (<code title="">=</code>), and then a <a
-      href="#valid8">valid URL</a>.
+      href="#valid9">valid URL</a>.
     </ul>
 
     <p>In the former case, the integer represents a number of seconds before
@@ -11302,7 +11317,7 @@
 
   <p>The <dfn id=src title=attr-script-src><code>src</code></dfn> attribute,
    if specified, gives the address of the external script resource to use.
-   The value of the attribute must be a <a href="#valid8">valid URL</a>
+   The value of the attribute must be a <a href="#valid9">valid URL</a>
    identifying a script resource of the type given by the <code
    title=attr-script-type><a href="#type3">type</a></code> attribute, if the
    attribute is present, or of the type "<code
@@ -11884,7 +11899,7 @@
    document with no <code><a href="#noscript">noscript</a></code> elements
    and no <code><a href="#script1">script</a></code> elements, and such that
    no step in the algorithm causes an <a href="#html-0">HTML parser</a> to
-   flag a <a href="#parse2">parse error</a>:
+   flag a <a href="#parse3">parse error</a>:
 
   <ol>
    <li>Remove every <code><a href="#script1">script</a></code> element from
@@ -11986,7 +12001,7 @@
    represents a target for events generated by a remote server.
 
   <p>The <dfn id=src1 title=attr-eventsource-src><code>src</code></dfn>
-   attribute, if specified, must give a <a href="#valid8">valid URL</a>
+   attribute, if specified, must give a <a href="#valid9">valid URL</a>
    identifying a resource that uses the <code>text/event-stream</code>
    format.
 
@@ -13540,7 +13555,7 @@
    title=attr-blockquote-cite><code>cite</code></dfn> attribute.
 
   <p>If the <code title=attr-blockquote-cite><a href="#cite">cite</a></code>
-   attribute is present, it must be a <a href="#valid8">valid URL</a>. User
+   attribute is present, it must be a <a href="#valid9">valid URL</a>. User
    agents should allow users to follow such citation links.
 
   <p>If a <code><a href="#blockquote">blockquote</a></code> element is <a
@@ -14371,7 +14386,7 @@
    <dfn id=cite1 title=attr-q-cite><code>cite</code></dfn> attribute.
 
   <p>If the <code title=attr-q-cite><a href="#cite1">cite</a></code>
-   attribute is present, it must be a <a href="#valid8">valid URL</a>. User
+   attribute is present, it must be a <a href="#valid9">valid URL</a>. User
    agents should allow users to follow such citation links.
 
   <p>If a <code><a href="#q">q</a></code> element is contained (directly or
@@ -16759,7 +16774,7 @@
    part of that document that discusses the change.
 
   <p>If the <code title=attr-mod-cite><a href="#cite3">cite</a></code>
-   attribute is present, it must be a <a href="#valid8">valid URL</a> that
+   attribute is present, it must be a <a href="#valid9">valid URL</a> that
    explains the change. User agents should allow users to follow such
    citation links.
 
@@ -17112,7 +17127,7 @@
    content</a>.
 
   <p>The <code title=attr-img-src><a href="#src3">src</a></code> attribute
-   must be present, and must contain a <a href="#valid8">valid URL</a>
+   must be present, and must contain a <a href="#valid9">valid URL</a>
    referencing a non-interactive, optionally animated, image resource that is
    neither paged nor scripted.
 
@@ -18310,7 +18325,7 @@
   <p>The <dfn id=src5 title=attr-iframe-src><code>src</code></dfn> attribute
    gives the address of a page that the nested <a href="#browsing1">browsing
    context</a> is to contain. The attribute, if present, must be a <a
-   href="#valid8">valid URL</a>. When the browsing context is created, if the
+   href="#valid9">valid URL</a>. When the browsing context is created, if the
    attribute is present, the user agent must <a href="#navigate">navigate</a>
    the element's browsing context to the given <a href="#url">URL</a>, with
    <a href="#replacement">replacement enabled</a>, and with the <code><a
@@ -18339,7 +18354,7 @@
    href="#aboutblank">about:blank</a></code><!-- XXX xref --> page.
 
   <p>The <dfn id=name1 title=attr-iframe-name><code>name</code></dfn>
-   attribute, if present, must be a <a href="#valid9">valid browsing context
+   attribute, if present, must be a <a href="#valid10">valid browsing context
    name</a>. When the browsing context is created, if the attribute is
    present, the <a href="#browsing3">browsing context name</a> must be set to
    the value of this attribute; otherwise, the <a href="#browsing3">browsing
@@ -18746,7 +18761,7 @@
 
   <p>The <dfn id=src7 title=attr-embed-src><code>src</code></dfn> attribute
    gives the address of the resource being embedded. The attribute, if
-   present, must contain a <a href="#valid8">valid URL</a>.
+   present, must contain a <a href="#valid9">valid URL</a>.
 
   <p>The <dfn id=type6 title=attr-embed-type><code>type</code></dfn>
    attribute, if present, gives the MIME type of the plugin to instantiate.
@@ -18959,7 +18974,7 @@
 
   <p>The <dfn id=data title=attr-object-data><code>data</code></dfn>
    attribute, if present, specifies the address of the resource. If present,
-   the attribute must be a <a href="#valid8">valid URL</a>.
+   the attribute must be a <a href="#valid9">valid URL</a>.
 
   <p>The <dfn id=type8 title=attr-object-type><code>type</code></dfn>
    attribute, if present, specifies the type of the resource. If present, the
@@ -18971,7 +18986,7 @@
    href="#type8">type</a></code> attributes must be present.
 
   <p>The <dfn id=name3 title=attr-object-name><code>name</code></dfn>
-   attribute, if present, must be a <a href="#valid9">valid browsing context
+   attribute, if present, must be a <a href="#valid10">valid browsing context
    name</a>.
 
   <p>When the element is created, and subsequently whenever the <code
@@ -19444,7 +19459,7 @@
   <p>The <dfn id=poster title=attr-video-poster><code>poster</code></dfn>
    attribute gives the address of an image file that the user agent can show
    while no video data is available. The attribute, if present, must contain
-   a <a href="#valid8">valid URL</a>. If the specified resource is to be
+   a <a href="#valid9">valid URL</a>. If the specified resource is to be
    used, it must be <a href="#fetch" title=fetch>fetched</a> when the element
    is created or when the <code title=attr-video-poster><a
    href="#poster">poster</a></code> attribute is set. The <dfn
@@ -19854,7 +19869,7 @@
 
   <p>The <dfn id=src9 title=attr-source-src><code>src</code></dfn> attribute
    gives the address of the <a href="#media10">media resource</a>. The value
-   must be a <a href="#valid8">valid URL</a>. This attribute must be present.
+   must be a <a href="#valid9">valid URL</a>. This attribute must be present.
 
   <p>The <dfn id=type10 title=attr-source-type><code>type</code></dfn>
    attribute gives the type of the <a href="#media10">media resource</a>, to
@@ -20214,7 +20229,7 @@
   <p>The <dfn id=src11 title=attr-media-src><code>src</code></dfn> content
    attribute on <a href="#media7" title="media element">media elements</a>
    gives the address of the media resource (video, audio) to show. The
-   attribute, if present, must contain a <a href="#valid8">valid URL</a>.
+   attribute, if present, must contain a <a href="#valid9">valid URL</a>.
 
   <p>If the <code title=attr-media-src><a href="#src11">src</a></code>
    attribute of a <a href="#media7">media element</a> that is already in a
@@ -25362,7 +25377,7 @@
    <code><a href="#img">img</a></code> or <code><a
    href="#object">object</a></code> element. The <code
    title=attr-area-usemap>usemap</code> attribute, if specified, must be a <a
-   href="#valid7">valid hash-name reference</a> to a <code><a
+   href="#valid8">valid hash-name reference</a> to a <code><a
    href="#map">map</a></code> element.
 
   <div class=example>
@@ -28077,7 +28092,7 @@
 
    <dd><code title=attr-input-type><a href="#type14">type</a></code>
 
-   <dd><code title=attr-input-value><a href="#value8">value</a></code>
+   <dd><code title=attr-input-value><a href="#value9">value</a></code>
 
    <dt>DOM interface:
 
@@ -28109,7 +28124,7 @@
            attribute DOMString <a href="#target4" title=dom-fs-target>target</a>;
            attribute DOMString <a href="#type15" title=dom-input-type>type</a>;
            attribute DOMString <a href="#defaultvalue" title=dom-input-defaultValue>defaultValue</a>;
-           attribute DOMString <a href="#value9" title=dom-input-value>value</a>;
+           attribute DOMString <a href="#value10" title=dom-input-value>value</a>;
            attribute DOMTimeStamp <a href="#valueasdate" title=dom-input-valueAsDate>valueAsDate</a>;
            attribute float <a href="#valueasnumber" title=dom-input-valueAsNumber>valueAsNumber</a>;
   readonly attribute <a href="#htmloptionelement">HTMLOptionElement</a> <a href="#selectedoption" title=dom-input-selectedOption>selectedOption</a>;
@@ -29535,13 +29550,13 @@
    title=attr-input-type><a href="#type14">type</a></code> attribute changes
    state, and when the element is first created, the element's rendering and
    behaviour must change to the new state's accordingly and the <dfn
-   id=control0>control initialization algorithm</dfn> defined for the <code
+   id=value8>value sanitization algorithm</dfn> defined for the <code
    title=attr-input-type><a href="#type14">type</a></code> attribute's new
    state must be invoked.
 
   <p>Each <code><a href="#input0">input</a></code> element has a <a
    href="#value12" title=concept-fe-value>value</a>, which is exposed by the
-   <code title=dom-input-value><a href="#value9">value</a></code> DOM
+   <code title=dom-input-value><a href="#value10">value</a></code> DOM
    attribute.
 
   <p>Each <code><a href="#input0">input</a></code> element has a boolean <dfn
@@ -29585,25 +29600,26 @@
    whenever the user interacts with the control in a way that changes the <a
    href="#value12" title=concept-fe-value>value</a>.
 
-  <p>The <dfn id=value8 title=attr-input-value><code>value</code></dfn>
+  <p>The <dfn id=value9 title=attr-input-value><code>value</code></dfn>
    content attribute gives the default <a href="#value12"
    title=concept-fe-value>value</a> of the <code><a
    href="#input0">input</a></code> element. When the <code
-   title=attr-input-value><a href="#value8">value</a></code> content
-   attribute is added, set, or removed, and when the element is first
-   created, after invoking the <a href="#control0">control initialization
-   algorithm</a>, the <dfn id=default2>default value change algorithm</dfn>
-   defined for the <code title=attr-input-type><a
-   href="#type14">type</a></code> attribute's current state must be invoked.
+   title=attr-input-value><a href="#value9">value</a></code> content
+   attribute is added, set, or removed, if the control is not <i
+   title=concept-input-dirty><a href="#dirty0">dirty</a></i>, the user agent
+   must set the <a href="#value12" title=concept-fe-value>value</a> of the
+   element to the value of the <code title=attr-input-value><a
+   href="#value9">value</a></code> content attribute, if there is one, or the
+   empty string otherwise, and run the <a href="#value8">value sanitization
+   algorithm</a>.
 
   <p>The <a href="#reset5" title=concept-form-reset-control>reset
    algorithm</a> for <code><a href="#input0">input</a></code> elements is to
    set the <a href="#dirty" title=concept-input-dirty-flag>dirty flag</a>
    back to false (not <i title=concept-input-dirty><a
-   href="#dirty0">dirty</a></i>), and then invoke the <a
-   href="#default2">default value change algorithm</a> defined for the <code
-   title=attr-input-type><a href="#type14">type</a></code> attribute's
-   current state.
+   href="#dirty0">dirty</a></i>), and then invoke the <a href="#value8">value
+   sanitization algorithm</a> defined for the <code title=attr-input-type><a
+   href="#type14">type</a></code> attribute's current state.
 
   <p>The <code title=attr-fae-form><a href="#form0">form</a></code> attribute
    is used to explicitly associate the <code><a
@@ -29642,7 +29658,7 @@
    id=defaultvalue
    title=dom-input-defaultValue><code>defaultValue</code></dfn> DOM attribute
    must <a href="#reflect">reflect</a> the <code title=attr-input-value><a
-   href="#value8">value</a></code> content attribute.
+   href="#value9">value</a></code> content attribute.
 
   <p>The <code title=dom-cva-willValidate><a
    href="#willvalidate">willValidate</a></code>, <code
@@ -29684,24 +29700,9 @@
    href="#input0">input</a></code> elements.
 
   <p><strong>The <a href="#text3" title=attr-input-type-text>Text</a> state's
-   <a href="#control0">control initialization algorithm</a> is as
-   follows:</strong> <a href="#strip">Strip line breaks from the value</a>.
+   <a href="#value8">value sanitization algorithm</a> is as follows:</strong>
+   <a href="#strip">Strip line breaks from the value</a>.
 
-  <p><strong>The <a href="#text3" title=attr-input-type-text>Text</a> state's
-   <a href="#default2">default value change algorithm</a> is as
-   follows:</strong> If the <code><a href="#input0">input</a></code> element
-   is not <i title=concept-input-dirty><a href="#dirty0">dirty</a></i> then
-   set the <a href="#value12" title=concept-fe-value>value</a> of the element
-   to the value of the <code title=attr-input-value><a
-   href="#value8">value</a></code> content attribute and <a
-   href="#strip">strip line breaks from the value</a>.
-
-  <p><strong>The <a href="#text3" title=attr-input-type-text>Text</a> state's
-   <a href="#value10"><code title=dom-input-value>value</code> setter
-   algorithm</a> is as follows:</strong> Set the <a href="#value12"
-   title=concept-fe-value>value</a> of the element to the new value and <a
-   href="#strip">strip line breaks from the value</a>.
-
   <p>When an <code><a href="#input0">input</a></code> element's <code
    title=attr-input-type><a href="#type14">type</a></code> attribute is in
    the <a href="#text3" title=attr-input-type-text>Text</a> state, the
@@ -29779,26 +29780,9 @@
 
   <p><strong>The <a href="#password1"
    title=attr-input-type-password>Password</a> state's <a
-   href="#control0">control initialization algorithm</a> is as
-   follows:</strong> <a href="#strip">Strip line breaks from the value</a>.
+   href="#value8">value sanitization algorithm</a> is as follows:</strong> <a
+   href="#strip">Strip line breaks from the value</a>.
 
-  <p><strong>The <a href="#password1"
-   title=attr-input-type-password>Password</a> state's <a
-   href="#default2">default value change algorithm</a> is as
-   follows:</strong> If the <code><a href="#input0">input</a></code> element
-   is not <i title=concept-input-dirty><a href="#dirty0">dirty</a></i> then
-   set the <a href="#value12" title=concept-fe-value>value</a> of the element
-   to the value of the <code title=attr-input-value><a
-   href="#value8">value</a></code> content attribute and <a
-   href="#strip">strip line breaks from the value</a>.
-
-  <p><strong>The <a href="#password1"
-   title=attr-input-type-password>Password</a> state's <a
-   href="#value10"><code title=dom-input-value>value</code> setter
-   algorithm</a> is as follows:</strong> Set the <a href="#value12"
-   title=concept-fe-value>value</a> of the element to the new value and <a
-   href="#strip">strip line breaks from the value</a>.
-
   <p>When an <code><a href="#input0">input</a></code> element's <code
    title=attr-input-type><a href="#type14">type</a></code> attribute is in
    the <a href="#password1" title=attr-input-type-password>Password</a>
@@ -29877,24 +29861,9 @@
    href="#input0">input</a></code> elements.
 
   <p><strong>The <a href="#e-mail0" title=attr-input-type-email>E-mail</a>
-   state's <a href="#control0">control initialization algorithm</a> is as
+   state's <a href="#value8">value sanitization algorithm</a> is as
    follows:</strong> <a href="#strip">Strip line breaks from the value</a>.
 
-  <p><strong>The <a href="#e-mail0" title=attr-input-type-email>E-mail</a>
-   state's <a href="#default2">default value change algorithm</a> is as
-   follows:</strong> If the <code><a href="#input0">input</a></code> element
-   is not <i title=concept-input-dirty><a href="#dirty0">dirty</a></i> then
-   set the <a href="#value12" title=concept-fe-value>value</a> of the element
-   to the value of the <code title=attr-input-value><a
-   href="#value8">value</a></code> content attribute and <a
-   href="#strip">strip line breaks from the value</a>.
-
-  <p><strong>The <a href="#e-mail0" title=attr-input-type-email>E-mail</a>
-   state's <a href="#value10"><code title=dom-input-value>value</code> setter
-   algorithm</a> is as follows:</strong> Set the <a href="#value12"
-   title=concept-fe-value>value</a> of the element to the new value and <a
-   href="#strip">strip line breaks from the value</a>.
-
   <p><strong>Constraint validation:</strong> While the <a href="#value12"
    title=concept-fe-value>value</a> of the element does not match the
    <code>addr-spec</code> token defined in RFC 2822 section 3.4.1, excluding
@@ -29982,27 +29951,12 @@
    href="#input0">input</a></code> elements.
 
   <p><strong>The <a href="#url2" title=attr-input-type-url>URL</a> state's <a
-   href="#control0">control initialization algorithm</a> is as
-   follows:</strong> <a href="#strip">Strip line breaks from the value</a>.
+   href="#value8">value sanitization algorithm</a> is as follows:</strong> <a
+   href="#strip">Strip line breaks from the value</a>.
 
-  <p><strong>The <a href="#url2" title=attr-input-type-url>URL</a> state's <a
-   href="#default2">default value change algorithm</a> is as
-   follows:</strong> If the <code><a href="#input0">input</a></code> element
-   is not <i title=concept-input-dirty><a href="#dirty0">dirty</a></i> then
-   set the <a href="#value12" title=concept-fe-value>value</a> of the element
-   to the value of the <code title=attr-input-value><a
-   href="#value8">value</a></code> content attribute and <a
-   href="#strip">strip line breaks from the value</a>.
-
-  <p><strong>The <a href="#url2" title=attr-input-type-url>URL</a> state's <a
-   href="#value10"><code title=dom-input-value>value</code> setter
-   algorithm</a> is as follows:</strong> Set the <a href="#value12"
-   title=concept-fe-value>value</a> of the element to the new value and <a
-   href="#strip">strip line breaks from the value</a>.
-
   <p><strong>Constraint validation:</strong> While the <a href="#value12"
    title=concept-fe-value>value</a> of the element is not a <a
-   href="#valid8">valid URL</a>, the element is <a
+   href="#valid9">valid URL</a>, the element is <a
    href="#suffering">suffering from a type mismatch</a>.
 
   <p>When an <code><a href="#input0">input</a></code> element's <code
@@ -30067,8 +30021,9 @@
    the <a href="#date-and0" title=attr-input-type-datetime>Date and Time</a>
    state, the element represents a control for setting the element's <a
    href="#value12" title=concept-fe-value>value</a> to a string representing
-   a specific <span>UTC date and time</span>. User agents may display the
-   time in whatever timezone is appropriate for the user.
+   a specific <a href="#utc-date">UTC date and time</a>. User agents may
+   display the date and time in whatever timezone is appropriate for the
+   user.
 
   <p>If an <code><a href="#input0">input</a></code> element whose <code
    title=attr-input-type><a href="#type14">type</a></code> attribute is in
@@ -30076,38 +30031,35 @@
    state is <i title=concept-input-mutable><a
    href="#mutable">mutable</a></i>, the user should allow the user to change
    the date and time represented by its <a href="#value12"
-   title=concept-fe-value>value</a>. User agents must not allow the user to
-   set the <a href="#value12" title=concept-fe-value>value</a> to a string
-   that is not a <span>valid UTC date and time</span>. If the user agent
-   provides a user interface for selecting a date and time, then the <a
-   href="#value12" title=concept-fe-value>value</a> must be set to a
-   <span>valid UTC date and time</span> representing the user's selection.
-   User agents should allow the user to set the <a href="#value12"
+   title=concept-fe-value>value</a>, as obtained by <a href="#parse0"
+   title="parse a UTC date and time">parsing a UTC date and tiem</a> from it.
+   User agents must not allow the user to set the <a href="#value12"
+   title=concept-fe-value>value</a> to a string that is not a <a
+   href="#valid6">valid UTC date and time</a>. If the user agent provides a
+   user interface for selecting a date and time, then the <a href="#value12"
+   title=concept-fe-value>value</a> must be set to a <a href="#valid6">valid
+   UTC date and time</a> representing the user's selection. User agents
+   should allow the user to set the <a href="#value12"
    title=concept-fe-value>value</a> to the empty string.
 
   <p><strong>The <a href="#date-and0" title=attr-input-type-datetime>Date and
-   Time</a> state's <a href="#control0">control initialization algorithm</a>
-   is as follows:</strong> If the <a href="#value12"
-   title=concept-fe-value>value</a> of the element is not a <span>valid UTC
-   date and time</span>, then set it to the empty string instead.
+   Time</a> state's <a href="#value8">value sanitization algorithm</a> is as
+   follows:</strong> If the <a href="#value12"
+   title=concept-fe-value>value</a> of the element is not a <a
+   href="#valid6">valid UTC date and time</a>, then set it to the empty
+   string instead.
 
-  <p><strong>The <a href="#date-and0" title=attr-input-type-datetime>Date and
-   Time</a> state's <a href="#default2">default value change algorithm</a> is
-   as follows:</strong> If the <code><a href="#input0">input</a></code>
-   element is not <i title=concept-input-dirty><a
-   href="#dirty0">dirty</a></i> then set the <a href="#value12"
-   title=concept-fe-value>value</a> of the element to the value of the <code
-   title=attr-input-value><a href="#value8">value</a></code> content
-   attribute and run the <a href="#control0">control initialization
-   algorithm</a>.
+  <p class=big-issue><strong>The <a href="#date-and0"
+   title=attr-input-type-datetime>Date and Time</a> state's <a
+   href="#valueasdate1"><code title=dom-input-valueAsDate>valueAsDate</code>
+   setter algorithm</a> is as follows:</strong> ...
 
-  <p><strong>The <a href="#date-and0" title=attr-input-type-datetime>Date and
-   Time</a> state's <a href="#value10"><code
-   title=dom-input-value>value</code> setter algorithm</a> is as
-   follows:</strong> Set the <a href="#value12"
-   title=concept-fe-value>value</a> of the element to the new value and run
-   the <a href="#control0">control initialization algorithm</a>.</p>
-  <!-- XXX min, max, step -->
+  <p class=big-issue><strong>The <a href="#date-and0"
+   title=attr-input-type-datetime>Date and Time</a> state's <a
+   href="#valueasnumber1"><code
+   title=dom-input-valueAsNumber>valueAsNumber</code> setter algorithm</a> is
+   as follows:</strong> ...</p>
+  <!-- XXX min, max, step; parsing for those -->
 
   <p>When an <code><a href="#input0">input</a></code> element's <code
    title=attr-input-type><a href="#type14">type</a></code> attribute is in
@@ -30445,9 +30397,9 @@
   <!-- XXX xref value? -->
 
   <p>The autocompletion mechanism must be implemented by the user agent
-   acting as if the user had modified the element's <span
-   title=concept-input-value>value</span>, and must be done at a time where
-   the element is <i title=concept-input-mutable><a
+   acting as if the user had modified the element's <a href="#value12"
+   title=concept-fe-value>value</a>, and must be done at a time where the
+   element is <i title=concept-input-mutable><a
    href="#mutable">mutable</a></i> (e.g. just after the element has been
    inserted into the document, or when the user agent <span>stops
    parsing</span>).
@@ -30489,21 +30441,22 @@
 
   <h6 id=value><span class=secno>4.10.4.3.1. </span>Value manipulation</h6>
 
-  <p>The <dfn id=value9 title=dom-input-value><code>value</code></dfn> DOM
-   attribute allows secripts to manipulate the <span
-   title=concept-input-value>value</span> of an <code><a
+  <p>The <dfn id=value10 title=dom-input-value><code>value</code></dfn> DOM
+   attribute allows scripts to manipulate the <a href="#value12"
+   title=concept-fe-value>value</a> of an <code><a
    href="#input0">input</a></code> element. On getting, it must return the
-   current <span title=concept-input-value>value</span> of the element. On
-   setting, it must run the <dfn id=value10><code
-   title=dom-input-value>value</code> setter algorithm</dfn> defined for the
-   element's <code title=attr-input-type><a href="#type14">type</a></code>
-   attribute's current state.
+   current <a href="#value12" title=concept-fe-value>value</a> of the
+   element. On setting, it must set the element's <a href="#value12"
+   title=concept-fe-value>value</a> to the new value, and then invoke the <a
+   href="#value8">value sanitization algorithm</a> defined for the element's
+   <code title=attr-input-type><a href="#type14">type</a></code> attribute's
+   current state.
 
   <hr>
 
   <p>The <dfn id=valueasdate
    title=dom-input-valueAsDate><code>valueAsDate</code></dfn> DOM attribute
-   represents the <span title=concept-input-value>value</span> of the
+   represents the <a href="#value12" title=concept-fe-value>value</a> of the
    element, interpreted as a date.
 
   <p>On getting, if the <code title=dom-input-valueAsDate><a
@@ -30526,8 +30479,8 @@
 
   <p>The <dfn id=valueasnumber
    title=dom-input-valueAsNumber><code>valueAsNumber</code></dfn> DOM
-   attribute represents the <span title=concept-input-value>value</span> of
-   the element, interpreted as a number.
+   attribute represents the <a href="#value12"
+   title=concept-fe-value>value</a> of the element, interpreted as a number.
 
   <p>On getting, if the <code title=dom-input-valueAsNumber><a
    href="#valueasnumber">valueAsNumber</a></code> attribute applies, as
@@ -30535,9 +30488,9 @@
    title=attr-input-type><a href="#type14">type</a></code> attribute's
    current state, then run the <dfn id=valueasnumber0><code
    title=dom-input-valueAsNumber>valueAsNumber</code> getter algorithm</dfn>
-   defined for that state. Otherwise, return the <span
-   title=concept-input-value>value</span> of the element, cast to the type of
-   the DOM attribute.
+   defined for that state. Otherwise, return the <a href="#value12"
+   title=concept-fe-value>value</a> of the element, cast to the type of the
+   DOM attribute.
 
   <p>On setting, if the <code title=dom-input-valueAsNumber><a
    href="#valueasnumber">valueAsNumber</a></code> attribute applies, as
@@ -30545,10 +30498,10 @@
    title=attr-input-type><a href="#type14">type</a></code> attribute's
    current state, then run the <dfn id=valueasnumber1><code
    title=dom-input-valueAsNumber>valueAsNumber</code> setter algorithm</dfn>
-   defined for that state. Otherwise, the <span
-   title=concept-input-value>value</span> must be set to the shortest
-   possible representation of the given value that is a <a
-   href="#valid1">valid floating point number</a> in base ten.
+   defined for that state. Otherwise, the <a href="#value12"
+   title=concept-fe-value>value</a> must be set to the shortest possible
+   representation of the given value that is a <a href="#valid1">valid
+   floating point number</a> in base ten.
 
   <h6 id=others...><span class=secno>4.10.4.3.2. </span>Others...</h6>
 
@@ -30872,7 +30825,7 @@
            attribute DOMString <span title=dom-option-label>label</span>;
            attribute boolean <span title=dom-option-defaultSelected>defaultSelected</span>;
            attribute boolean <span title=dom-option-selected>selected</span>;
-           attribute DOMString <a href="#value9" title=dom-input-value>value</a>;
+           attribute DOMString <a href="#value10" title=dom-input-value>value</a>;
 
   readonly attribute DOMString <span title=dom-option-text>text</span>;
   readonly attribute long <span title=dom-option-index>index</span>;
@@ -33487,7 +33440,7 @@
 
     <p>The <code title=dom-provider-getCellData><a
      href="#getcelldata">getCellData()</a></code> method must return the
-     <code title=dom-input-value><a href="#value9">value</a></code> of the
+     <code title=dom-input-value><a href="#value10">value</a></code> of the
      <code><a href="#input0">input</a></code> element.</p>
 
     <p>The <code title=dom-provider-getCellClasses><a
@@ -33498,7 +33451,7 @@
     <p>The <code title=dom-provider-editCell><a
      href="#editcell">editCell()</a></code> method must set the <code><a
      href="#input0">input</a></code> element's <code title=dom-input-value><a
-     href="#value9">value</a></code> DOM attribute to the value of the third
+     href="#value10">value</a></code> DOM attribute to the value of the third
      argument to the method.</p>
 
     <p>The <code title=dom-provider-setCellCheckedState><a
@@ -34324,7 +34277,7 @@
     href="#radiogroup">radiogroup</a></code>
 
    <dd><code title=attr-command-default><a
-    href="#default3">default</a></code>
+    href="#default2">default</a></code>
 
    <dd>Also, the <code title=attr-command-title><a
     href="#title6">title</a></code> attribute has special semantics on this
@@ -34341,7 +34294,7 @@
            attribute boolean <a href="#disabled10" title=dom-command-disabled>disabled</a>;
            attribute boolean <a href="#checked4" title=dom-command-checked>checked</a>;
            attribute DOMString <a href="#radiogroup0" title=dom-command-radiogroup>radiogroup</a>;
-           attribute boolean <a href="#default4" title=dom-command-default>default</a>;
+           attribute boolean <a href="#default3" title=dom-command-default>default</a>;
  void <a href="#click" title=dom-command-click>click</a>(); // shadows <code><a href="#htmlelement">HTMLElement</a></code>.<code title=dom-click><a href="#click1">click()</a></code>
 };</pre>
 
@@ -34373,7 +34326,7 @@
 
   <p>The <dfn id=icon title=attr-command-icon><code>icon</code></dfn>
    attribute gives a picture that represents the command. If the attribute is
-   specified, the attribute's value must contain a <a href="#valid8">valid
+   specified, the attribute's value must contain a <a href="#valid9">valid
    URL</a>.
 
   <p>The <dfn id=disabled9
@@ -34406,12 +34359,12 @@
 
   <p>If the <code><a href="#command0">command</a></code> element is used when
    <span title="menu generation">generating</span> a <span>context
-   menu</span>, then the <dfn id=default3
+   menu</span>, then the <dfn id=default2
    title=attr-command-default><code>default</code></dfn> attribute indicates,
    if present, that the command is the one that would have been invoked if
    the user had directly activated the menu's subject instead of using its
    context menu. The <code title=attr-command-default><a
-   href="#default3">default</a></code> attribute is a <a
+   href="#default2">default</a></code> attribute is a <a
    href="#boolean0">boolean attribute</a>.
 
   <div class=example>
@@ -34427,7 +34380,7 @@
    title=dom-command-disabled><code>disabled</code></dfn>, <dfn id=checked4
    title=dom-command-checked><code>checked</code></dfn>, <dfn id=radiogroup0
    title=dom-command-radiogroup><code>radiogroup</code></dfn>, and <dfn
-   id=default4 title=dom-command-default><code>default</code></dfn> DOM
+   id=default3 title=dom-command-default><code>default</code></dfn> DOM
    attributes must <a href="#reflect">reflect</a> the content attributes of
    the same name.
 
@@ -34909,7 +34862,7 @@
    this means for each facet -->.
     If the element is a <code><a href="#command0">command</a></code> element
     with a <code title=attr-command-default><a
-    href="#default3">default</a></code> attribute, mark the command as being
+    href="#default2">default</a></code> attribute, mark the command as being
     a default command.</dd>
    <!-- XXX if there's an
    Icon URL for the command, it should be <span
@@ -35386,7 +35339,7 @@
 
   <p>If the <a href="#type22" title=command-facet-Type>Type</a> is "command",
    then it is the string given by the <code title=attr-input-value><a
-   href="#value8">value</a></code> attribute, if any, and a
+   href="#value9">value</a></code> attribute, if any, and a
    <span>UA-dependent value</span><!-- XXX xref--> that the UA uses to label
    the button itself if the attribute is absent.
 
@@ -35398,7 +35351,7 @@
    question is the <a href="#label4" title=command-facet-Label>Label</a> (in
    DOM terms, this the string given by <code><var
    title="">element</var>.labels[0].textContent</code>). Otherwise, the value
-   of the <code title=attr-input-value><a href="#value8">value</a></code>
+   of the <code title=attr-input-value><a href="#value9">value</a></code>
    attribute, if present, is the <a href="#label4"
    title=command-facet-Label>Label</a>. Otherwise, the <a href="#label4"
    title=command-facet-Label>Label</a> is the empty string.
@@ -35813,7 +35766,7 @@
    processing model is to be applied to that element.
 
   <p>The <code title=attr-template><a href="#template">template</a></code>
-   attribute, when specified, must be a <a href="#valid8">valid URL</a> to an
+   attribute, when specified, must be a <a href="#valid9">valid URL</a> to an
    XML or HTML document, or a fragment identifier pointing at another part of
    the document. If there is a fragment identifier present, then the element
    with that ID in the target document must be a <code><a
@@ -35829,7 +35782,7 @@
   <p>The <dfn id=ref title=attr-ref><code>ref</code></dfn> attribute may be
    specified on any element on which the <code title=attr-template><a
    href="#template">template</a></code> attribute is specified. If it is
-   specified, it must be a <a href="#valid8">valid URL</a> to an XML or HTML
+   specified, it must be a <a href="#valid9">valid URL</a> to an XML or HTML
    document, or a fragment identifier pointing at another part of the
    document.
 
@@ -36642,9 +36595,9 @@
    data mining tools are likely to never instantiate browsing contexts.
 
   <p>The main <a href="#view">view</a> through which a user primarily
-   interacts with a user agent is the <dfn id=default5>default view</dfn>.
+   interacts with a user agent is the <dfn id=default4>default view</dfn>.
 
-  <p class=note>The <a href="#default5">default view</a> of a
+  <p class=note>The <a href="#default4">default view</a> of a
    <code>Document</code> is given by the <code title="">defaultView</code>
    attribute on the <code>Document</code> object's <code>DocumentView</code>
    interface. <a href="#refsDOM3VIEWS">[DOM3VIEWS]</a>
@@ -36916,12 +36869,13 @@
    name</dfn>. By default, a browsing context has no name (its name is not
    set).
 
-  <p>A <dfn id=valid9>valid browsing context name</dfn> is any string with at
-   least one character that does not start with a U+005F LOW LINE character.
-   (Names starting with an underscore are reserved for special keywords.)
+  <p>A <dfn id=valid10>valid browsing context name</dfn> is any string with
+   at least one character that does not start with a U+005F LOW LINE
+   character. (Names starting with an underscore are reserved for special
+   keywords.)
 
-  <p>A <dfn id=valid10>valid browsing context name or keyword</dfn> is any
-   string that is either a <a href="#valid9">valid browsing context name</a>
+  <p>A <dfn id=valid11>valid browsing context name or keyword</dfn> is any
+   string that is either a <a href="#valid10">valid browsing context name</a>
    or that is an <a href="#ascii">ASCII case-insensitive</a> match for one
    of: <code title="">_blank</code>, <code title="">_self</code>, <code
    title="">_parent</code>, or <code title="">_top</code>.
@@ -37028,7 +36982,7 @@
 
   <h3 id=the-default0><span class=secno>5.2 </span>The default view</h3>
 
-  <p>The <code>AbstractView</code> object of <a href="#default5"
+  <p>The <code>AbstractView</code> object of <a href="#default4"
    title="default view">default views</a> must also implement the <code><a
    href="#window">Window</a></code> and <code>EventTarget</code> interfaces.
 
@@ -37130,7 +37084,7 @@
    href="#browsing1">browsing context</a> has an associated <dfn
    id=list-of2>list of added properties</dfn> that, when a document is <a
    href="#active" title="active document">active</a>, are available on the
-   <code>Document</code>'s <a href="#default5">default view</a>'s <code><a
+   <code>Document</code>'s <a href="#default4">default view</a>'s <code><a
    href="#window">Window</a></code> object. A <code>Document</code> object's
    <a href="#list-of2">list of added properties</a> must be empty when the
    <code>Document</code> object is created.
@@ -37179,7 +37133,7 @@
   <p>The method has four arguments, though they are all optional.
 
   <p>The first argument, <var title="">url</var>, must be a <a
-   href="#valid8">valid URL</a> for a page to load in the browsing context.
+   href="#valid9">valid URL</a> for a page to load in the browsing context.
    If no arguments are provided, or if the first argument is the empty
    string, then the <var title="">url</var> argument defaults to "<code><a
    href="#aboutblank">about:blank</a></code><!-- XXX xref -->". The argument
@@ -37189,7 +37143,7 @@
 
   <p>The second argument, <var title="">target</var>, specifies the <a
    href="#browsing3" title="browsing context name">name</a> of the browsing
-   context that is to be navigated. It must be a <a href="#valid10">valid
+   context that is to be navigated. It must be a <a href="#valid11">valid
    browsing context name or keyword</a>. If fewer than two arguments are
    provided, then the <var title="">name</var> argument defaults to the value
    "<code>_blank</code>".
@@ -37295,7 +37249,7 @@
        the <a href="#origin0">origin</a> is being determined.
 
      <li>
-      <p><a href="#parse0" title="parse a url">Parse</a> <var
+      <p><a href="#parse1" title="parse a url">Parse</a> <var
        title="">url</var>.
 
      <li>
@@ -39687,16 +39641,16 @@
     <p>When the current section is the explicit section or the online
      whitelist section, data lines must consist of zero or more U+0020 SPACE
      and U+0009 CHARACTER TABULATION (tab) characters, a <a
-     href="#valid8">valid URL</a> identifying a resource other than the
+     href="#valid9">valid URL</a> identifying a resource other than the
      manifest itself, and then zero or more U+0020 SPACE and U+0009 CHARACTER
      TABULATION (tab) characters.</p>
 
     <p>When the current section is the fallback section, data lines must
      consist of zero or more U+0020 SPACE and U+0009 CHARACTER TABULATION
-     (tab) characters, a <a href="#valid8">valid URL</a> identifying a
+     (tab) characters, a <a href="#valid9">valid URL</a> identifying a
      resource other than the manifest itself, one or more U+0020 SPACE and
      U+0009 CHARACTER TABULATION (tab) characters, another <a
-     href="#valid8">valid URL</a> identifying a resource other than the
+     href="#valid9">valid URL</a> identifying a resource other than the
      manifest itself, and then zero or more U+0020 SPACE and U+0009 CHARACTER
      TABULATION (tab) characters.</p>
 
@@ -39738,7 +39692,7 @@
 
   <h5 id=parsing1><span class=secno>5.7.3.3. </span>Parsing cache manifests</h5>
 
-  <p>When a user agent is to <dfn id=parse1>parse a manifest</dfn>, it means
+  <p>When a user agent is to <dfn id=parse2>parse a manifest</dfn>, it means
    that the user agent must run the following steps:
 
   <ol>
@@ -40080,7 +40034,7 @@
 
     <p>If the resource is labeled with the MIME type <code
      title="">text/cache-manifest</code>, parse <var title="">manifest</var>
-     according to the <a href="#parse1" title="parse a manifest">rules for
+     according to the <a href="#parse2" title="parse a manifest">rules for
      parsing manifests</a>, obtaining a list of <a href="#explicit"
      title=concept-appcache-explicit>explicit entries</a>, <a
      href="#fallback0" title=concept-appcache-fallback>fallback entries</a>
@@ -42105,7 +42059,7 @@
 
   <ol>
    <li>
-    <p><a href="#parse0" title="parse a url">Parse</a> the <a
+    <p><a href="#parse1" title="parse a url">Parse</a> the <a
      href="#url">URL</a>, and let <i>fragid</i> be the <a
      href="#ltfragmentgt" title=url-fragment><fragment></a> component
      of the URL.
@@ -43486,7 +43440,7 @@
 
   <p>The <dfn id=href6 title=attr-hyperlink-href><code>href</code></dfn>
    attribute on a hyperlink element must have a value that is a <a
-   href="#valid8">valid URL</a>. This URL is the <em>destination
+   href="#valid9">valid URL</a>. This URL is the <em>destination
    resource</em> of the hyperlink.
 
   <div class=note>
@@ -43507,7 +43461,7 @@
 
   <p>The <dfn id=target6
    title=attr-hyperlink-target><code>target</code></dfn> attribute, if
-   present, must be a <a href="#valid10">valid browsing context name or
+   present, must be a <a href="#valid11">valid browsing context name or
    keyword</a>. User agents use this name when <a
    href="#following0">following hyperlinks</a>.
 
@@ -45869,7 +45823,7 @@
      default value. For <code><a href="#input0">input</a></code> elements
      this means updating the <code title=dom-input-defaultValue><a
      href="#defaultvalue">defaultValue</a></code> DOM attribute as well as
-     the <code title=dom-input-value><a href="#value9">value</a></code> DOM
+     the <code title=dom-input-value><a href="#value10">value</a></code> DOM
      attribute; for <code><a href="#select">select</a></code> elements it
      means updating the <code><a href="#option">option</a></code> elements'
      <code title=dom-option-defaultSelected>defaultSelected</code> DOM
@@ -48482,7 +48436,7 @@
    title="">url</var>)</code></dfn> constructor takes one argument, <var
    title="">url</var>, which specifies the <a href="#url">URL</a> to which to
    connect. When a <code><a href="#websocket0">WebSocket</a></code> object is
-   created, the UA must <a href="#parse0" title="parse a url">parse</a> this
+   created, the UA must <a href="#parse1" title="parse a url">parse</a> this
    argument and verify that the URL parses without failure and has a <a
    href="#ltschemegt" title=url-scheme><scheme></a> component whose
    value is either "<code title="">ws</code>" or "<code title="">wss</code>",
@@ -49386,7 +49340,7 @@
   <ol>
    <li>
     <p>If the value of the <var title="">targetOrigin</var> argument is not a
-     single U+002A ASTERISK character ("*"), and <a href="#parse0"
+     single U+002A ASTERISK character ("*"), and <a href="#parse1"
      title="parse a url">parsing</a> it as a <a href="#url">URL</a> fails,
      then throw a <code>SYNTAX_ERR</code> exception and abort the overall set
      of steps.</p>
@@ -49422,7 +49376,7 @@
      the <code title=dom-MessageEvent-source><a
      href="#source3">source</a></code> attribute must be set to the <code><a
      href="#window">Window</a></code> object of the <a
-     href="#default5">default view</a> of the <a href="#browsing1">browsing
+     href="#default4">default view</a> of the <a href="#browsing1">browsing
      context</a> for which the <code>Document</code> object with which the
      script is associated is the <a href="#active">active
      document</a><!--, if there is one, or null
@@ -49454,7 +49408,7 @@
 
    <li>
     <p>If the value of the <var title="">targetOrigin</var> argument is not a
-     single U+002A ASTERISK character ("*"), and <a href="#parse0"
+     single U+002A ASTERISK character ("*"), and <a href="#parse1"
      title="parse a url">parsing</a> it as a <a href="#url">URL</a> fails,
      then throw a <code>SYNTAX_ERR</code> exception and abort the overall set
      of steps.</p>
@@ -49503,7 +49457,7 @@
      the <code title=dom-MessageEvent-source><a
      href="#source3">source</a></code> attribute must be set to the <code><a
      href="#window">Window</a></code> object of the <a
-     href="#default5">default view</a> of the <a href="#browsing1">browsing
+     href="#default4">default view</a> of the <a href="#browsing1">browsing
      context</a> for which the <code>Document</code> object with which the
      script is associated is the <a href="#active">active
      document</a><!--, if there is one, or null
@@ -50410,7 +50364,7 @@
 
     <div class=example>
      <p>In the following example, the <code title=attr-input-value><a
-      href="#value8">value</a></code> attribute is given with the unquoted
+      href="#value9">value</a></code> attribute is given with the unquoted
       attribute value syntax:</p>
 
      <pre><input <em>value=yes</em>></pre>
@@ -50921,7 +50875,7 @@
 
   <p>This specification defines the parsing rules for HTML documents, whether
    they are syntactically correct or not. Certain points in the parsing
-   algorithm are said to be <dfn id=parse2 title="parse error">parse
+   algorithm are said to be <dfn id=parse3 title="parse error">parse
    errors</dfn>. The error handling for parse errors is well-defined: user
    agents must either act as described below when encountering such problems,
    or must abort processing at the first error that they encounter for which
@@ -51452,7 +51406,7 @@
    column of the following table, it must instead use the encoding given in
    the cell in the second column of the same row. Any bytes that are treated
    differently due to this encoding aliasing must be considered <a
-   href="#parse2" title="parse error">parse errors</a>.
+   href="#parse3" title="parse error">parse errors</a>.
 
   <table>
    <caption>Character encoding overrides</caption>
@@ -51615,7 +51569,7 @@
 
   <p>All U+0000 NULL characters in the input must be replaced by U+FFFD
    REPLACEMENT CHARACTERs. Any occurrences of such characters is a <a
-   href="#parse2">parse error</a>.
+   href="#parse3">parse error</a>.
 
   <p>Any occurrences of any characters in the ranges U+0001 to U+0008,
    <!-- HT, LF allowed --> U+000B, <!-- FF, CR allowed --> U+000E to U+001F,
@@ -51627,7 +51581,7 @@
    U+3FFFE, U+3FFFF, U+4FFFE, U+4FFFF, U+5FFFE, U+5FFFF, U+6FFFE, U+6FFFF,
    U+7FFFE, U+7FFFF, U+8FFFE, U+8FFFF, U+9FFFE, U+9FFFF, U+AFFFE, U+AFFFF,
    U+BFFFE, U+BFFFF, U+CFFFE, U+CFFFF, U+DFFFE, U+DFFFF, U+EFFFE, U+EFFFF,
-   U+FFFFE, U+FFFFF, U+10FFFE, and U+10FFFF are <a href="#parse2"
+   U+FFFFE, U+FFFFF, U+10FFFE, and U+10FFFF are <a href="#parse3"
    title="parse error">parse errors</a>. (These are all control characters or
    permanently undefined Unicode characters.)
 
@@ -52258,16 +52212,16 @@
   <p>When a start tag token is emitted with its <i>self-closing flag</i> set,
    if the flag is not <dfn id=acknowledged title="acknowledge self-closing
    flag">acknowledged</dfn> when it is processed by the tree construction
-   stage, that is a <a href="#parse2">parse error</a>.
+   stage, that is a <a href="#parse3">parse error</a>.
 
   <p>When an end tag token is emitted, the <a href="#content4">content model
    flag</a> must be switched to the PCDATA state.
 
   <p>When an end tag token is emitted with attributes, that is a <a
-   href="#parse2">parse error</a>.
+   href="#parse3">parse error</a>.
 
   <p>When an end tag token is emitted with its <i>self-closing flag</i> set,
-   that is a <a href="#parse2">parse error</a>.
+   that is a <a href="#parse3">parse error</a>.
 
   <p>Before each step of the tokeniser, the user agent may check to see if
    either one of the scripts in the <a href="#list-of1">list of scripts that
@@ -52415,18 +52369,18 @@
 
      <dt>U+003E GREATER-THAN SIGN (>)
 
-     <dd><a href="#parse2">Parse error</a>. Emit a U+003C LESS-THAN SIGN
+     <dd><a href="#parse3">Parse error</a>. Emit a U+003C LESS-THAN SIGN
       character token and a U+003E GREATER-THAN SIGN character token. Switch
       to the <a href="#data-state0">data state</a>.
 
      <dt>U+003F QUESTION MARK (?)
 
-     <dd><a href="#parse2">Parse error</a>. Switch to the <a
+     <dd><a href="#parse3">Parse error</a>. Switch to the <a
       href="#bogus1">bogus comment state</a>.
 
      <dt>Anything else
 
-     <dd><a href="#parse2">Parse error</a>. Emit a U+003C LESS-THAN SIGN
+     <dd><a href="#parse3">Parse error</a>. Emit a U+003C LESS-THAN SIGN
       character token and reconsume the current input character in the <a
       href="#data-state0">data state</a>.
     </dl>
@@ -52485,18 +52439,18 @@
 
    <dt>U+003E GREATER-THAN SIGN (>)
 
-   <dd><a href="#parse2">Parse error</a>. Switch to the <a
+   <dd><a href="#parse3">Parse error</a>. Switch to the <a
     href="#data-state0">data state</a>.
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Emit a U+003C LESS-THAN SIGN
+   <dd><a href="#parse3">Parse error</a>. Emit a U+003C LESS-THAN SIGN
     character token and a U+002F SOLIDUS character token. Reconsume the EOF
     character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
 
-   <dd><a href="#parse2">Parse error</a>. Switch to the <a
+   <dd><a href="#parse3">Parse error</a>. Switch to the <a
     href="#bogus1">bogus comment state</a>.
   </dl>
 
@@ -52535,7 +52489,7 @@
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Emit the current tag token.
+   <dd><a href="#parse3">Parse error</a>. Emit the current tag token.
     Reconsume the EOF character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
@@ -52584,12 +52538,12 @@
 
    <dt>U+003D EQUALS SIGN (=)
 
-   <dd><a href="#parse2">Parse error</a>. Treat it as per the "anything else"
+   <dd><a href="#parse3">Parse error</a>. Treat it as per the "anything else"
     entry below.
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Emit the current tag token.
+   <dd><a href="#parse3">Parse error</a>. Emit the current tag token.
     Reconsume the EOF character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
@@ -52640,12 +52594,12 @@
 
    <dt>U+0027 APOSTROPHE (')
 
-   <dd><a href="#parse2">Parse error</a>. Treat it as per the "anything else"
+   <dd><a href="#parse3">Parse error</a>. Treat it as per the "anything else"
     entry below.
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Emit the current tag token.
+   <dd><a href="#parse3">Parse error</a>. Emit the current tag token.
     Reconsume the EOF character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
@@ -52658,7 +52612,7 @@
    the tag token, if appropriate), the complete attribute's name must be
    compared to the other attributes on the same token; if there is already an
    attribute on the token with the exact same name, then this is a <a
-   href="#parse2">parse error</a> and the new attribute must be dropped,
+   href="#parse3">parse error</a> and the new attribute must be dropped,
    along with the value that gets associated with it (if any).
 
   <h5 id=after><span class=secno>8.2.4.8. </span><dfn id=after4>After
@@ -52703,12 +52657,12 @@
 
    <dt>U+0027 APOSTROPHE (')
 
-   <dd><a href="#parse2">Parse error</a>. Treat it as per the "anything else"
+   <dd><a href="#parse3">Parse error</a>. Treat it as per the "anything else"
     entry below.
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Emit the current tag token.
+   <dd><a href="#parse3">Parse error</a>. Emit the current tag token.
     Reconsume the EOF character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
@@ -52752,17 +52706,17 @@
 
    <dt>U+003E GREATER-THAN SIGN (>)
 
-   <dd><a href="#parse2">Parse error</a>. Emit the current tag token. Switch
+   <dd><a href="#parse3">Parse error</a>. Emit the current tag token. Switch
     to the <a href="#data-state0">data state</a>.
 
    <dt>U+003D EQUALS SIGN (=)
 
-   <dd><a href="#parse2">Parse error</a>. Treat it as per the "anything else"
+   <dd><a href="#parse3">Parse error</a>. Treat it as per the "anything else"
     entry below.
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Emit the current tag token.
+   <dd><a href="#parse3">Parse error</a>. Emit the current tag token.
     Reconsume the character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
@@ -52790,7 +52744,7 @@
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Emit the current tag token.
+   <dd><a href="#parse3">Parse error</a>. Emit the current tag token.
     Reconsume the character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
@@ -52819,7 +52773,7 @@
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Emit the current tag token.
+   <dd><a href="#parse3">Parse error</a>. Emit the current tag token.
     Reconsume the character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
@@ -52863,12 +52817,12 @@
 
    <dt>U+003D EQUALS SIGN (=)
 
-   <dd><a href="#parse2">Parse error</a>. Treat it as per the "anything else"
+   <dd><a href="#parse3">Parse error</a>. Treat it as per the "anything else"
     entry below.
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Emit the current tag token.
+   <dd><a href="#parse3">Parse error</a>. Emit the current tag token.
     Reconsume the character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
@@ -52920,12 +52874,12 @@
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Emit the current tag token.
+   <dd><a href="#parse3">Parse error</a>. Emit the current tag token.
     Reconsume the EOF character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
 
-   <dd><a href="#parse2">Parse error</a>. Reconsume the character in the <a
+   <dd><a href="#parse3">Parse error</a>. Reconsume the character in the <a
     href="#before4">before attribute name state</a>.
   </dl>
 
@@ -52942,12 +52896,12 @@
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Emit the current tag token.
+   <dd><a href="#parse3">Parse error</a>. Emit the current tag token.
     Reconsume the EOF character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
 
-   <dd><a href="#parse2">Parse error</a>. Reconsume the character in the <a
+   <dd><a href="#parse3">Parse error</a>. Reconsume the character in the <a
     href="#before4">before attribute name state</a>.
   </dl>
 
@@ -52995,7 +52949,7 @@
    the <a href="#cdata2">CDATA section state</a> (which is unrelated to the
    <a href="#content4">content model flag</a>'s CDATA state).
 
-  <p>Otherwise, this is a <a href="#parse2">parse error</a>. Switch to the <a
+  <p>Otherwise, this is a <a href="#parse3">parse error</a>. Switch to the <a
    href="#bogus1">bogus comment state</a>. The next character that is
    consumed, if any, is the first character that will be in the comment.
 
@@ -53011,12 +52965,12 @@
 
    <dt>U+003E GREATER-THAN SIGN (>)
 
-   <dd><a href="#parse2">Parse error</a>. Emit the comment token. Switch to
+   <dd><a href="#parse3">Parse error</a>. Emit the comment token. Switch to
     the <a href="#data-state0">data state</a>.
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Emit the comment token. Reconsume
+   <dd><a href="#parse3">Parse error</a>. Emit the comment token. Reconsume
     the EOF character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
@@ -53037,12 +52991,12 @@
 
    <dt>U+003E GREATER-THAN SIGN (>)
 
-   <dd><a href="#parse2">Parse error</a>. Emit the comment token. Switch to
+   <dd><a href="#parse3">Parse error</a>. Emit the comment token. Switch to
     the <a href="#data-state0">data state</a>.
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Emit the comment token. Reconsume
+   <dd><a href="#parse3">Parse error</a>. Emit the comment token. Reconsume
     the EOF character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
@@ -53064,7 +53018,7 @@
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Emit the comment token. Reconsume
+   <dd><a href="#parse3">Parse error</a>. Emit the comment token. Reconsume
     the EOF character in the <a href="#data-state0">data state</a>.</dd>
    <!-- For
    security reasons: otherwise, hostile user could put a <script> in
@@ -53090,7 +53044,7 @@
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Emit the comment token. Reconsume
+   <dd><a href="#parse3">Parse error</a>. Emit the comment token. Reconsume
     the EOF character in the <a href="#data-state0">data state</a>.</dd>
    <!-- For
    security reasons: otherwise, hostile user could put a <script> in
@@ -53118,13 +53072,13 @@
 
    <dt>U+002D HYPHEN-MINUS (-)
 
-   <dd><a href="#parse2">Parse error</a>. Append a U+002D HYPHEN-MINUS (-)
+   <dd><a href="#parse3">Parse error</a>. Append a U+002D HYPHEN-MINUS (-)
     character to the comment token's data. Stay in the <a
     href="#comment8">comment end state</a>.
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Emit the comment token. Reconsume
+   <dd><a href="#parse3">Parse error</a>. Emit the comment token. Reconsume
     the EOF character in the <a href="#data-state0">data state</a>.</dd>
    <!-- For
    security reasons: otherwise, hostile user could put a <script> in
@@ -53134,7 +53088,7 @@
 
    <dt>Anything else
 
-   <dd><a href="#parse2">Parse error</a>. Append two U+002D HYPHEN-MINUS (-)
+   <dd><a href="#parse3">Parse error</a>. Append two U+002D HYPHEN-MINUS (-)
     characters and the input character to the comment token's data. Switch to
     the <a href="#comment">comment state</a>.
   </dl>
@@ -53158,7 +53112,7 @@
 
    <dt>Anything else
 
-   <dd><a href="#parse2">Parse error</a>. Reconsume the current character in
+   <dd><a href="#parse3">Parse error</a>. Reconsume the current character in
     the <a href="#before6">before DOCTYPE name state</a>.
   </dl>
 
@@ -53181,13 +53135,13 @@
 
    <dt>U+003E GREATER-THAN SIGN (>)
 
-   <dd><a href="#parse2">Parse error</a>. Create a new DOCTYPE token. Set its
+   <dd><a href="#parse3">Parse error</a>. Create a new DOCTYPE token. Set its
     <i>force-quirks flag</i> to <i>on</i>. Emit the token. Switch to the <a
     href="#data-state0">data state</a>.
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Create a new DOCTYPE token. Set its
+   <dd><a href="#parse3">Parse error</a>. Create a new DOCTYPE token. Set its
     <i>force-quirks flag</i> to <i>on</i>. Emit the token. Reconsume the EOF
     character in the <a href="#data-state0">data state</a>.
 
@@ -53221,7 +53175,7 @@
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Reconsume
     the EOF character in the <a href="#data-state0">data state</a>.
 
@@ -53255,7 +53209,7 @@
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Reconsume
     the EOF character in the <a href="#data-state0">data state</a>.
 
@@ -53272,7 +53226,7 @@
      characters and switch to the <a href="#before8">before DOCTYPE system
      identifier state</a>.</p>
 
-    <p>Otherwise, this is the <a href="#parse2">parse error</a>. Set the
+    <p>Otherwise, this is the <a href="#parse3">parse error</a>. Set the
      DOCTYPE token's <i>force-quirks flag</i> to <i>on</i>. Switch to the <a
      href="#bogus2">bogus DOCTYPE state</a>.</p>
   </dl>
@@ -53309,19 +53263,19 @@
 
    <dt>U+003E GREATER-THAN SIGN (>)
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Switch to
     the <a href="#data-state0">data state</a>.
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Reconsume
     the EOF character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Switch to the <a
     href="#bogus2">bogus DOCTYPE state</a>.
   </dl>
@@ -53339,13 +53293,13 @@
 
    <dt>U+003E GREATER-THAN SIGN (>)
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Switch to
     the <a href="#data-state0">data state</a>.
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Reconsume
     the EOF character in the <a href="#data-state0">data state</a>.
 
@@ -53369,13 +53323,13 @@
 
    <dt>U+003E GREATER-THAN SIGN (>)
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Switch to
     the <a href="#data-state0">data state</a>.
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Reconsume
     the EOF character in the <a href="#data-state0">data state</a>.
 
@@ -53423,13 +53377,13 @@
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Reconsume
     the EOF character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Switch to the <a
     href="#bogus2">bogus DOCTYPE state</a>.
   </dl>
@@ -53466,19 +53420,19 @@
 
    <dt>U+003E GREATER-THAN SIGN (>)
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Switch to
     the <a href="#data-state0">data state</a>.
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Reconsume
     the EOF character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Switch to the <a
     href="#bogus2">bogus DOCTYPE state</a>.
   </dl>
@@ -53496,13 +53450,13 @@
 
    <dt>U+003E GREATER-THAN SIGN (>)
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Switch to
     the <a href="#data-state0">data state</a>.
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Reconsume
     the EOF character in the <a href="#data-state0">data state</a>.
 
@@ -53526,13 +53480,13 @@
 
    <dt>U+003E GREATER-THAN SIGN (>)
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Switch to
     the <a href="#data-state0">data state</a>.
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Reconsume
     the EOF character in the <a href="#data-state0">data state</a>.
 
@@ -53568,13 +53522,13 @@
 
    <dt>EOF
 
-   <dd><a href="#parse2">Parse error</a>. Set the DOCTYPE token's
+   <dd><a href="#parse3">Parse error</a>. Set the DOCTYPE token's
     <i>force-quirks flag</i> to <i>on</i>. Emit that DOCTYPE token. Reconsume
     the EOF character in the <a href="#data-state0">data state</a>.
 
    <dt>Anything else
 
-   <dd><a href="#parse2">Parse error</a>. Switch to the <a
+   <dd><a href="#parse3">Parse error</a>. Switch to the <a
     href="#bogus2">bogus DOCTYPE state</a>. (This does <em>not</em> set the
     DOCTYPE token's <i>force-quirks flag</i> to <i>on</i>.)
   </dl>
@@ -53692,18 +53646,18 @@
 
     <p>If no characters match the range, then don't consume any characters
      (and unconsume the U+0023 NUMBER SIGN character and, if appropriate, the
-     X character). This is a <a href="#parse2">parse error</a>; nothing is
+     X character). This is a <a href="#parse3">parse error</a>; nothing is
      returned.</p>
 
     <p>Otherwise, if the next character is a U+003B SEMICOLON, consume that
-     too. If it isn't, there is a <a href="#parse2">parse error</a>.</p>
+     too. If it isn't, there is a <a href="#parse3">parse error</a>.</p>
 
     <p>If one or more characters match the range, then take them all and
      interpret the string of characters as a number (either hexadecimal or
      decimal as appropriate).</p>
 
     <p>If that number is one of the numbers in the first column of the
-     following table, then this is a <a href="#parse2">parse error</a>. Find
+     following table, then this is a <a href="#parse3">parse error</a>. Find
      the row with that number in the first column, and return a character
      token for the Unicode character given in the second column of that row.</p>
 
@@ -53961,7 +53915,7 @@
      0x7FFFE, 0x7FFFF, 0x8FFFE, 0x8FFFF, 0x9FFFE, 0x9FFFF, 0xAFFFE, 0xAFFFF,
      0xBFFFE, 0xBFFFF, 0xCFFFE, 0xCFFFF, 0xDFFFE, 0xDFFFF, 0xEFFFE, 0xEFFFF,
      0xFFFFE, 0xFFFFF, 0x10FFFE, or 0x10FFFF, or is higher than 0x10FFFF,
-     then this is a <a href="#parse2">parse error</a>; return a character
+     then this is a <a href="#parse3">parse error</a>; return a character
      token for the U+FFFD REPLACEMENT CHARACTER character instead.</p>
 
     <p>Otherwise, return a character token for the Unicode character whose
@@ -53975,11 +53929,11 @@
      href="#named0">named character references</a> table (in a <a
      href="#case-sensitive">case-sensitive</a> manner).</p>
 
-    <p>If no match can be made, then this is a <a href="#parse2">parse
+    <p>If no match can be made, then this is a <a href="#parse3">parse
      error</a>. No characters are consumed, and nothing is returned.</p>
 
     <p>If the last character matched is not a U+003B SEMICOLON (<code
-     title="">;</code>), there is a <a href="#parse2">parse error</a>.</p>
+     title="">;</code>), there is a <a href="#parse3">parse error</a>.</p>
 
     <p>If the character reference is being consumed <a href="#character8"
      title="character reference in attribute value state">as part of an
@@ -54098,7 +54052,7 @@
    href="#current5">current node</a>. If the newly created element has an
    <code title="">xmlns</code> attribute in the <a href="#xmlns">XMLNS
    namespace</a> whose value is not exactly the same as the element's
-   namespace, that is a <a href="#parse2">parse error</a>.
+   namespace, that is a <a href="#parse3">parse error</a>.
 
   <p>When the steps below require the user agent to <dfn id=adjust>adjust
    MathML attributes</dfn> for a token, then, if the token has an attribute
@@ -54430,7 +54384,7 @@
      title="">HTML</code>", or if the token's public identifier is neither
      missing nor equal to the string "<code>XSLT-compat</code>", or if the
      token's system identifier is not missing, then there is a <a
-     href="#parse2">parse error</a>. Conformance checkers may, instead of
+     href="#parse3">parse error</a>. Conformance checkers may, instead of
      reporting this error, switch to a conformance checking mode for another
      language (e.g. based on the DOCTYPE token a conformance checker could
      recognize that the document is an HTML4-era document, and defer to an
@@ -54698,7 +54652,7 @@
    <dt>Anything else
 
    <dd>
-    <p><a href="#parse2">Parse error</a>.</p>
+    <p><a href="#parse3">Parse error</a>.</p>
 
     <p>Set the document to <a href="#quirks">quirks mode</a>.</p>
 
@@ -54718,7 +54672,7 @@
    <dt>A DOCTYPE token
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>A comment token
 
@@ -54809,7 +54763,7 @@
    <dt>A DOCTYPE token
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>A start tag whose tag name is "html"
 
@@ -54839,7 +54793,7 @@
    <dt>Any other end tag
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>Anything else
 
@@ -54879,7 +54833,7 @@
    <dt>A DOCTYPE token
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>A start tag whose tag name is "html"
 
@@ -55015,7 +54969,7 @@
    <dt>Any other end tag
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>Anything else
 
@@ -55041,7 +54995,7 @@
    <dt>A DOCTYPE token
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>A start tag whose tag name is "html"
 
@@ -55086,12 +55040,12 @@
    <dt>Any other end tag
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>Anything else
 
    <dd> <!-- can't get here with an EOF and a fragment case -->
-    <p><a href="#parse2">Parse error</a>. Act as if an end tag with the tag
+    <p><a href="#parse3">Parse error</a>. Act as if an end tag with the tag
      name "noscript" had been seen and reprocess the current token.</p>
   </dl>
 
@@ -55121,7 +55075,7 @@
    <dt>A DOCTYPE token
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>A start tag whose tag name is "html"
 
@@ -55150,7 +55104,7 @@
     "noframes", "script", "style", "title"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>.</p>
+    <p><a href="#parse3">Parse error</a>.</p>
 
     <p>Push the node pointed to by the <a href="#head-element"><code
      title="">head</code> element pointer</a> onto the <a href="#stack">stack
@@ -55170,7 +55124,7 @@
    <dt>Any <!--other--> end tag
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>Anything else
 
@@ -55206,12 +55160,12 @@
    <dt>A DOCTYPE token
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>A start tag whose tag name is "html"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. For each attribute on the token,
+    <p><a href="#parse3">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>
@@ -55227,7 +55181,7 @@
    <dt>A start tag whose tag name is "body"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>.</p>
+    <p><a href="#parse3">Parse error</a>.</p>
 
     <p>If the second element on the <a href="#stack">stack of open
      elements</a> is not a <code><a href="#body0">body</a></code> element,
@@ -55255,7 +55209,7 @@
      href="#tr">tr</a></code> element, the <code><a
      href="#body0">body</a></code> element, or the <code><a
      href="#html">html</a></code> element, then this is a <a
-     href="#parse2">parse error</a>.</p>
+     href="#parse3">parse error</a>.</p>
     <!-- (some of those are
     fragment cases) -->
     <p><a href="#stops">Stop parsing</a>.</p>
@@ -55265,7 +55219,7 @@
    <dd>
     <p>If the <a href="#stack">stack of open elements</a> does not <a
      href="#have-an" title="has an element in scope">have a <code>body</code>
-     element in scope</a>, this is a <a href="#parse2">parse error</a>;
+     element in scope</a>, this is a <a href="#parse3">parse error</a>;
      ignore the token.</p>
 
     <p>Otherwise, if there is a node in the <a href="#stack">stack of open
@@ -55280,7 +55234,7 @@
      href="#tr">tr</a></code> element, the <code><a
      href="#body0">body</a></code> element, or the <code><a
      href="#html">html</a></code> element, then this is a <a
-     href="#parse2">parse error</a>.</p>
+     href="#parse3">parse error</a>.</p>
     <!-- (some of those are fragment cases) -->
     <!-- the insertion mode here is forcibly "in body". -->
     <p>Switch the <span>insertion mode</span> to "<a href="#after10"
@@ -55351,7 +55305,7 @@
 
    <dd>
     <p>If the <a href="#form-element"><code title=form>form</code> element
-     pointer</a> is not null, then this is a <a href="#parse2">parse
+     pointer</a> is not null, then this is a <a href="#parse3">parse
      error</a>; ignore the token.</p>
 
     <p>Otherwise:</p>
@@ -55514,7 +55468,7 @@
     <p>If the <a href="#stack">stack of open elements</a> does not <a
      href="#have-an" title="has an element in scope">have an element in
      scope</a> with the same tag name as that of the token, then this is a <a
-     href="#parse2">parse error</a>; ignore the token.</p>
+     href="#parse3">parse error</a>; ignore the token.</p>
 
     <p>Otherwise, run these steps:</p>
 
@@ -55525,7 +55479,7 @@
      <li>
       <p>If the <a href="#current5">current node</a> is not an element with
        the same tag name as that of the token, then this is a <a
-       href="#parse2">parse error</a>.
+       href="#parse3">parse error</a>.
 
      <li>
       <p>Pop elements from the <a href="#stack">stack of open elements</a>
@@ -55544,7 +55498,7 @@
     <p>If the <a href="#stack">stack of open elements</a> does not <a
      href="#have-an" title="has an element in scope">have an element in
      scope</a> with the same tag name as that of the token, then this is a <a
-     href="#parse2">parse error</a>; ignore the token.</p>
+     href="#parse3">parse error</a>; ignore the token.</p>
 
     <p>Otherwise, run these steps:</p>
 
@@ -55555,7 +55509,7 @@
      <li>
       <p>If the <a href="#current5">current node</a> is not an element with
        the same tag name as that of the token, then this is a <a
-       href="#parse2">parse error</a>.
+       href="#parse3">parse error</a>.
 
      <li>
       <p>Pop elements from the <a href="#stack">stack of open elements</a>
@@ -55571,7 +55525,7 @@
     <p>If the <a href="#stack">stack of open elements</a> does not <a
      href="#have-an" title="has an element in scope">have an element in
      scope</a> with the same tag name as that of the token, then this is a <a
-     href="#parse2">parse error</a>; act as if a start tag with the tag name
+     href="#parse3">parse error</a>; act as if a start tag with the tag name
      <code><a href="#p">p</a></code> had been seen, then reprocess the
      current token.</p>
 
@@ -55585,7 +55539,7 @@
      <li>
       <p>If the <a href="#current5">current node</a> is not an element with
        the same tag name as that of the token, then this is a <a
-       href="#parse2">parse error</a>.
+       href="#parse3">parse error</a>.
 
      <li>
       <p>Pop elements from the <a href="#stack">stack of open elements</a>
@@ -55601,7 +55555,7 @@
     <p>If the <a href="#stack">stack of open elements</a> does not <a
      href="#have-an" title="has an element in scope">have an element in
      scope</a> with the same tag name as that of the token, then this is a <a
-     href="#parse2">parse error</a>; ignore the token.</p>
+     href="#parse3">parse error</a>; ignore the token.</p>
 
     <p>Otherwise, run these steps:</p>
 
@@ -55613,7 +55567,7 @@
      <li>
       <p>If the <a href="#current5">current node</a> is not an element with
        the same tag name as that of the token, then this is a <a
-       href="#parse2">parse error</a>.
+       href="#parse3">parse error</a>.
 
      <li>
       <p>Pop elements from the <a href="#stack">stack of open elements</a>
@@ -55630,7 +55584,7 @@
     <p>If the <a href="#stack">stack of open elements</a> does not <a
      href="#have-an" title="has an element in scope">have an element in
      scope</a> whose tag name is one of "h1", "h2", "h3", "h4", "h5", or
-     "h6", then this is a <a href="#parse2">parse error</a>; ignore the
+     "h6", then this is a <a href="#parse3">parse error</a>; ignore the
      token. <!--
     XXX quirk: Act as if a start tag with the tag name given in the
     token had been seen, then reprocess the current token. --></p>
@@ -55644,7 +55598,7 @@
      <li>
       <p>If the <a href="#current5">current node</a> is not an element with
        the same tag name as that of the token, then this is a <a
-       href="#parse2">parse error</a>.
+       href="#parse3">parse error</a>.
 
      <li>
       <p>Pop elements from the <a href="#stack">stack of open elements</a>
@@ -55669,7 +55623,7 @@
     <p>If the <a href="#list-of4">list of active formatting elements</a>
      contains an element whose tag name is "a" between the end of the list
      and the last marker on the list (or the start of the list if there is no
-     marker on the list), then this is a <a href="#parse2">parse error</a>;
+     marker on the list), then this is a <a href="#parse3">parse error</a>;
      act as if an end tag with the tag name "a" had been seen, then remove
      that element from the <a href="#list-of4">list of active formatting
      elements</a> and the <a href="#stack">stack of open elements</a> if the
@@ -55712,7 +55666,7 @@
 
     <p>If the <a href="#stack">stack of open elements</a> <a href="#have-an"
      title="has an element in scope">has a <code>nobr</code> element in
-     scope</a>, then this is a <a href="#parse2">parse error</a>; act as if
+     scope</a>, then this is a <a href="#parse3">parse error</a>; act as if
      an end tag with the tag name "nobr" had been seen, then once again <a
      href="#reconstruct">reconstruct the active formatting elements</a>, if
      any.</p>
@@ -55744,19 +55698,19 @@
       <p>If there is no such node, or, if that node is also in the <a
        href="#stack">stack of open elements</a> but the element is not <a
        href="#have-an" title="has an element in scope">in scope</a>, then
-       this is a <a href="#parse2">parse error</a>; ignore the token, and
+       this is a <a href="#parse3">parse error</a>; ignore the token, and
        abort these steps.</p>
 
       <p>Otherwise, if there is such a node, but that node is not in the <a
        href="#stack">stack of open elements</a>, then this is a <a
-       href="#parse2">parse error</a>; remove the element from the list, and
+       href="#parse3">parse error</a>; remove the element from the list, and
        abort these steps.</p>
 
       <p>Otherwise, there is a <var title="">formatting element</var> and
        that element is in <a href="#stack" title="stack of open elements">the
        stack</a> and is <a href="#have-an" title="has an element in scope">in
        scope</a>. If the element is not the <a href="#current5">current
-       node</a>, this is a <a href="#parse2">parse error</a>. In any case,
+       node</a>, this is a <a href="#parse3">parse error</a>. In any case,
        proceed with the algorithm as written in the following steps.</p>
 
      <li>
@@ -55890,7 +55844,7 @@
    <dd>
     <p>If the <a href="#stack">stack of open elements</a> <a href="#have-an"
      title="has an element in scope">has a <code>button</code> element in
-     scope</a>, then this is a <a href="#parse2">parse error</a>; act as if
+     scope</a>, then this is a <a href="#parse3">parse error</a>; act as if
      an end tag with the tag name "button" had been seen, then reprocess the
      token.</p>
 
@@ -55931,7 +55885,7 @@
     <p>If the <a href="#stack">stack of open elements</a> does not <a
      href="#have-an" title="has an element in scope">have an element in
      scope</a> with the same tag name as that of the token, then this is a <a
-     href="#parse2">parse error</a>; ignore the token.</p>
+     href="#parse3">parse error</a>; ignore the token.</p>
 
     <p>Otherwise, run these steps:</p>
 
@@ -55942,7 +55896,7 @@
      <li>
       <p>If the <a href="#current5">current node</a> is not an element with
        the same tag name as that of the token, then this is a <a
-       href="#parse2">parse error</a>.
+       href="#parse3">parse error</a>.
 
      <li>
       <p>Pop elements from the <a href="#stack">stack of open elements</a>
@@ -56020,7 +55974,7 @@
    <dt>A start tag whose tag name is "image"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Change the token's tag name to
+    <p><a href="#parse3">Parse error</a>. Change the token's tag name to
      "img" and reprocess it. (Don't ask.)</p>
     <!-- As of
     2005-12, studies showed that around 0.2% of pages used the
@@ -56068,7 +56022,7 @@
    <dt id=isindex>A start tag whose tag name is "isindex"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>.</p>
+    <p><a href="#parse3">Parse error</a>.</p>
 
     <p>If the <a href="#form-element"><code title="">form</code> element
      pointer</a> is not null, then ignore the token.</p>
@@ -56171,7 +56125,7 @@
      switched back to the PCDATA state.</p>
 
     <p>If the next token is an end tag token with the tag name "textarea",
-     ignore it. Otherwise, this is a <a href="#parse2">parse error</a>.</p>
+     ignore it. Otherwise, this is a <a href="#parse3">parse error</a>.</p>
 
    <dt>A start tag whose tag name is one of: "iframe", "noembed"
 
@@ -56247,7 +56201,7 @@
      title="has an element in scope">has a <code>ruby</code> element in
      scope</a>, then <a href="#generate">generate implied end tags</a>. If
      the <a href="#current5">current node</a> is not then a <code><a
-     href="#ruby">ruby</a></code> element, this is a <a href="#parse2">parse
+     href="#ruby">ruby</a></code> element, this is a <a href="#parse3">parse
      error</a>; pop all the nodes from the <a href="#current5">current
      node</a> up to the node immediately before the bottommost <code><a
      href="#ruby">ruby</a></code> element on the <a href="#stack">stack of
@@ -56258,7 +56212,7 @@
    <dt>An end tag whose tag name is "br"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Act as if a start tag token with
+    <p><a href="#parse3">Parse error</a>. Act as if a start tag token with
      the tag name "br" had been seen. Ignore the end tag token.</p>
 
    <dt>A start tag whose tag name is "math"
@@ -56330,7 +56284,7 @@
    <span>scripting flag</span> is enabled</dt>-->
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
     <!-- end tags are commented out because since they can never end
     up on the stack anyway, the default end tag clause will
     automatically handle them. we don't want to have text in the spec
@@ -56370,7 +56324,7 @@
        <li>
         <p>If the tag name of the end tag token does not match the tag name
          of the <a href="#current5">current node</a>, this is a <a
-         href="#parse2">parse error</a>.
+         href="#parse3">parse error</a>.
 
        <li>
         <p>Pop all the nodes from the <a href="#current5">current node</a> up
@@ -56382,7 +56336,7 @@
       <p>Otherwise, if <var title="">node</var> is in neither the <a
        href="#formatting">formatting</a> category nor the <a
        href="#phrasing1">phrasing</a> category, then this is a <a
-       href="#parse2">parse error</a>; ignore the token, and abort these
+       href="#parse3">parse error</a>; ignore the token, and abort these
        steps.
 
      <li>
@@ -56412,7 +56366,7 @@
    <dt>An end-of-file token
 
    <dd> <!-- can't be the fragment case -->
-    <p><a href="#parse2">Parse error</a>.</p>
+    <p><a href="#parse3">Parse error</a>.</p>
 
     <p>If the <a href="#current5">current node</a> is a <code><a
      href="#script1">script</a></code> element, mark the <code><a
@@ -56545,7 +56499,7 @@
    <dt>A DOCTYPE token
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>A start tag whose tag name is "caption"
 
@@ -56595,7 +56549,7 @@
    <dt>A start tag whose tag name is "table"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Act as if an end tag token with the
+    <p><a href="#parse3">Parse error</a>. Act as if an end tag token with the
      tag name "table" had been seen, then, if that token wasn't ignored,
      reprocess the current token.</p>
 
@@ -56608,7 +56562,7 @@
     <p>If the <a href="#stack">stack of open elements</a> does not <a
      href="#have-an0" title="has an element in table scope">have an element
      in table scope</a> with the same tag name as the token, this is a <a
-     href="#parse2">parse error</a>. Ignore the token. (<a
+     href="#parse3">parse error</a>. Ignore the token. (<a
      href="#fragment">fragment case</a>)</p>
 
     <p>Otherwise:</p>
@@ -56622,7 +56576,7 @@
     "colgroup", "html", "tbody", "td", "tfoot", "th", "thead", "tr"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>A start tag whose tag name is one of: "style", "script"
 
@@ -56646,7 +56600,7 @@
 
     <p>Otherwise:</p>
 
-    <p><a href="#parse2">Parse error</a>.</p>
+    <p><a href="#parse3">Parse error</a>.</p>
 
     <p><a href="#insert0">Insert an HTML element</a> for the token.</p>
 
@@ -56665,7 +56619,7 @@
    <dd>
     <p>If the <a href="#current5">current node</a> is not the root <code><a
      href="#html">html</a></code> element, then this is a <a
-     href="#parse2">parse error</a>.</p>
+     href="#parse3">parse error</a>.</p>
 
     <p class=note>It can only be the <a href="#current5">current node</a> in
      the <a href="#fragment">fragment case</a>.</p>
@@ -56675,7 +56629,7 @@
    <dt>Anything else
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Process the token <a
+    <p><a href="#parse3">Parse error</a>. Process the token <a
      href="#using10">using the rules for</a> the "<a href="#in-body"
      title="insertion mode: in body">in body</a>" <span>insertion
      mode</span>, except that if the <a href="#current5">current node</a> is
@@ -56714,7 +56668,7 @@
     <p>If the <a href="#stack">stack of open elements</a> does not <a
      href="#have-an0" title="has an element in table scope">have an element
      in table scope</a> with the same tag name as the token, this is a <a
-     href="#parse2">parse error</a>. Ignore the token. (<a
+     href="#parse3">parse error</a>. Ignore the token. (<a
      href="#fragment">fragment case</a>)</p>
 
     <p>Otherwise:</p>
@@ -56723,7 +56677,7 @@
 
     <p>Now, if the <a href="#current5">current node</a> is not a <code><a
      href="#caption0">caption</a></code> element, then this is a <a
-     href="#parse2">parse error</a>.</p>
+     href="#parse3">parse error</a>.</p>
 
     <p>Pop elements from this stack until a <code><a
      href="#caption0">caption</a></code> element has been popped from the
@@ -56741,7 +56695,7 @@
    <dt>An end tag whose tag name is "table"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Act as if an end tag with the tag
+    <p><a href="#parse3">Parse error</a>. Act as if an end tag with the tag
      name "caption" had been seen, then, if that token wasn't ignored,
      reprocess the current token.</p>
 
@@ -56752,7 +56706,7 @@
     "html", "tbody", "td", "tfoot", "th", "thead", "tr"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>Anything else
 
@@ -56789,7 +56743,7 @@
    <dt>A DOCTYPE token
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>A start tag whose tag name is "html"
 
@@ -56814,7 +56768,7 @@
    <dd>
     <p>If the <a href="#current5">current node</a> is the root <code><a
      href="#html">html</a></code> element, then this is a <a
-     href="#parse2">parse error</a>; ignore the token. (<a
+     href="#parse3">parse error</a>; ignore the token. (<a
      href="#fragment">fragment case</a>)</p>
 
     <p>Otherwise, pop the <a href="#current5">current node</a> (which will be
@@ -56826,7 +56780,7 @@
    <dt>An end tag whose tag name is "col"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>An end-of-file token
 
@@ -56869,7 +56823,7 @@
    <dt>A start tag whose tag name is one of: "th", "td"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Act as if a start tag with the tag
+    <p><a href="#parse3">Parse error</a>. Act as if a start tag with the tag
      name "tr" had been seen, then reprocess the current token.</p>
 
    <dt>An end tag whose tag name is one of: "tbody", "tfoot", "thead"
@@ -56878,7 +56832,7 @@
     <p>If the <a href="#stack">stack of open elements</a> does not <a
      href="#have-an0" title="has an element in table scope">have an element
      in table scope</a> with the same tag name as the token, this is a <a
-     href="#parse2">parse error</a>. Ignore the token.</p>
+     href="#parse3">parse error</a>. Ignore the token.</p>
 
     <p>Otherwise:</p>
 
@@ -56899,7 +56853,7 @@
     <p>If the <a href="#stack">stack of open elements</a> does not <a
      href="#have-an0" title="has an element in table scope">have a
      <code>tbody</code>, <code>thead</code>, or <code>tfoot</code> element in
-     table scope</a>, this is a <a href="#parse2">parse error</a>. Ignore the
+     table scope</a>, this is a <a href="#parse3">parse error</a>. Ignore the
      token. (<a href="#fragment">fragment case</a>)</p>
 
     <p>Otherwise:</p>
@@ -56915,7 +56869,7 @@
     "colgroup", "html", "td", "th", "tr"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>Anything else
 
@@ -56964,7 +56918,7 @@
     <p>If the <a href="#stack">stack of open elements</a> does not <a
      href="#have-an0" title="has an element in table scope">have an element
      in table scope</a> with the same tag name as the token, this is a <a
-     href="#parse2">parse error</a>. Ignore the token. (<a
+     href="#parse3">parse error</a>. Ignore the token. (<a
      href="#fragment">fragment case</a>)</p>
 
     <p>Otherwise:</p>
@@ -56996,7 +56950,7 @@
     <p>If the <a href="#stack">stack of open elements</a> does not <a
      href="#have-an0" title="has an element in table scope">have an element
      in table scope</a> with the same tag name as the token, this is a <a
-     href="#parse2">parse error</a>. Ignore the token.</p>
+     href="#parse3">parse error</a>. Ignore the token.</p>
 
     <p>Otherwise, act as if an end tag with the tag name "tr" had been seen,
      then reprocess the current token.</p>
@@ -57005,7 +56959,7 @@
     "colgroup", "html", "td", "th"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>Anything else
 
@@ -57040,7 +56994,7 @@
     <p>If the <a href="#stack">stack of open elements</a> does not <a
      href="#have-an0" title="has an element in table scope">have an element
      in table scope</a> with the same tag name as that of the token, then
-     this is a <a href="#parse2">parse error</a> and the token must be
+     this is a <a href="#parse3">parse error</a> and the token must be
      ignored.</p>
 
     <p>Otherwise:</p>
@@ -57049,7 +57003,7 @@
 
     <p>Now, if the <a href="#current5">current node</a> is not an element
      with the same tag name as the token, then this is a <a
-     href="#parse2">parse error</a>.</p>
+     href="#parse3">parse error</a>.</p>
 
     <p>Pop elements from this stack until an element with the same tag name
      as the token has been popped from the stack.</p>
@@ -57069,7 +57023,7 @@
     <p>If the <a href="#stack">stack of open elements</a> does <em>not</em>
      <a href="#have-an0" title="has an element in table scope">have a
      <code>td</code> or <code>th</code> element in table scope</a>, then this
-     is a <a href="#parse2">parse error</a>; ignore the token. (<a
+     is a <a href="#parse3">parse error</a>; ignore the token. (<a
      href="#fragment">fragment case</a>)</p>
 
     <p>Otherwise, <a href="#close5">close the cell</a> (see below) and
@@ -57079,7 +57033,7 @@
     "colgroup", "html"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>An end tag whose tag name is one of: "table", "tbody", "tfoot",
     "thead", "tr"
@@ -57090,7 +57044,7 @@
      in table scope</a> with the same tag name as that of the token (which
      can only happen for "tbody", "tfoot" and "thead", or, in the <a
      href="#fragment">fragment case</a>), then this is a <a
-     href="#parse2">parse error</a> and the token must be ignored.</p>
+     href="#parse3">parse error</a> and the token must be ignored.</p>
 
     <p>Otherwise, <a href="#close5">close the cell</a> (see below) and
      reprocess the current token.</p>
@@ -57152,7 +57106,7 @@
    <dt>A DOCTYPE token
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>A start tag whose tag name is "html"
 
@@ -57195,7 +57149,7 @@
     <p>If the <a href="#current5">current node</a> is an <code><a
      href="#optgroup">optgroup</a></code> element, then pop that node from
      the <a href="#stack">stack of open elements</a>. Otherwise, this is a <a
-     href="#parse2">parse error</a>; ignore the token.</p>
+     href="#parse3">parse error</a>; ignore the token.</p>
 
    <dt>An end tag whose tag name is "option"
 
@@ -57203,7 +57157,7 @@
     <p>If the <a href="#current5">current node</a> is an <code><a
      href="#option">option</a></code> element, then pop that node from the <a
      href="#stack">stack of open elements</a>. Otherwise, this is a <a
-     href="#parse2">parse error</a>; ignore the token.</p>
+     href="#parse3">parse error</a>; ignore the token.</p>
 
    <dt>An end tag whose tag name is "select"
 
@@ -57211,7 +57165,7 @@
     <p>If the <a href="#stack">stack of open elements</a> does not <a
      href="#have-an0" title="has an element in table scope">have an element
      in table scope</a> with the same tag name as the token, this is a <a
-     href="#parse2">parse error</a>. Ignore the token. (<a
+     href="#parse3">parse error</a>. Ignore the token. (<a
      href="#fragment">fragment case</a>)</p>
 
     <p>Otherwise:</p>
@@ -57225,13 +57179,13 @@
    <dt>A start tag whose tag name is "select"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Act as if the token had been an end
+    <p><a href="#parse3">Parse error</a>. Act as if the token had been an end
      tag with the tag name "select" instead.</p>
 
    <dt>A start tag whose tag name is one of: "input", "textarea"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Act as if an end tag with the tag
+    <p><a href="#parse3">Parse error</a>. Act as if an end tag with the tag
      name "select" had been seen, and reprocess the token.</p>
 
    <dt>An end-of-file token
@@ -57239,7 +57193,7 @@
    <dd>
     <p>If the <a href="#current5">current node</a> is not the root <code><a
      href="#html">html</a></code> element, then this is a <a
-     href="#parse2">parse error</a>.</p>
+     href="#parse3">parse error</a>.</p>
 
     <p class=note>It can only be the <a href="#current5">current node</a> in
      the <a href="#fragment">fragment case</a>.</p>
@@ -57249,7 +57203,7 @@
    <dt>Anything else
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
   </dl>
 
   <h5 id=parsing-main-inselectintable><span class=secno>8.2.5.19. </span>The
@@ -57265,14 +57219,14 @@
     "tfoot", "thead", "tr", "td", "th"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Act as if an end tag with the tag
+    <p><a href="#parse3">Parse error</a>. Act as if an end tag with the tag
      name "select" had been seen, and reprocess the token.</p>
 
    <dt>An end tag whose tag name is one of: "caption", "table", "tbody",
     "tfoot", "thead", "tr", "td", "th"
 
    <dd>
-    <p><a href="#parse2">Parse error</a>.</p>
+    <p><a href="#parse3">Parse error</a>.</p>
 
     <p>If the <a href="#stack">stack of open elements</a> <a
      href="#have-an0">has an element in table scope</a> with the same tag
@@ -57313,7 +57267,7 @@
    <dt>A DOCTYPE token
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>A start tag whose tag name is neither "mglyph" nor "malignmark", if
     the <a href="#current5">current node</a> is an <code title="">mi</code>
@@ -57384,7 +57338,7 @@
    <dt>An end-of-file token
 
    <dd>
-    <p><a href="#parse2">Parse error</a>.</p>
+    <p><a href="#parse3">Parse error</a>.</p>
 
     <p>Pop elements from the <a href="#stack">stack of open elements</a>
      until the <a href="#current5">current node</a> is in the <a
@@ -57500,7 +57454,7 @@
    <dt>A DOCTYPE token
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>A start tag whose tag name is "html"
 
@@ -57514,7 +57468,7 @@
    <dd>
     <p>If the parser was originally created as part of the <a
      href="#html-fragment0">HTML fragment parsing algorithm</a>, this is a <a
-     href="#parse2">parse error</a>; ignore the token. (<a
+     href="#parse3">parse error</a>; ignore the token. (<a
      href="#fragment">fragment case</a>)</p>
 
     <p>Otherwise, switch the <span>insertion mode</span> to "<a
@@ -57529,7 +57483,7 @@
    <dt>Anything else
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Switch the <span>insertion
+    <p><a href="#parse3">Parse error</a>. Switch the <span>insertion
      mode</span> to "<a href="#in-body" title="insertion mode: in body">in
      body</a>" and reprocess the token.</p>
   </dl>
@@ -57561,7 +57515,7 @@
    <dt>A DOCTYPE token
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>A start tag whose tag name is "html"
 
@@ -57580,7 +57534,7 @@
    <dd>
     <p>If the <a href="#current5">current node</a> is the root <code><a
      href="#html">html</a></code> element, then this is a <a
-     href="#parse2">parse error</a>; ignore the token. (<a
+     href="#parse3">parse error</a>; ignore the token. (<a
      href="#fragment">fragment case</a>)</p>
 
     <p>Otherwise, pop the <a href="#current5">current node</a> from the <a
@@ -57616,7 +57570,7 @@
    <dd>
     <p>If the <a href="#current5">current node</a> is not the root <code><a
      href="#html">html</a></code> element, then this is a <a
-     href="#parse2">parse error</a>.</p>
+     href="#parse3">parse error</a>.</p>
 
     <p class=note>It can only be the <a href="#current5">current node</a> in
      the <a href="#fragment">fragment case</a>.</p>
@@ -57626,7 +57580,7 @@
    <dt>Anything else
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
   </dl>
 
   <h5 id=parsing-main-afterframeset><span class=secno>8.2.5.23. </span>The
@@ -57657,7 +57611,7 @@
    <dt>A DOCTYPE token
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
 
    <dt>A start tag whose tag name is "html"
 
@@ -57687,7 +57641,7 @@
    <dt>Anything else
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
   </dl>
 
   <p class=big-issue>This doesn't handle UAs that don't support frames, or
@@ -57731,7 +57685,7 @@
    <dt>Anything else
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Switch the <span>insertion
+    <p><a href="#parse3">Parse error</a>. Switch the <span>insertion
      mode</span> to "<a href="#in-body" title="insertion mode: in body">in
      body</a>" and reprocess the token.</p>
   </dl>
@@ -57780,7 +57734,7 @@
    <dt>Anything else
 
    <dd>
-    <p><a href="#parse2">Parse error</a>. Ignore the token.</p>
+    <p><a href="#parse3">Parse error</a>. Ignore the token.</p>
   </dl>
 
   <h4 id=the-end><span class=secno>8.2.6 </span>The end</h4>
@@ -61316,4 +61270,5 @@
        mean something. (2046 doesn't define anything like that, and
        2045's definition doesn't really help either, since it's part
        of something else, and doesn't mention whitespace, etc.)
+ XXX * reference [UTC] in the various places that use it.
 -->

Modified: source
===================================================================
--- source	2008-09-24 10:44:03 UTC (rev 2229)
+++ source	2008-09-24 11:25:55 UTC (rev 2230)
@@ -1883,6 +1883,7 @@
   Gregorian calendar. <a
   href="#refsGREGORIAN">[GREGORIAN]</a></p>
 
+
   <h5>Specific moments in time</h5>
 
   <p>A string is a <dfn>valid datetime</dfn> if it has four digits
@@ -2560,8 +2561,20 @@
   </ol>
 
 
-  <h4>Time offsets</h4>
+  <h5>UTC dates and times</h5>
 
+  <p>A <dfn>UTC date and time</dfn> consists of a specific Gregorian
+  date expressed relative to the UTC timezone, consisting of a year, a
+  month, a day, an hour, a minute, a second, and a fraction of a
+  second. <a href="#refsGREGORIAN">[GREGORIAN]</a></p>
+
+  <p class="big-issue">... <dfn>valid UTC date and time</dfn></p>
+
+  <p class="big-issue">... rules to <dfn>parse a UTC date and time</dfn></p>
+
+
+  <h5>Time offsets</h5>
+
   <p class="big-issue"><dfn>valid time offset</dfn>, <dfn>rules for
   parsing time offsets</dfn>, <dfn>time offset serialization
   rules</dfn>; in the format "5d4h3m2s1ms" or "3m 9.2s" or "00:00:00.00"
@@ -26060,7 +26073,7 @@
   title="attr-input-type">type</code> attribute changes state, and
   when the element is first created, the element's rendering and
   behaviour must change to the new state's accordingly and the
-  <dfn>control initialization algorithm</dfn> defined for the <code
+  <dfn>value sanitization algorithm</dfn> defined for the <code
   title="attr-input-type">type</code> attribute's new state must be
   invoked.</p>
 
@@ -26112,17 +26125,18 @@
   content attribute gives the default <span
   title="concept-fe-value">value</span> of the <code>input</code>
   element. When the <code title="attr-input-value">value</code>
-  content attribute is added, set, or removed, and when the element is
-  first created, after invoking the <span>control initialization
-  algorithm</span>, the <dfn>default value change algorithm</dfn>
-  defined for the <code title="attr-input-type">type</code>
-  attribute's current state must be invoked.</p>
+  content attribute is added, set, or removed, if the control is not
+  <i title="concept-input-dirty">dirty</i>, the user agent must set
+  the <span title="concept-fe-value">value</span> of the element to
+  the value of the <code title="attr-input-value">value</code> content
+  attribute, if there is one, or the empty string otherwise, and run
+  the <span>value sanitization algorithm</span>.</p>
 
   <p>The <span title="concept-form-reset-control">reset
   algorithm</span> for <code>input</code> elements is to set the <span
   title="concept-input-dirty-flag">dirty flag</span> back to false
   (not <i title="concept-input-dirty">dirty</i>), and then invoke the
-  <span>default value change algorithm</span> defined for the <code
+  <span>value sanitization algorithm</span> defined for the <code
   title="attr-input-type">type</code> attribute's current state.</p>
 
   <p>The <code title="attr-fae-form">form</code> attribute is used to
@@ -26197,24 +26211,9 @@
   elements.</p>
 
   <p><strong>The <span title="attr-input-type-text">Text</span>
-  state's <span>control initialization algorithm</span> is as
-  follows:</strong> <span>Strip line breaks from the
-  value</span>.</p>
+  state's <span>value sanitization algorithm</span> is as
+  follows:</strong> <span>Strip line breaks from the value</span>.</p>
 
-  <p><strong>The <span title="attr-input-type-text">Text</span>
-  state's <span>default value change algorithm</span> is as
-  follows:</strong> If the <code>input</code> element is not <i
-  title="concept-input-dirty">dirty</i> then set the <span
-  title="concept-fe-value">value</span> of the element to the value of
-  the <code title="attr-input-value">value</code> content attribute
-  and <span>strip line breaks from the value</span>.</p>
-
-  <p><strong>The <span title="attr-input-type-text">Text</span>
-  state's <span><code title="dom-input-value">value</code> setter
-  algorithm</span> is as follows:</strong> Set the <span
-  title="concept-fe-value">value</span> of the element to the new
-  value and <span>strip line breaks from the value</span>.</p>
-
   <p>When an <code>input</code> element's <code
   title="attr-input-type">type</code> attribute is in the <span
   title="attr-input-type-text">Text</span> state, the following common
@@ -26284,26 +26283,10 @@
   elements.</p>
 
   <p><strong>The <span
-  title="attr-input-type-password">Password</span> state's
-  <span>control initialization algorithm</span> is as
-  follows:</strong> <span>Strip line breaks from the value</span>.</p>
+  title="attr-input-type-password">Password</span> state's <span>value
+  sanitization algorithm</span> is as follows:</strong> <span>Strip
+  line breaks from the value</span>.</p>
 
-  <p><strong>The <span
-  title="attr-input-type-password">Password</span> state's
-  <span>default value change algorithm</span> is as follows:</strong>
-  If the <code>input</code> element is not <i
-  title="concept-input-dirty">dirty</i> then set the <span
-  title="concept-fe-value">value</span> of the element to the value of
-  the <code title="attr-input-value">value</code> content attribute
-  and <span>strip line breaks from the value</span>.</p>
-
-  <p><strong>The <span
-  title="attr-input-type-password">Password</span> state's <span><code
-  title="dom-input-value">value</code> setter algorithm</span> is as
-  follows:</strong> Set the <span
-  title="concept-fe-value">value</span> of the element to the new
-  value and <span>strip line breaks from the value</span>.</p>
-
   <p>When an <code>input</code> element's <code
   title="attr-input-type">type</code> attribute is in the <span
   title="attr-input-type-password">Password</span> state, the
@@ -26375,24 +26358,9 @@
   elements.</p>
 
   <p><strong>The <span title="attr-input-type-email">E-mail</span>
-  state's <span>control initialization algorithm</span> is as
-  follows:</strong> <span>Strip line breaks from the
-  value</span>.</p>
+  state's <span>value sanitization algorithm</span> is as
+  follows:</strong> <span>Strip line breaks from the value</span>.</p>
 
-  <p><strong>The <span title="attr-input-type-email">E-mail</span>
-  state's <span>default value change algorithm</span> is as
-  follows:</strong> If the <code>input</code> element is not <i
-  title="concept-input-dirty">dirty</i> then set the <span
-  title="concept-fe-value">value</span> of the element to the value of
-  the <code title="attr-input-value">value</code> content attribute
-  and <span>strip line breaks from the value</span>.</p>
-
-  <p><strong>The <span title="attr-input-type-email">E-mail</span>
-  state's <span><code title="dom-input-value">value</code> setter
-  algorithm</span> is as follows:</strong> Set the <span
-  title="concept-fe-value">value</span> of the element to the new
-  value and <span>strip line breaks from the value</span>.</p>
-
   <p><strong>Constraint validation:</strong> While the <span
   title="concept-fe-value">value</span> of the element does not match
   the <code>addr-spec</code> token defined in RFC 2822 section 3.4.1,
@@ -26473,24 +26441,10 @@
   elements.</p>
 
   <p><strong>The <span title="attr-input-type-url">URL</span>
-  state's <span>control initialization algorithm</span> is as
+  state's <span>value sanitization algorithm</span> is as
   follows:</strong> <span>Strip line breaks from the
   value</span>.</p>
 
-  <p><strong>The <span title="attr-input-type-url">URL</span>
-  state's <span>default value change algorithm</span> is as
-  follows:</strong> If the <code>input</code> element is not <i
-  title="concept-input-dirty">dirty</i> then set the <span
-  title="concept-fe-value">value</span> of the element to the value of
-  the <code title="attr-input-value">value</code> content attribute
-  and <span>strip line breaks from the value</span>.</p>
-
-  <p><strong>The <span title="attr-input-type-url">URL</span>
-  state's <span><code title="dom-input-value">value</code> setter
-  algorithm</span> is as follows:</strong> Set the <span
-  title="concept-fe-value">value</span> of the element to the new
-  value and <span>strip line breaks from the value</span>.</p>
-
   <p><strong>Constraint validation:</strong> While the <span
   title="concept-fe-value">value</span> of the element is not a
   <span>valid URL</span>, the element is <span>suffering from a type
@@ -26552,44 +26506,41 @@
   element represents a control for setting the element's <span
   title="concept-fe-value">value</span> to a string representing a
   specific <span>UTC date and time</span>. User agents may display the
-  time in whatever timezone is appropriate for the user.</p>
+  date and time in whatever timezone is appropriate for the user.</p>
 
   <p>If an <code>input</code> element whose <code
   title="attr-input-type">type</code> attribute is in the <span
   title="attr-input-type-datetime">Date and Time</span> state is <i
   title="concept-input-mutable">mutable</i>, the user should allow the
   user to change the date and time represented by its <span
-  title="concept-fe-value">value</span>. User agents must not allow
-  the user to set the <span title="concept-fe-value">value</span> to a
-  string that is not a <span>valid UTC date and time</span>. If the
-  user agent provides a user interface for selecting a date and time,
-  then the <span title="concept-fe-value">value</span> must be set to
-  a <span>valid UTC date and time</span> representing the user's
-  selection. User agents should allow the user to set the <span
+  title="concept-fe-value">value</span>, as obtained by <span
+  title="parse a UTC date and time">parsing a UTC date and tiem</span>
+  from it. User agents must not allow the user to set the <span
+  title="concept-fe-value">value</span> to a string that is not a
+  <span>valid UTC date and time</span>. If the user agent provides a
+  user interface for selecting a date and time, then the <span
+  title="concept-fe-value">value</span> must be set to a <span>valid
+  UTC date and time</span> representing the user's selection. User
+  agents should allow the user to set the <span
   title="concept-fe-value">value</span> to the empty string.</p>
 
   <p><strong>The <span title="attr-input-type-datetime">Date and
-  Time</span> state's <span>control initialization algorithm</span> is
-  as follows:</strong> If the <span
-  title="concept-fe-value">value</span> of the element is not a
-  <span>valid UTC date and time</span>, then set it to the empty
-  string instead.</p>
+  Time</span> state's <span>value sanitization algorithm</span> is as
+  follows:</strong> If the <span title="concept-fe-value">value</span>
+  of the element is not a <span>valid UTC date and time</span>, then
+  set it to the empty string instead.</p>
 
-  <p><strong>The <span title="attr-input-type-datetime">Date and
-  Time</span> state's <span>default value change algorithm</span> is
-  as follows:</strong> If the <code>input</code> element is not <i
-  title="concept-input-dirty">dirty</i> then set the <span
-  title="concept-fe-value">value</span> of the element to the value of
-  the <code title="attr-input-value">value</code> content attribute
-  and run the <span>control initialization algorithm</span>.</p>
+  <p class="big-issue"><strong>The <span
+  title="attr-input-type-datetime">Date and Time</span> state's
+  <span><code title="dom-input-valueAsDate">valueAsDate</code> setter
+  algorithm</span> is as follows:</strong> ...</p>
 
-  <p><strong>The <span title="attr-input-type-datetime">Date and
-  Time</span> state's <span><code title="dom-input-value">value</code>
-  setter algorithm</span> is as follows:</strong> Set the <span
-  title="concept-fe-value">value</span> of the element to the new
-  value and run the <span>control initialization algorithm</span>.</p>
+  <p class="big-issue"><strong>The <span
+  title="attr-input-type-datetime">Date and Time</span> state's
+  <span><code title="dom-input-valueAsNumber">valueAsNumber</code>
+  setter algorithm</span> is as follows:</strong> ...</p>
 
-  <!-- XXX min, max, step -->
+  <!-- XXX min, max, step; parsing for those -->
 
   <p>When an <code>input</code> element's <code
   title="attr-input-type">type</code> attribute is in the <span
@@ -26907,7 +26858,7 @@
 
   <p>The autocompletion mechanism must be implemented by the user
   agent acting as if the user had modified the element's <span
-  title="concept-input-value">value</span>, and must be done at a time
+  title="concept-fe-value">value</span>, and must be done at a time
   where the element is <i title="concept-input-mutable">mutable</i>
   (e.g. just after the element has been inserted into the document, or
   when the user agent <span>stops parsing</span>).</p>
@@ -26954,20 +26905,22 @@
   <h6>Value manipulation</h6>
 
   <p>The <dfn title="dom-input-value"><code>value</code></dfn> DOM
-  attribute allows secripts to manipulate the <span
-  title="concept-input-value">value</span> of an <code>input</code>
+  attribute allows scripts to manipulate the <span
+  title="concept-fe-value">value</span> of an <code>input</code>
   element. On getting, it must return the current <span
-  title="concept-input-value">value</span> of the element. On setting,
-  it must run the <dfn><code title="dom-input-value">value</code>
-  setter algorithm</dfn> defined for the element's <code
-  title="attr-input-type">type</code> attribute's current state.</p>
+  title="concept-fe-value">value</span> of the element. On setting,
+  it must set the element's <span
+  title="concept-fe-value">value</span> to the new value, and then
+  invoke the <span>value sanitization algorithm</span> defined for the
+  element's <code title="attr-input-type">type</code> attribute's
+  current state.</p>
 
   <hr>
 
   <p>The <dfn
   title="dom-input-valueAsDate"><code>valueAsDate</code></dfn> DOM
   attribute represents the <span
-  title="concept-input-value">value</span> of the element, interpreted
+  title="concept-fe-value">value</span> of the element, interpreted
   as a date.</p>
 
   <p>On getting, if the <code
@@ -26991,7 +26944,7 @@
   <p>The <dfn
   title="dom-input-valueAsNumber"><code>valueAsNumber</code></dfn> DOM
   attribute represents the <span
-  title="concept-input-value">value</span> of the element, interpreted
+  title="concept-fe-value">value</span> of the element, interpreted
   as a number.</p>
 
   <p>On getting, if the <code
@@ -27001,7 +26954,7 @@
   run the <dfn><code
   title="dom-input-valueAsNumber">valueAsNumber</code> getter
   algorithm</dfn> defined for that state. Otherwise, return the <span
-  title="concept-input-value">value</span> of the element, cast to the
+  title="concept-fe-value">value</span> of the element, cast to the
   type of the DOM attribute.</p>
 
   <p>On setting, if the <code
@@ -27011,7 +26964,7 @@
   run the <dfn><code
   title="dom-input-valueAsNumber">valueAsNumber</code> setter
   algorithm</dfn> defined for that state. Otherwise, the <span
-  title="concept-input-value">value</span> must be set to the shortest
+  title="concept-fe-value">value</span> must be set to the shortest
   possible representation of the given value that is a <span>valid
   floating point number</span> in base ten.</p>
 
@@ -55074,6 +55027,7 @@
        mean something. (2046 doesn't define anything like that, and
        2045's definition doesn't really help either, since it's part
        of something else, and doesn't mention whitespace, etc.)
+ XXX * reference [UTC] in the various places that use it.
 -->
 
  </body>




More information about the Commit-Watchers mailing list