W3C home > Mailing lists > Public > public-html-commits@w3.org > October 2010

html5/markup/html5-spec Overview.html,1.2,1.3 acknowledgements.html,1.1,1.2 apis-in-html-documents.html,1.1,1.2 association-of-controls-and-forms.html,1.1,1.2 browsers.html,1.1,1.2 commands.html,1.1,1.2 common-dom-interfaces.html,1.1,1.2 common-input-element-attributes.html,1.1,1.2 common-microsyntaxes.html,1.1,1.2 content-models.html,1.1,1.2 dnd.html,1.1,1.2 dom.html,1.1,1.2 editing.html,1.1,1.2 edits.html,1.1,1.2 elements.html,1.1,1.2 embedded-content-1.html,1.1,1.2 fetching-resources.html,1.1,1.2 forms.html,1.1,1.2 grouping-content.html,1.1,1.2 history.html,1.1,1.2 iana.html,1.1,1.2 index.html,1.1,1.2 infrastructure.html,1.1,1.2 interactive-elements.html,1.1,1.2 introduction.html,1.1,1.2 links.html,1.1,1.2 named-character-references.html,1.1,1.2 namespaces.html,1.1,1.2 number-state.html,1.1,1.2 obsolete.html,1.1,1.2 offline.html,1.1,1.2 origin-0.html,1.1,1.2 parsing.html,1.1,1.2 references.html,1.1,1.2 rendering.html,1.1,1.2 scripting-1.html,1.1,1.2 sections.html,1.1,1.2 semantics.html,1.1,1.2 sp

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 19 Oct 2010 17:38:11 +0000
To: Message-Id: <E1P8G8a-0004YT-BD@lionel-hutz.w3.org>
Update of /sources/public/html5/markup/html5-spec
In directory hutz:/tmp/cvs-serv16858/html5-spec

Modified Files:
	Overview.html acknowledgements.html 
	apis-in-html-documents.html 
	association-of-controls-and-forms.html browsers.html 
	commands.html common-dom-interfaces.html 
	common-input-element-attributes.html common-microsyntaxes.html 
	content-models.html dnd.html dom.html editing.html edits.html 
	elements.html embedded-content-1.html fetching-resources.html 
	forms.html grouping-content.html history.html iana.html 
	index.html infrastructure.html interactive-elements.html 
	introduction.html links.html named-character-references.html 
	namespaces.html number-state.html obsolete.html offline.html 
	origin-0.html parsing.html references.html rendering.html 
	scripting-1.html sections.html semantics.html spec.html 
	states-of-the-type-attribute.html syntax.html 
	tabular-data.html text-level-semantics.html 
	the-button-element.html the-canvas-element.html the-end.html 
	the-iframe-element.html the-input-element.html 
	the-map-element.html the-xhtml-syntax.html timers.html 
	toc-status.html tokenization.html urls.html video.html 
	webappapis.html 
Log Message:
wd-prep

Index: infrastructure.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/infrastructure.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- infrastructure.html	28 Aug 2010 23:52:53 -0000	1.1
+++ infrastructure.html	19 Oct 2010 17:38:07 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -309,18 +319,18 @@
        document.getElementsByTagName('h2')[0].textContent += '; load: ' + (new Date() - loadTimer) + 'ms';
      fixBrokenLink();
    }
-  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="introduction.html" title="1 Introduction" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="common-microsyntaxes.html" title="2.4 Common microsyntaxes" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
+  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="introduction.html" title="1 Introduction" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="common-microsyntaxes.html" title="2.5 Common microsyntaxes" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
    <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"/></a></p>
 
    <h1>HTML5</h1>
    </div><div>
    <a href="introduction.html">&#x2190; 1 Introduction</a> &#x2013;
    <a href="spec.html#contents">Table of contents</a> &#x2013;
-   <a href="common-microsyntaxes.html">2.4 Common microsyntaxes &#x2192;</a>
+   <a href="common-microsyntaxes.html">2.5 Common microsyntaxes &#x2192;</a>
   <ol class="toc"><li><a href="infrastructure.html#infrastructure"><span class="secno">2 </span>Common infrastructure</a>
   <ol><li><a href="infrastructure.html#terminology"><span class="secno">2.1 </span>Terminology</a>
     <ol><li><a href="infrastructure.html#resources"><span class="secno">2.1.1 </span>Resources</a></li><li><a href="infrastructure.html#xml"><span class="secno">2.1.2 </span>XML</a></li><li><a href="infrastructure.html#dom-trees"><span class="secno">2.1.3 </span>DOM trees</a></li><li><a href="infrastructure.html#scripting-0"><span class="secno">2.1.4 </span>Scripting</a></li><li><a href="infrastructure.html#plugins"><span class="secno">2.1.5 </span>Plugins</a></li><li><a href="infrastructure.html#character-encodings"><span class="secno">2.1.6 </span>Character encodings</a></li></ol></li><li><a href="infrastructure.html#conformance-requirements"><span class="secno">2.2 </span>Conformance requirements</a>
-    <ol><li><a href="infrastructure.html#dependencies"><span class="secno">2.2.1 </span>Dependencies</a></li><li><a href="infrastructure.html#extensibility"><span class="secno">2.2.2 </span>Extensibility</a></li></ol></li><li><a href="infrastructure.html#case-sensitivity-and-string-comparison"><span class="secno">2.3 </span>Case-sensitivity and string comparison</a></li></ol></li></ol></div><h2 id="infrastructure"><span class="secno">2 </span>Common infrastructure</h2><h3 id="terminology"><span class="secno">2.1 </span>Terminology</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>This specification refers to both HTML and XML attributes and IDL
+    <ol><li><a href="infrastructure.html#dependencies"><span class="secno">2.2.1 </span>Dependencies</a></li><li><a href="infrastructure.html#extensibility"><span class="secno">2.2.2 </span>Extensibility</a></li></ol></li><li><a href="infrastructure.html#case-sensitivity-and-string-comparison"><span class="secno">2.3 </span>Case-sensitivity and string comparison</a></li><li><a href="infrastructure.html#utf-8"><span class="secno">2.4 </span>UTF-8</a></li></ol></li></ol></div><h2 id="infrastructure"><span class="secno">2 </span>Common infrastructure</h2><h3 id="terminology"><span class="secno">2.1 </span>Terminology</h3><p>This specification refers to both HTML and XML attributes and IDL
   attributes, often in the same context. When it is not clear which is
   being referred to, they are referred to as <dfn title="">content
   attributes</dfn> for HTML and XML attributes, and <dfn title="">IDL
@@ -345,7 +355,7 @@
   implies that A called B. Upon returning to A, the implementation
   must continue from where it left off in calling B.</p>
 
-  </div><h4 id="resources"><span class="secno">2.1.1 </span>Resources</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The specification uses the term <dfn title="">supported</dfn>
+  </div><h4 id="resources"><span class="secno">2.1.1 </span>Resources</h4><p>The specification uses the term <dfn title="">supported</dfn>
   when referring to whether a user agent has an implementation capable
   of decoding the semantics of an external resource. A format or type
   is said to be <i>supported</i> if the implementation can process an
@@ -377,7 +387,7 @@
   specification that defines the resource's format. For CSS resources,
   only <code title="">@import</code> rules introduce <a href="#critical-subresources">critical
   subresources</a>; other resources, e.g. fonts or backgrounds, are
-  not.</p><h4 id="xml"><span class="secno">2.1.2 </span>XML</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p id="html-namespace">To ease migration from HTML to XHTML, UAs
+  not.</p><h4 id="xml"><span class="secno">2.1.2 </span>XML</h4><p id="html-namespace">To ease migration from HTML to XHTML, UAs
   conforming to this specification will place elements in HTML in the
   <code>http://www.w3.org/1999/xhtml</code> namespace, at least for
   the purposes of the DOM and CSS. The term "<dfn id="html-elements">HTML
@@ -393,7 +403,7 @@
   not an <a href="#ascii-case-insensitive">ASCII case-insensitive</a> match for the string
   "<code title="">xml</code>". <a href="references.html#refsXML">[XML]</a></p><p>The term <dfn id="xml-mime-type">XML MIME type</dfn> is used to refer to the <a href="#mime-type" title="MIME type">MIME types</a> <code title="">text/xml</code>,
   <code title="">application/xml</code>, and any <a href="#mime-type">MIME
-  type</a> whose subtype ends with the four characters "<code title="">+xml</code>". <a href="references.html#refsRFC3023">[RFC3023]</a></p><h4 id="dom-trees"><span class="secno">2.1.3 </span>DOM trees</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The term <dfn id="root-element">root element</dfn>, when not explicitly qualified
+  type</a> whose subtype ends with the four characters "<code title="">+xml</code>". <a href="references.html#refsRFC3023">[RFC3023]</a></p><h4 id="dom-trees"><span class="secno">2.1.3 </span>DOM trees</h4><p>The term <dfn id="root-element">root element</dfn>, when not explicitly qualified
   as referring to the document's root element, means the furthest
   ancestor element node of whatever node is being discussed, or the
   node itself if it has no ancestors. When the node is a part of the
@@ -425,7 +435,9 @@
   <code><a href="#node">Node</a></code> with node type <code title="">TEXT_NODE</code> (3)
   or <code title="">CDATA_SECTION_NODE</code> (4). <a href="references.html#refsDOMCORE">[DOMCORE]</a></p><p>A content attribute is said to <dfn title="">change</dfn> value
   only if its new value is different than its previous value; setting
-  an attribute to a value it already has does not change it.</p><h4 id="scripting-0"><span class="secno">2.1.4 </span>Scripting</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The construction "a <code>Foo</code> object", where
+  an attribute to a value it already has does not change it.</p><p>The term <dfn title="">empty</dfn>, when used of an attribute
+  value, text node, or string, means that the length of the text is
+  zero (i.e. not even containing spaces or control characters).</p><h4 id="scripting-0"><span class="secno">2.1.4 </span>Scripting</h4><p>The construction "a <code>Foo</code> object", where
   <code>Foo</code> is actually an interface, is sometimes used instead
   of the more accurate "an object implementing the interface
   <code>Foo</code>".</p><p>An IDL attribute is said to be <dfn title="">getting</dfn> when
@@ -437,7 +449,7 @@
   data.</p><p>The terms <dfn title="">fire</dfn> and <dfn title="">dispatch</dfn> are used interchangeably in the context of
   events, as in the DOM Events specifications. The term <dfn id="concept-events-trusted" title="concept-events-trusted">trusted event</dfn> is used as
   defined by the DOM Events specification. <!--
-  http://krijnhoetmer.nl/irc-logs/webapps/20091218 --> <a href="references.html#refsDOMEVENTS">[DOMEVENTS]</a></p><h4 id="plugins"><span class="secno">2.1.5 </span>Plugins</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The term <dfn id="plugin">plugin</dfn> refers to a user-agent defined set of
+  http://krijnhoetmer.nl/irc-logs/webapps/20091218 --> <a href="references.html#refsDOMEVENTS">[DOMEVENTS]</a></p><h4 id="plugins"><span class="secno">2.1.5 </span>Plugins</h4><p>The term <dfn id="plugin">plugin</dfn> refers to a user-agent defined set of
   content handlers used by the user agent that can take part in the
   user agent's rendering of a <code><a href="#document">Document</a></code> object, but that
   neither act as <a href="browsers.html#child-browsing-context" title="child browsing context">child browsing
@@ -463,7 +475,7 @@
   interacting with external content intended for <a href="#plugin" title="plugin">plugins</a>. When third-party software is run with
   the same privileges as the user agent itself, vulnerabilities in the
   third-party software become as dangerous as those in the user
-  agent.</p><h4 id="character-encodings"><span class="secno">2.1.6 </span>Character encodings</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/101">ISSUE-101</a> (us-ascii-ref) blocks progress to Last Call</span></p><p>The <dfn id="preferred-mime-name">preferred MIME name</dfn> of a character encoding is the
+  agent.</p><h4 id="character-encodings"><span class="secno">2.1.6 </span>Character encodings</h4><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/101">ISSUE-101</a> (us-ascii-ref) blocks progress to Last Call</span></p><p>The <dfn id="preferred-mime-name">preferred MIME name</dfn> of a character encoding is the
   name or alias labeled as "preferred MIME name" in the IANA
   <cite>Character Sets</cite> registry, if there is one, or the
   encoding's name, if none of the aliases are so labeled. <a href="references.html#refsIANACHARSET">[IANACHARSET]</a></p><p>An <dfn id="ascii-compatible-character-encoding">ASCII-compatible character encoding</dfn> is a
@@ -483,7 +495,7 @@
    different <meta charset> elements applying in each case.
   --><p>The term <dfn title="">Unicode character</dfn> is used to mean a
   <i title="">Unicode scalar value</i> (i.e. any Unicode code point
-  that is not a surrogate code point). <a href="references.html#refsUNICODE">[UNICODE]</a></p><h3 id="conformance-requirements"><span class="secno">2.2 </span>Conformance requirements</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>All diagrams, examples, and notes in this specification are
+  that is not a surrogate code point). <a href="references.html#refsUNICODE">[UNICODE]</a></p><h3 id="conformance-requirements"><span class="secno">2.2 </span>Conformance requirements</h3><p>All diagrams, examples, and notes in this specification are
   non-normative, as are all sections explicitly marked non-normative.
   Everything else in this specification is normative.</p><p>The key words "MUST", "MUST NOT", "REQUIRED", <!--"SHALL", "SHALL
   NOT",--> "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and
@@ -768,7 +780,7 @@
   node for the purposes of the algorithms defined in this
   specification.</p><div class="impl">
 
-  <h4 id="dependencies"><span class="secno">2.2.1 </span>Dependencies</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="dependencies"><span class="secno">2.2.1 </span>Dependencies</h4>
 
   <p>This specification relies on several other underlying
   specifications.</p>
@@ -836,7 +848,6 @@
      <li><dfn id="uievent"><code>UIEvent</code></dfn> interface</li>
 
      <li><dfn id="event-click" title="event-click"><code>click</code></dfn> event</li>
-     <li><dfn id="event-domactivate" title="event-DOMActivate"><code>DOMActivate</code></dfn> event</li>
 
      <li><dfn id="dom-event-target" title="dom-Event-target"><code>target</code></dfn> attribute</li>
 
@@ -866,6 +877,10 @@
     required for conforming IDL fragments, as described in the Web IDL
     specification. <a href="references.html#refsWEBIDL">[WEBIDL]</a></p>
 
+    <p>The terms <dfn id="supported-property-indices">supported property indices</dfn> and
+    <dfn id="supported-property-names">supported property names</dfn> are used as defined in the
+    WebIDL specification.</p>
+
     <p id="float-nan">Except where otherwise specified, if an IDL
     attribute that is a floating point number type (<code title="">double</code>) is assigned an Infinity or Not-a-Number
     (NaN) value, a <code><a href="common-dom-interfaces.html#not_supported_err">NOT_SUPPORTED_ERR</a></code> exception must be
@@ -929,7 +944,7 @@
   requirements on character encodings, image formats, audio formats,
   and video formats in the respective sections.</p>
 
-  </div><h4 id="extensibility"><span class="secno">2.2.2 </span>Extensibility</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/41">ISSUE-41</a> (Decentralized-extensibility) blocks progress to Last Call</span></p><p>HTML has a wide number of extensibility mechanisms that can be
+  </div><h4 id="extensibility"><span class="secno">2.2.2 </span>Extensibility</h4><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/41">ISSUE-41</a> (Decentralized-extensibility) blocks progress to Last Call</span></p><p>HTML has a wide number of extensibility mechanisms that can be
   used for adding semantics in a safe manner:</p><ul><li>Authors can use the <code title="attr-class"><a href="elements.html#classes">class</a></code>
    attribute to extend elements, effectively creating their own
    elements, while using the most applicable existing "real" HTML
@@ -953,7 +968,7 @@
    link types</span>. This is also used by Microformats.</li>
 
    <li>Authors can embed raw data using the <code title="script"><a href="scripting-1.html#script">&lt;script type=""&gt;</a></code> mechanism with a custom
-   type, for further handling by a inline or server-side scripts.</li>
+   type, for further handling by inline or server-side scripts.</li>
 
    <li>Authors can create <a href="#plugin" title="plugin">plugins</a> and
    invoke them using the <code><a href="the-iframe-element.html#the-embed-element">embed</a></code> element. This is how Flash
@@ -963,9 +978,6 @@
    mechanism. This is widely used by script libraries, for
    instance.</li>
 
-   <li>Authors can use the microdata feature (the <code title="attr-item">item=""</code> and <code title="attr-itemprop">itemprop=""</code> attributes) to embed
-   nested name-value pairs of data to be shared with other
-   applications and sites.</li>
 
   </ul><div class="impl">
 
@@ -987,13 +999,13 @@
 
   <p>For markup-level features that are intended for use with
   <a href="syntax.html#syntax">the HTML syntax</a>, extensions should be limited to new
-  attributes of the form "<code title=""><var title="">vendor</var>--<var title="">feature</var></code>", where
+  attributes of the form "<code title="">x-<var title="">vendor</var>-<var title="">feature</var></code>", where
   <var title="">vendor</var> is a short string that identifies the
-  vendor responsible for the extension, and <var title="">feature</var> is the name of the feature. (Note the use of
-  <em>two</em> hyphens in the name.) New element names should not be
-  created. Using attributes for such extensions exclusively allows
-  extensions from multiple vendors to co-exist on the same element,
-  which would not be possible with elements. Using the "<code title=""><var title="">vendor</var>--<var title="">feature</var></code>" form allows extensions to be made
+  vendor responsible for the extension, and <var title="">feature</var> is the name of the feature. New element names
+  should not be created. Using attributes for such extensions
+  exclusively allows extensions from multiple vendors to co-exist on
+  the same element, which would not be possible with elements. Using
+  the "<code title="">x-<var title="">vendor</var>-<var title="">feature</var></code>" form allows extensions to be made
   without risk of conflicting with future additions to the
   specification.</p>
 
@@ -1006,14 +1018,16 @@
    these features could write:</p>
 
    <pre>&lt;p&gt;This smells of lemons!
-&lt;span ferret--smellovision ferret--smellcode="LEM01"
-      mb--outputsmell mb--smell="lemon juice"&gt;&lt;/span&gt;&lt;/p&gt;</pre>
+&lt;span x-ferret-smellovision x-ferret-smellcode="LEM01"
+      x-mb-outputsmell x-mb-smell="lemon juice"&gt;&lt;/span&gt;&lt;/p&gt;</pre>
 
   </div>
 
-  <p>Attribute names containing two consecutive U+002D HYPHEN-MINUS
-  (-) characters are reserved for user agent use and are guaranteed to
-  never be formally added to the HTML language.</p>
+  <p>Attribute names beginning with the two characters "<code title="">x-</code>" are reserved for user agent use and are
+  guaranteed to never be formally added to the HTML language. For
+  flexibility, attributes names containing underscores (the U+005F LOW
+  LINE character) are also reserved for experimental purposes and are
+  guaranteed to never be formally added to the HTML language.</p>
 
   <p class="note">Pages that use such attributes are by definition
   non-conforming.</p>
@@ -1039,6 +1053,11 @@
 
   </div>
 
+  <p>When adding new <a href="common-dom-interfaces.html#reflect" title="reflect">reflecting</a> IDL
+  attributes corresponding to content attributes of the form "<code title="">x-<var title="">vendor</var>-<var title="">feature</var></code>", the IDL attribute should be named
+  "<code title=""><var title="">vendor</var><var title="">Feature</var></code>" (i.e. the "<code title="">x</code>"
+  is dropped from the IDL attribute's name).</p>
+
   <hr/><p>When vendor-neutral extensions to this specification are needed,
   either this specification can be updated accordingly, or an
   extension specification can be written that overrides the
@@ -1050,6 +1069,16 @@
   this specification.</p>
   <!-- http://www.w3.org/mid/17E341CD-E790-422C-9F9A-69347EE01CEB@iki.fi -->
 
+  <p class="note">Someone could write a specification that defines any
+  arbitrary byte stream as conforming, and then claim that their
+  random junk is conforming. However, that does not mean that their
+  random junk actually is conforming for everyone's purposes: if
+  someone else decides that that specification does not apply to their
+  work, then they can quite legitimately say that the aforementioned
+  random junk is just that, junk, and not conforming at all. As far as
+  conformance goes, what matters in a particular community is what
+  that community <em>agrees</em> is applicable.</p>
+
   <hr/><p>User agents must treat elements and attributes that they do not
   understand as semantically neutral; leaving them in the DOM (for DOM
   processors), and styling them according to CSS (for CSS processors),
@@ -1065,7 +1094,7 @@
   that interface &#x2014; leaving the attribute on the object but
   making it return null or throw an exception is insufficient.</p>
 
-  </div><h3 id="case-sensitivity-and-string-comparison"><span class="secno">2.3 </span>Case-sensitivity and string comparison</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>Comparing two strings in a <dfn id="case-sensitive">case-sensitive</dfn> manner means
+  </div><h3 id="case-sensitivity-and-string-comparison"><span class="secno">2.3 </span>Case-sensitivity and string comparison</h3><p>Comparing two strings in a <dfn id="case-sensitive">case-sensitive</dfn> manner means
   comparing them exactly, code point for code point.</p><p>Comparing two strings in an <dfn id="ascii-case-insensitive">ASCII case-insensitive</dfn>
   manner means comparing them exactly, code point for code point, except
   that the characters in the range U+0041 to U+005A (i.e. LATIN
@@ -1091,4 +1120,48 @@
   </div><p>A string <var title="">pattern</var> is a <dfn id="prefix-match">prefix match</dfn>
   for a string <var title="">s</var> when <var title="">pattern</var>
   is not longer than <var title="">s</var> and truncating <var title="">s</var> to <var title="">pattern</var>'s length leaves the
-  two strings as matches of each other.</p></body></html>
+  two strings as matches of each other.</p><h3 id="utf-8"><span class="secno">2.4 </span>UTF-8</h3><p>When a user agent is required to <dfn id="decoded-as-utf-8-with-error-handling" title="decoded as UTF-8,&#10;  with error handling">decode a byte string as UTF-8, with error
+  handling</dfn>, it means that the byte stream must be converted to a
+  Unicode string by interpreting it as UTF-8, except that any errors
+  must be handled as described in the following list. Bytes in the
+  following list are represented in hexadecimal. <a href="references.html#refsRFC3629">[RFC3629]</a>
+
+  </p><dl class="switch"><dt>One byte in the range FE to FF</dt>
+
+   <dt>Overlong forms (e.g. F0 80 80 A0)</dt>
+
+   <dt>One byte in the range C0 to C1, followed by one byte in the range 80 to BF</dt>
+
+   <dt>One byte in the range F0 to F4, followed by three bytes in the range 80 to BF that represent a code point above U+10FFFF</dt>
+
+   <dt>One byte in the range F5 to F7, followed by three bytes in the range 80 to BF</dt>
+
+   <dt>One byte in the range F8 to FB, followed by four bytes in the range 80 to BF</dt>
+
+   <dt>One byte in the range FC to FD, followed by five bytes in the range 80 to BF</dt>
+
+   <dt>One byte in the range E0 to FD, followed by a byte in the range 80 to BF, not followed by a byte in the range 80 to BF</dt>
+
+   <dt>One byte in the range F0 to FD, followed by two bytes in the range 80 to BF, not followed by a byte in the range 80 to BF</dt>
+
+   <dt>One byte in the range F5 to FD, followed by three bytes in the range 80 to BF, not followed by a byte in the range 80 to BF</dt>
+
+   <dt>One byte in the range FC to FD, followed by four bytes in the range 80 to BF, not followed by a byte in the range 80 to BF</dt>
+
+
+   <dd>The whole sequence must be replaced by a single U+FFFD
+   REPLACEMENT CHARACTER.</dd>
+
+
+   <dt>One byte in the range 80 to BF not preceded by a byte in the range 80 to FD</dt>
+
+   <dt>A sequence of bytes in the range 80 to BF that does not follow a byte in the range C0 to FD</dt>
+
+   <dt>One byte in the range C0 to FD not followed by a byte in the range 80 to BF</dt>
+
+
+   <dd>Each byte must be replaced with a U+FFFD REPLACEMENT CHARACTER.</dd>
+
+  </dl><p class="example">For example, the byte string "41 98 BA 42 E2 98
+  43 E2 98 BA E2 98" would be converted to the string
+  "A&#xFFFD;&#xFFFD;B&#xFFFD;C&#x263A;&#xFFFD;".</p></body></html>

Index: text-level-semantics.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/text-level-semantics.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- text-level-semantics.html	28 Aug 2010 23:52:55 -0000	1.1
+++ text-level-semantics.html	19 Oct 2010 17:38:08 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -318,12 +328,13 @@
    <a href="spec.html#contents">Table of contents</a> &#x2013;
    <a href="edits.html">4.7 Edits &#x2192;</a>
   <ol class="toc"><li><ol><li><a href="text-level-semantics.html#text-level-semantics"><span class="secno">4.6 </span>Text-level semantics</a>
-    <ol><li><a href="text-level-semantics.html#the-a-element"><span class="secno">4.6.1 </span>The <code>a</code> element</a></li><li><a href="text-level-semantics.html#the-em-element"><span class="secno">4.6.2 </span>The <code>em</code> element</a></li><li><a href="text-level-semantics.html#the-strong-element"><span class="secno">4.6.3 </span>The <code>strong</code> element</a></li><li><a href="text-level-semantics.html#the-small-element"><span class="secno">4.6.4 </span>The <code>small</code> element</a></li><li><a href="text-level-semantics.html#the-cite-element"><span class="secno">4.6.5 </span>The <code>cite</code> element</a></li><li><a href="text-level-semantics.html#the-q-element"><span class="secno">4.6.6 </span>The <code>q</code> element</a></li><li><a href="text-level-semantics.html#the-dfn-element"><span class="secno">4.6.7 </span>The <code>dfn</code> element</a></li><li><a href="text-level-semantics.html#the-abbr-element"><span class="secno">4.6.8 </span>The <code>abbr</code> element</a></li><li><a href="text-level-semantics.html#the-time-element"><span class="secno">4.6.9 </span>The <code>time</code> element</a></li><li><a href="text-level-semantics.html#the-code-element"><span class="secno">4.6.10 </span>The <code>code</code> element</a></li><li><a href="text-level-semantics.html#the-var-element"><span class="secno">4.6.11 </span>The <code>var</code> element</a></li><li><a href="text-level-semantics.html#the-samp-element"><span class="secno">4.6.12 </span>The <code>samp</code> element</a></li><li><a href="text-level-semantics.html#the-kbd-element"><span class="secno">4.6.13 </span>The <code>kbd</code> element</a></li><li><a href="text-level-semantics.html#the-sub-and-sup-elements"><span class="secno">4.6.14 </span>The <code>sub</code> and <code>sup</code> elements</a></li><li><a href="text-level-semantics.html#the-i-element"><span class="secno">4.6.15 </span>The <code>i</code> element</a></li><li><a href="text-level-semantics.html#the-b-element"><span class="secno">4.6.16 </span>The <code>b</code> element</a></li><li><a href="text-level-semantics.html#the-mark-element"><span class="secno">4.6.17 </span>The <code>mark</code> element</a></li><li><a href="text-level-semantics.html#the-ruby-element"><span class="secno">4.6.18 </span>The <code>ruby</code> element</a></li><li><a href="text-level-semantics.html#the-rt-element"><span class="secno">4.6.19 </span>The <code>rt</code> element</a></li><li><a href="text-level-semantics.html#the-rp-element"><span class="secno">4.6.20 </span>The <code>rp</code> element</a></li><li><a href="text-level-semantics.html#the-bdo-element"><span class="secno">4.6.21 </span>The <code>bdo</code> element</a></li><li><a href="text-level-semantics.html#the-span-element"><span class="secno">4.6.22 </span>The <code>span</code> element</a></li><li><a href="text-level-semantics.html#the-br-element"><span class="secno">4.6.23 </span>The <code>br</code> element</a></li><li><a href="text-level-semantics.html#the-wbr-element"><span class="secno">4.6.24 </span>The <code>wbr</code> element</a></li><li><a href="text-level-semantics.html#usage-summary"><span class="secno">4.6.25 </span>Usage summary</a></li></ol></li></ol></li></ol></div><h3 id="text-level-semantics"><span class="secno">4.6 </span>Text-level semantics</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><h4 id="the-a-element"><span class="secno">4.6.1 </span>The <dfn><code>a</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+    <ol><li><a href="text-level-semantics.html#the-a-element"><span class="secno">4.6.1 </span>The <code>a</code> element</a></li><li><a href="text-level-semantics.html#the-em-element"><span class="secno">4.6.2 </span>The <code>em</code> element</a></li><li><a href="text-level-semantics.html#the-strong-element"><span class="secno">4.6.3 </span>The <code>strong</code> element</a></li><li><a href="text-level-semantics.html#the-small-element"><span class="secno">4.6.4 </span>The <code>small</code> element</a></li><li><a href="text-level-semantics.html#the-s-element"><span class="secno">4.6.5 </span>The <code>s</code> element</a></li><li><a href="text-level-semantics.html#the-cite-element"><span class="secno">4.6.6 </span>The <code>cite</code> element</a></li><li><a href="text-level-semantics.html#the-q-element"><span class="secno">4.6.7 </span>The <code>q</code> element</a></li><li><a href="text-level-semantics.html#the-dfn-element"><span class="secno">4.6.8 </span>The <code>dfn</code> element</a></li><li><a href="text-level-semantics.html#the-abbr-element"><span class="secno">4.6.9 </span>The <code>abbr</code> element</a></li><li><a href="text-level-semantics.html#the-time-element"><span class="secno">4.6.10 </span>The <code>time</code> element</a></li><li><a href="text-level-semantics.html#the-code-element"><span class="secno">4.6.11 </span>The <code>code</code> element</a></li><li><a href="text-level-semantics.html#the-var-element"><span class="secno">4.6.12 </span>The <code>var</code> element</a></li><li><a href="text-level-semantics.html#the-samp-element"><span class="secno">4.6.13 </span>The <code>samp</code> element</a></li><li><a href="text-level-semantics.html#the-kbd-element"><span class="secno">4.6.14 </span>The <code>kbd</code> element</a></li><li><a href="text-level-semantics.html#the-sub-and-sup-elements"><span class="secno">4.6.15 </span>The <code>sub</code> and <code>sup</code> elements</a></li><li><a href="text-level-semantics.html#the-i-element"><span class="secno">4.6.16 </span>The <code>i</code> element</a></li><li><a href="text-level-semantics.html#the-b-element"><span class="secno">4.6.17 </span>The <code>b</code> element</a></li><li><a href="text-level-semantics.html#the-mark-element"><span class="secno">4.6.18 </span>The <code>mark</code> element</a></li><li><a href="text-level-semantics.html#the-ruby-element"><span class="secno">4.6.19 </span>The <code>ruby</code> element</a></li><li><a href="text-level-semantics.html#the-rt-element"><span class="secno">4.6.20 </span>The <code>rt</code> element</a></li><li><a href="text-level-semantics.html#the-rp-element"><span class="secno">4.6.21 </span>The <code>rp</code> element</a></li><li><a href="text-level-semantics.html#the-bdo-element"><span class="secno">4.6.22 </span>The <code>bdo</code> element</a></li><li><a href="text-level-semantics.html#the-span-element"><span class="secno">4.6.23 </span>The <code>span</code> element</a></li><li><a href="text-level-semantics.html#the-br-element"><span class="secno">4.6.24 </span>The <code>br</code> element</a></li><li><a href="text-level-semantics.html#the-wbr-element"><span class="secno">4.6.25 </span>The <code>wbr</code> element</a></li><li><a href="text-level-semantics.html#usage-summary"><span class="secno">4.6.26 </span>Usage summary</a></li></ol></li></ol></li></ol></div><h3 id="text-level-semantics"><span class="secno">4.6 </span>Text-level semantics</h3><h4 id="the-a-element"><span class="secno">4.6.1 </span>The <dfn><code>a</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd>When the element only contains <a href="content-models.html#phrasing-content">phrasing content</a>: <a href="content-models.html#phrasing-content">phrasing content</a>.</dd>
    <dd><a href="content-models.html#interactive-content">Interactive content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
-   <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
+   <dt>Contexts in which this element can be used:</dt>
+   <dd>When the element only contains <a href="content-models.html#phrasing-content">phrasing content</a>: where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
+   <dd>Otherwise: where <a href="content-models.html#flow-content">flow content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#transparent">Transparent</a>, but there must be no <a href="content-models.html#interactive-content">interactive content</a> descendant.</dd>
    <dt>Content attributes:</dt>
@@ -394,7 +405,7 @@
   that create <a href="links.html#hyperlink" title="hyperlink">hyperlinks</a> is to run the
   following steps:</p>
 
-  <ol><li><p>If the <code title="event-DOMActivate"><a href="infrastructure.html#event-domactivate">DOMActivate</a></code>
+  <ol><li><p>If the <code title="event-click"><a href="infrastructure.html#event-click">click</a></code>
    event in question is not <a href="infrastructure.html#concept-events-trusted" title="concept-events-trusted">trusted</a> (i.e. a <code title="dom-click"><a href="editing.html#dom-click">click()</a></code> method call was the reason for the
    event being dispatched), and the <code><a href="#the-a-element">a</a></code> element's <code title="attr-hyperlink-target"><a href="links.html#attr-hyperlink-target">target</a></code> attribute is such that
    applying <a href="browsers.html#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name">the rules for choosing a browsing context given a
@@ -407,15 +418,15 @@
    event is an <code><a href="embedded-content-1.html#the-img-element">img</a></code> element with an <code title="attr-img-ismap"><a href="embedded-content-1.html#attr-img-ismap">ismap</a></code> attribute specified, then
    server-side image map processing must be performed, as follows:</p>
 
-    <ol><!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%0A...%3Ca%20href%3D%22%23%22%3E%3Cimg%20ismap%20usemap%3D%22%23a%22%20src%3D/resources/images/smallcats%3E%3C/a%3E%0A%3Cmap%20name%3Da%3E%3Carea%20shape%3Drect%20coords%3D0%2C0%2C50%2C50%20href%3Db%3E%3C/map%3E --><li>If the <code title="event-DOMActivate"><a href="infrastructure.html#event-domactivate">DOMActivate</a></code>
-     event was dispatched as the result of a real
-     pointing-device-triggered <code title="event-click"><a href="infrastructure.html#event-click">click</a></code>
-     event on the <code><a href="embedded-content-1.html#the-img-element">img</a></code> element, then let <var title="">x</var> be the distance in CSS pixels from the left edge
-     of the image's left border, if it has one, or the left edge of
-     the image otherwise, to the location of the click, and let <var title="">y</var> be the distance in CSS pixels from the top edge
-     of the image's top border, if it has one, or the top edge of the
-     image otherwise, to the location of the click. Otherwise, let
-     <var title="">x</var> and <var title="">y</var> be zero.</li>
+    <ol><!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%0A...%3Ca%20href%3D%22%23%22%3E%3Cimg%20ismap%20usemap%3D%22%23a%22%20src%3D/resources/images/smallcats%3E%3C/a%3E%0A%3Cmap%20name%3Da%3E%3Carea%20shape%3Drect%20coords%3D0%2C0%2C50%2C50%20href%3Db%3E%3C/map%3E --><li>If the <code title="event-click"><a href="infrastructure.html#event-click">click</a></code> event was a
+     real pointing-device-triggered <code title="event-click"><a href="infrastructure.html#event-click">click</a></code> event on the <code><a href="embedded-content-1.html#the-img-element">img</a></code>
+     element, then let <var title="">x</var> be the distance in CSS
+     pixels from the left edge of the image's left border, if it has
+     one, or the left edge of the image otherwise, to the location of
+     the click, and let <var title="">y</var> be the distance in CSS
+     pixels from the top edge of the image's top border, if it has
+     one, or the top edge of the image otherwise, to the location of
+     the click. Otherwise, let <var title="">x</var> and <var title="">y</var> be zero.</li>
 
      <li>Let the <dfn id="hyperlink-suffix"><var>hyperlink suffix</var></dfn> be a U+003F
      QUESTION MARK character, the value of <var title="">x</var>
@@ -493,10 +504,10 @@
  &lt;/a&gt;
 &lt;/aside&gt;</pre>
 
-  </div><h4 id="the-em-element"><span class="secno">4.6.2 </span>The <dfn><code>em</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-em-element"><span class="secno">4.6.2 </span>The <dfn><code>em</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -573,10 +584,10 @@
 
    -->
 
-  </div><h4 id="the-strong-element"><span class="secno">4.6.3 </span>The <dfn><code>strong</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-strong-element"><span class="secno">4.6.3 </span>The <dfn><code>strong</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -599,10 +610,10 @@
 &lt;strong&gt;&lt;strong&gt;Do not take any of the diamonds&lt;/strong&gt;,
 they are explosive and &lt;strong&gt;will destroy anything within
 ten meters.&lt;/strong&gt;&lt;/strong&gt; You have been warned.&lt;/p&gt;</pre>
-  </div><h4 id="the-small-element"><span class="secno">4.6.4 </span>The <dfn><code>small</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-small-element"><span class="secno">4.6.4 </span>The <dfn><code>small</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -670,10 +681,34 @@
 
    <pre>&lt;p&gt;&lt;strong&gt;&lt;small&gt;Continued use of this service will result in a kiss.&lt;/small&gt;&lt;/strong&gt;&lt;/p&gt;</pre>
 
-  </div><h4 id="the-cite-element"><span class="secno">4.6.5 </span>The <dfn><code>cite</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-s-element"><span class="secno">4.6.5 </span>The <dfn><code>s</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
+   <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
+   <dt>Content model:</dt>
+   <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
+   <dt>Content attributes:</dt>
+   <dd><a href="elements.html#global-attributes">Global attributes</a></dd>
+   <dt>DOM interface:</dt>
+   <dd>Uses <code><a href="elements.html#htmlelement">HTMLElement</a></code>.</dd>
+  </dl><p>The <code><a href="#the-s-element">s</a></code> element <a href="rendering.html#represents">represents</a> contents that
+  are no longer accurate or no longer relevant.</p><p class="note">The <code><a href="#the-s-element">s</a></code> element is not appropriate when
+  indicating document edits; to mark a span of text as having been
+  removed from a document, use the <code><a href="edits.html#the-del-element">del</a></code> element.</p><div class="example">
+
+   <p>In this example a recommended retail price has been marked as no
+   longer relevant as the product in question has a new sale
+   price.</p>
+
+   <pre>&lt;p&gt;Buy our Iced Tea and Lemonade!&lt;/p&gt;
+&lt;p&gt;&lt;s&gt;Recommended retail price: $3.99 per bottle&lt;/s&gt;&lt;/p&gt;
+&lt;p&gt;&lt;strong&gt;Now selling for just $2.99 a bottle!&lt;/strong&gt;&lt;/p&gt;</pre>
+
+  </div><h4 id="the-cite-element"><span class="secno">4.6.6 </span>The <dfn><code>cite</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
+   <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
+   <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -774,10 +809,10 @@
    <pre>&lt;p&gt;And then &lt;b&gt;Ian&lt;/b&gt; said &lt;q&gt;this might be right, in a
 gossip column, maybe!&lt;/q&gt;.&lt;/p&gt;</pre>
 
-  </div><h4 id="the-q-element"><span class="secno">4.6.6 </span>The <dfn><code>q</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-q-element"><span class="secno">4.6.7 </span>The <dfn><code>q</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -848,10 +883,10 @@
    <pre>&lt;p&gt;The word "ineffable" could have been used to describe the disaster
 resulting from the campaign's mismanagement.&lt;/p&gt;</pre>
 
-  </div><h4 id="the-dfn-element"><span class="secno">4.6.7 </span>The <dfn><code>dfn</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-dfn-element"><span class="secno">4.6.8 </span>The <dfn><code>dfn</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>, but there must be no <code><a href="#the-dfn-element">dfn</a></code> element descendants.</dd>
@@ -898,10 +933,10 @@
 &lt;p&gt;Teal'c activated his &lt;a href=#gdo&gt;&lt;abbr title="Garage Door Opener"&gt;GDO&lt;/abbr&gt;&lt;/a&gt;
 and so Hammond ordered the iris to be opened.&lt;/p&gt;</pre>
 
-  </div><h4 id="the-abbr-element"><span class="secno">4.6.8 </span>The <dfn><code>abbr</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-abbr-element"><span class="secno">4.6.9 </span>The <dfn><code>abbr</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -989,10 +1024,10 @@
   cause other <code><a href="#the-abbr-element">abbr</a></code> elements in the same document with the
   same contents but without a <code title="attr-title"><a href="elements.html#the-title-attribute">title</a></code>
   attribute to behave as if they had the same expansion. Every
-  <code><a href="#the-abbr-element">abbr</a></code> element is independent.</p><h4 id="the-time-element"><span class="secno">4.6.9 </span>The <dfn><code>time</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  <code><a href="#the-abbr-element">abbr</a></code> element is independent.</p><h4 id="the-time-element"><span class="secno">4.6.10 </span>The <dfn><code>time</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>, but there must be no <code><a href="#the-time-element">time</a></code> element descendants.</dd>
@@ -1016,7 +1051,11 @@
   can offer to add birthday reminders or scheduled events to the
   user's calendar.</p><!-- it's also intended for restyling to local conventions
   (2000-12-31 vs 31-12-2000 vs 12-31-2000), but CSS doesn't support
-  that yet. --><div class="note">
+  that yet. Once CSS does support that, we should update this to also
+  support year and year-month cases, since in Japanese those need
+  special styling also. See #2 in:
+     http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2010-August/028025.html
+  ...for details. --><div class="note">
 
    <p>The <code><a href="#the-time-element">time</a></code> element is not intended for encoding times
    for which a precise date or time cannot be established. For
@@ -1040,7 +1079,7 @@
   <code><a href="sections.html#the-article-element">article</a></code> element, of the document as a whole. If the
   element has a <code title="attr-time-pubdate"><a href="#attr-time-pubdate">pubdate</a></code>
   attribute specified, then the element <dfn id="needs-a-date">needs a date</dfn>. For
-  each <code><a href="sections.html#the-article-element">article</a></code> element, there must no more than one
+  each <code><a href="sections.html#the-article-element">article</a></code> element, there must be no more than one
   <code><a href="#the-time-element">time</a></code> element with a <code title="attr-time-pubdate"><a href="#attr-time-pubdate">pubdate</a></code> attribute whose nearest
   ancestor is that <code><a href="sections.html#the-article-element">article</a></code> element. Furthermore, for each
   <code><a href="infrastructure.html#document">Document</a></code>, there must be no more than one
@@ -1227,10 +1266,10 @@
  &lt;p&gt;I put a bike bell on his bike.&lt;/p&gt;
 &lt;/article&gt;</pre>
 
-  </div><h4 id="the-code-element"><span class="secno">4.6.10 </span>The <dfn><code>code</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-code-element"><span class="secno">4.6.11 </span>The <dfn><code>code</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -1276,10 +1315,10 @@
    <p>A class is used in that example to indicate the language
    used.</p>
 
-  </div><p class="note">See the <code><a href="grouping-content.html#the-pre-element">pre</a></code> element for more details.</p><h4 id="the-var-element"><span class="secno">4.6.11 </span>The <dfn><code>var</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><p class="note">See the <code><a href="grouping-content.html#the-pre-element">pre</a></code> element for more details.</p><h4 id="the-var-element"><span class="secno">4.6.12 </span>The <dfn><code>var</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -1322,10 +1361,10 @@
  &lt;/figcaption&gt;
 &lt;/figure&gt;</pre>
 
-  </div><h4 id="the-samp-element"><span class="secno">4.6.12 </span>The <dfn><code>samp</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-samp-element"><span class="secno">4.6.13 </span>The <dfn><code>samp</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -1351,10 +1390,10 @@
 Linux demo 2.6.10-grsec+gg3+e+fhs6b+nfs+gr0501+++p3+c4a+gr2b-reslog-v6.189 #1 SMP Tue Feb 1 11:22:36 PST 2005 i686 unknown
 
 &lt;span class="prompt"&gt;jdoe@demo:~$&lt;/span&gt; &lt;span class="cursor"&gt;_&lt;/span&gt;&lt;/samp&gt;&lt;/pre&gt;</pre>
-  </div><h4 id="the-kbd-element"><span class="secno">4.6.13 </span>The <dfn><code>kbd</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-kbd-element"><span class="secno">4.6.14 </span>The <dfn><code>kbd</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -1389,10 +1428,10 @@
 
    <pre>&lt;p&gt;To make George eat an apple, select &lt;kbd&gt;File | Eat Apple...&lt;/kbd&gt;&lt;/p&gt;</pre>
 
-  </div><h4 id="the-sub-and-sup-elements"><span class="secno">4.6.14 </span>The <dfn><code>sub</code></dfn> and <dfn><code>sup</code></dfn> elements</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-sub-and-sup-elements"><span class="secno">4.6.15 </span>The <dfn><code>sub</code></dfn> and <dfn><code>sup</code></dfn> elements</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which these elements may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -1431,10 +1470,10 @@
   detailed mathematical markup is not desired. <a href="references.html#refsMATHML">[MATHML]</a></p><div class="example">
    <pre>&lt;var&gt;E&lt;/var&gt;=&lt;var&gt;m&lt;/var&gt;&lt;var&gt;c&lt;/var&gt;&lt;sup&gt;2&lt;/sup&gt;</pre>
    <pre>f(&lt;var&gt;x&lt;/var&gt;, &lt;var&gt;n&lt;/var&gt;) = log&lt;sub&gt;4&lt;/sub&gt;&lt;var&gt;x&lt;/var&gt;&lt;sup&gt;&lt;var&gt;n&lt;/var&gt;&lt;/sup&gt;</pre>
-  </div><h4 id="the-i-element"><span class="secno">4.6.15 </span>The <dfn><code>i</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-i-element"><span class="secno">4.6.16 </span>The <dfn><code>i</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -1465,22 +1504,22 @@
 &lt;p&gt;&lt;i&gt;Finally one night he picked up the courage to speak with
 her&#x2014;&lt;/i&gt;&lt;/p&gt;
 &lt;p&gt;Raymond woke with a start as the fire alarm rang out.&lt;/p&gt;</pre>
-  </div><p>Authors are encouraged to use the <code title="attr-class"><a href="elements.html#classes">class</a></code> attribute on the <code><a href="#the-i-element">i</a></code>
-  element to identify why the element is being used, so that if the
-  style of a particular use (e.g. dream sequences as opposed to
-  taxonomic terms) is to be changed at a later date, the author
-  doesn't have to go through the entire document (or series of related
-  documents) annotating each use. Similarly, authors are encouraged to
-  consider whether other elements might be more applicable than the
-  <code><a href="#the-i-element">i</a></code> element, for instance the <code><a href="#the-em-element">em</a></code> element for
-  marking up stress emphasis, or the <code><a href="#the-dfn-element">dfn</a></code> element to mark
-  up the defining instance of a term.</p><p class="note">Style sheets can be used to format <code><a href="#the-i-element">i</a></code>
+  </div><p>Authors can use the <code title="attr-class"><a href="elements.html#classes">class</a></code>
+  attribute on the <code><a href="#the-i-element">i</a></code> element to identify why the element
+  is being used, so that if the style of a particular use (e.g. dream
+  sequences as opposed to taxonomic terms) is to be changed at a later
+  date, the author doesn't have to go through the entire document (or
+  series of related documents) annotating each use.</p><p>Authors are encouraged to consider whether other elements might
+  be more applicable than the <code><a href="#the-i-element">i</a></code> element, for instance the
+  <code><a href="#the-em-element">em</a></code> element for marking up stress emphasis, or the
+  <code><a href="#the-dfn-element">dfn</a></code> element to mark up the defining instance of a
+  term.</p><p class="note">Style sheets can be used to format <code><a href="#the-i-element">i</a></code>
   elements, just like any other element can be restyled. Thus, it is
   not the case that content in <code><a href="#the-i-element">i</a></code> elements will
-  necessarily be italicized.</p><h4 id="the-b-element"><span class="secno">4.6.16 </span>The <dfn><code>b</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  necessarily be italicized.</p><h4 id="the-b-element"><span class="secno">4.6.17 </span>The <dfn><code>b</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -1515,11 +1554,10 @@
  &lt;p&gt;Veterinary nurse Melanie Humble took the three-week-old
  kittens to her Aberdeen home.&lt;/p&gt;
 <i>[...]</i></pre>
-  </div><p>As with the <code><a href="#the-i-element">i</a></code> element, authors are encouraged to use
-  the <code title="attr-class"><a href="elements.html#classes">class</a></code> attribute on the
-  <code><a href="#the-b-element">b</a></code> element to identify why the element is being used, so
-  that if the style of a particular use is to be changed at a later
-  date, the author doesn't have to go through annotating each use.</p><p>The <code><a href="#the-b-element">b</a></code> element should be used as a last resort when
+  </div><p>As with the <code><a href="#the-i-element">i</a></code> element, authors can use the <code title="attr-class"><a href="elements.html#classes">class</a></code> attribute on the <code><a href="#the-b-element">b</a></code>
+  element to identify why the element is being used, so that if the
+  style of a particular use is to be changed at a later date, the
+  author doesn't have to go through annotating each use.</p><p>The <code><a href="#the-b-element">b</a></code> element should be used as a last resort when
   no other element is more appropriate. In particular, headings should
   use the <code><a href="sections.html#the-h1-h2-h3-h4-h5-and-h6-elements">h1</a></code> to <code><a href="sections.html#the-h1-h2-h3-h4-h5-and-h6-elements">h6</a></code> elements, stress emphasis
   should use the <code><a href="#the-em-element">em</a></code> element, importance should be denoted
@@ -1532,10 +1570,10 @@
   </div><p class="note">Style sheets can be used to format <code><a href="#the-b-element">b</a></code>
   elements, just like any other element can be restyled. Thus, it is
   not the case that content in <code><a href="#the-b-element">b</a></code> elements will
-  necessarily be boldened.</p><h4 id="the-mark-element"><span class="secno">4.6.17 </span>The <dfn><code>mark</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  necessarily be boldened.</p><h4 id="the-mark-element"><span class="secno">4.6.18 </span>The <dfn><code>mark</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -1662,10 +1700,10 @@
 &lt;p&gt;&lt;mark&gt;An obstruction in a gate will prevent it from accepting a
 wormhole connection.&lt;/mark&gt;&lt;/p&gt;</pre>
 
-  </div><h4 id="the-ruby-element"><span class="secno">4.6.18 </span>The <dfn><code>ruby</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-ruby-element"><span class="secno">4.6.19 </span>The <dfn><code>ruby</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd>One or more groups of: <a href="content-models.html#phrasing-content">phrasing content</a> followed either by a single <code><a href="#the-rt-element">rt</a></code> element, or an <code><a href="#the-rp-element">rp</a></code> element, an <code><a href="#the-rt-element">rt</a></code> element, and another <code><a href="#the-rp-element">rp</a></code> element.</dd>
@@ -1691,15 +1729,12 @@
    reading in hiragana.</p>
 
    <pre lang="ja">...
-&lt;ruby&gt;
- &#x6F22; &lt;rt&gt; &#x304B;&#x3093; &lt;/rt&gt;
- &#x5B57; &lt;rt&gt; &#x3058;&#x3000; &lt;/rt&gt;
-&lt;/ruby&gt;
+&lt;ruby&gt;&#x6F22;&lt;rt&gt;&#x304B;&#x3093;&lt;/rt&gt;&#x5B57;&lt;rt&gt;&#x3058;&#x3000;&lt;/rt&gt;&lt;/ruby&gt;
 ...</pre>
 
    <p>This might be rendered as:</p>
 
-   <p><img alt="The two main ideographs, each with its annotation in hiragana rendered in a smaller font above it." src="http://dev.w3.org/html5/spec/images/sample-ruby-ja.png"/></p>
+   <p><img alt="The two main ideographs, each with its annotation in hiragana rendered in a smaller font above it." height="78" src="http://dev.w3.org/html5/spec/images/sample-ruby-ja.png" width="171"/></p>
 
   </div><div class="example">
 
@@ -1709,14 +1744,11 @@
    <span lang="zh-TW" title="">&#x6F22;&#x5B57;</span> is annotated
    with its bopomofo reading.</p>
 
-   <pre lang="zh-TW">&lt;ruby&gt;
- &#x6F22; &lt;rt&gt; &#x310F;&#x3122;&#x2CB; &lt;/rt&gt;
- &#x5B57; &lt;rt&gt; &#x3117;&#x2CB;&#x3000; &lt;/rt&gt;
-&lt;/ruby&gt;</pre>
+   <pre lang="zh-TW">&lt;ruby&gt;&#x6F22;&lt;rt&gt;&#x310F;&#x3122;&#x2CB;&lt;/rt&gt;&#x5B57;&lt;rt&gt;&#x3117;&#x2CB;&#x3000;&lt;/rt&gt;&lt;/ruby&gt;</pre>
 
    <p>This might be rendered as:</p>
 
-   <p><img alt="The two main ideographs, each with its bopomofo annotation rendered in a smaller font next to it." src="http://dev.w3.org/html5/spec/images/sample-ruby-bopomofo.png"/></p>
+   <p><img alt="The two main ideographs, each with its bopomofo annotation rendered in a smaller font next to it." height="100" src="http://dev.w3.org/html5/spec/images/sample-ruby-bopomofo.png" width="78"/></p>
 
   </div><div class="example">
 
@@ -1726,20 +1758,15 @@
    <span lang="zh-CN" title="">&#x6C49;&#x5B57;</span> is annotated
    with its pinyin reading.</p>
 
-   <pre lang="zh-CN">...
-&lt;ruby&gt;
- &#x6C49; &lt;rt&gt; h&#xE0;n &lt;/rt&gt;
- &#x5B57; &lt;rt&gt; z&#xEC;&#xA0; &lt;/rt&gt;
-&lt;/ruby&gt;
-...</pre>
+   <pre lang="zh-CN">...&lt;ruby&gt;&#x6C49;&lt;rt&gt;h&#xE0;n&lt;/rt&gt;&#x5B57;&lt;rt&gt;z&#xEC;&#xA0;&lt;/rt&gt;&lt;/ruby&gt;...</pre>
 
    <p>This might be rendered as:</p>
 
-   <p><img alt="The two main ideographs, each with its pinyin annotation rendered in a smaller font above it." src="http://dev.w3.org/html5/spec/images/sample-ruby-pinyin.png"/></p>
+   <p><img alt="The two main ideographs, each with its pinyin annotation rendered in a smaller font above it." height="79" src="http://dev.w3.org/html5/spec/images/sample-ruby-pinyin.png" width="173"/></p>
 
-  </div><!-- Note: Examples are 32px/16px Stone Sans Sem ITC TT --><h4 id="the-rt-element"><span class="secno">4.6.19 </span>The <dfn><code>rt</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><!-- Note: Examples are 32px/16px Stone Sans Sem ITC TT --><h4 id="the-rt-element"><span class="secno">4.6.20 </span>The <dfn><code>rt</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>As a child of a <code><a href="#the-ruby-element">ruby</a></code> element.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -1758,9 +1785,9 @@
   <code><a href="#the-ruby-element">ruby</a></code> element represents the same thing as its
   children.</p>
 
-  </div><h4 id="the-rp-element"><span class="secno">4.6.20 </span>The <dfn><code>rp</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-rp-element"><span class="secno">4.6.21 </span>The <dfn><code>rp</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>As a child of a <code><a href="#the-ruby-element">ruby</a></code> element, either immediately before or immediately after an <code><a href="#the-rt-element">rt</a></code> element.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -1798,10 +1825,10 @@
 
    <pre lang="ja">... &#x6F22; (&#x304B;&#x3093;) &#x5B57; (&#x3058;) ...</pre>
 
-  </div><h4 id="the-bdo-element"><span class="secno">4.6.21 </span>The <dfn><code>bdo</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-bdo-element"><span class="secno">4.6.22 </span>The <dfn><code>bdo</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -1837,10 +1864,10 @@
   layer. For example, an HTML+CSS user agent should implement these
   requirements by implementing the CSS 'unicode-bidi' property. <a href="references.html#refsCSS">[CSS]</a></p>
 
-  </div><h4 id="the-span-element"><span class="secno">4.6.22 </span>The <dfn><code>span</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-span-element"><span class="secno">4.6.23 </span>The <dfn><code>span</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -1868,10 +1895,10 @@
     &lt;span class="keyword"&gt;break&lt;/span&gt;;
 }&lt;/code&gt;&lt;/pre&gt;</pre>
 
-  </div><h4 id="the-br-element"><span class="secno">4.6.23 </span>The <dfn><code>br</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-br-element"><span class="secno">4.6.24 </span>The <dfn><code>br</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd>Empty.</dd>
@@ -1927,10 +1954,10 @@
   <p>A <code><a href="#the-br-element">br</a></code> element does not separate paragraphs for the
   purposes of the Unicode bidirectional algorithm. <a href="references.html#refsBIDI">[BIDI]</a></p>
 
-  </div><h4 id="the-wbr-element"><span class="secno">4.6.24 </span>The <dfn><code>wbr</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Implemented and widely deployed</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-wbr-element"><span class="secno">4.6.25 </span>The <dfn><code>wbr</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd>Empty.</dd>
@@ -1955,7 +1982,7 @@
   <p>Any content inside <code><a href="#the-wbr-element">wbr</a></code> elements must not be
   considered part of the surrounding text.</p>
 
-  </div><h4 id="usage-summary"><span class="secno">4.6.25 </span>Usage summary</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p><i>This section is non-normative.</i></p><table><thead><tr><th>Element
+  </div><h4 id="usage-summary"><span class="secno">4.6.26 </span>Usage summary</h4><p><i>This section is non-normative.</i></p><table><thead><tr><th>Element
      </th><th>Purpose
      </th><th>Example
    </th></tr></thead><tbody><tr><td><code><a href="#the-a-element">a</a></code>
@@ -1974,6 +2001,10 @@
      </td><td>Side comments
      </td><td><pre class="example">These grapes are made into wine. <strong>&lt;small&gt;Alcohol is addictive.&lt;/small&gt;</strong></pre>
 
+    </td></tr><tr><td><code><a href="#the-s-element">s</a></code>
+     </td><td>Inaccurate text
+     </td><td><pre class="example">Price: <strong>&lt;s&gt;&#xA3;4.50&lt;/s&gt;</strong> &#xA3;2.00!</pre>
+
     </td></tr><tr><td><code><a href="#the-cite-element">cite</a></code>
      </td><td>Titles of works
      </td><td><pre class="example">The case <strong>&lt;cite&gt;Hugo v. Danielle&lt;/cite&gt;</strong> is relevant here.</pre>

Index: scripting-1.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/scripting-1.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- scripting-1.html	28 Aug 2010 23:52:54 -0000	1.1
+++ scripting-1.html	19 Oct 2010 17:38:08 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -319,7 +329,7 @@
    <a href="sections.html">4.4 Sections &#x2192;</a>
   <ol class="toc"><li><ol><li><a href="scripting-1.html#scripting-1"><span class="secno">4.3 </span>Scripting</a>
     <ol><li><a href="scripting-1.html#script"><span class="secno">4.3.1 </span>The <code>script</code> element</a>
-      <ol><li><a href="scripting-1.html#scriptingLanguages"><span class="secno">4.3.1.1 </span>Scripting languages</a></li><li><a href="scripting-1.html#restrictions-for-contents-of-script-elements"><span class="secno">4.3.1.2 </span>Restrictions for contents of <code>script</code> elements</a></li><li><a href="scripting-1.html#inline-documentation-for-external-scripts"><span class="secno">4.3.1.3 </span>Inline documentation for external scripts</a></li></ol></li><li><a href="scripting-1.html#the-noscript-element"><span class="secno">4.3.2 </span>The <code>noscript</code> element</a></li></ol></li></ol></li></ol></div><h3 id="scripting-1"><span class="secno">4.3 </span>Scripting</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>Scripts allow authors to add interactivity to their documents.</p><p>Authors are encouraged to use declarative alternatives to
+      <ol><li><a href="scripting-1.html#scriptingLanguages"><span class="secno">4.3.1.1 </span>Scripting languages</a></li><li><a href="scripting-1.html#restrictions-for-contents-of-script-elements"><span class="secno">4.3.1.2 </span>Restrictions for contents of <code>script</code> elements</a></li><li><a href="scripting-1.html#inline-documentation-for-external-scripts"><span class="secno">4.3.1.3 </span>Inline documentation for external scripts</a></li></ol></li><li><a href="scripting-1.html#the-noscript-element"><span class="secno">4.3.2 </span>The <code>noscript</code> element</a></li></ol></li></ol></li></ol></div><h3 id="scripting-1"><span class="secno">4.3 </span>Scripting</h3><p>Scripts allow authors to add interactivity to their documents.</p><p>Authors are encouraged to use declarative alternatives to
   scripting where possible, as declarative mechanisms are often more
   maintainable, and many users disable scripting.</p><div class="example">
    <p>For example, instead of using script to show or hide a section
@@ -331,11 +341,11 @@
    dynamically resort the table, the link could also be made to
    function without scripts by requesting the sorted table from the
    server.</p>
-  </div><h4 id="script"><span class="secno">4.3.1 </span>The <dfn><code>script</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="script"><span class="secno">4.3.1 </span>The <dfn><code>script</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#metadata-content">Metadata content</a>.</dd>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#metadata-content">metadata content</a> is expected.</dd>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
@@ -451,22 +461,14 @@
   <a href="#parser-inserted">"parser-inserted"</a>, to let the parser know when to
   execute the script.</p>
 
-  <p>The fourth is a flag is the <dfn id="ignore-destructive-writes">"ignore-destructive-writes"</dfn> flag.
-  Initially, <code><a href="#script">script</a></code> elements must have this flag unset
-  (script blocks, when created, do not have a "ignore-destructive-writes"
-  flag). This flag is used to ensure that scripts <em>not</em>
-  inserted by the parser but inserted while a parser is active do not
-  blow away the document if they use the <code title="dom-document-write"><a href="apis-in-html-documents.html#dom-document-write">document.write()</a></code> API.
-  <code><a href="infrastructure.html#document">Document</a></code> objects can also have this flag set; it's
-  propagated to the <code><a href="infrastructure.html#document">Document</a></code> when the script runs.</p>
-
-  <p>The fifth and sixth pieces of state are <dfn id="the-script-block-s-type"><var>the script
-  block's type</var></dfn> and <dfn id="the-script-block-s-character-encoding"><var>the script block's character
-  encoding</var></dfn>. They are determined when the script is run,
-  based on the attributes on the element at that time.</p>
+  <p>The last few pieces of state are <dfn id="the-script-block-s-type"><var>the script block's
+  type</var></dfn>, <dfn id="the-script-block-s-character-encoding"><var>the script block's character
+  encoding</var></dfn>, and <dfn id="the-script-block-s-fallback-character-encoding"><var>the script block's fallback
+  character encoding</var></dfn>. They are determined when the script
+  is run, based on the attributes on the element at that time, and the
+  <code><a href="infrastructure.html#document">Document</a></code> of the <code><a href="#script">script</a></code> element.</p>
 
-  <p>When a <code><a href="#script">script</a></code> element that is neither marked as
-  having <a href="#already-started">"already started"</a> nor marked as being
+  <p>When a <code><a href="#script">script</a></code> element that is not marked as being
   <a href="#parser-inserted">"parser-inserted"</a> experiences one of the events listed
   in the following list, the user agent must synchronously <a href="#running-a-script" title="running a script">run</a> the <code><a href="#script">script</a></code>
   element:</p>
@@ -484,7 +486,50 @@
   <code><a href="#script">script</a></code> element is to be run, the user agent must act as
   follows:</p>
 
-  <ol><li id="script-processing-prepare">
+  <ol><li>
+
+    <p>If the <code><a href="#script">script</a></code> element is marked as having
+    <a href="#already-started">"already started"</a>, then the user agent must abort
+    these steps at this point. The script is not executed.</p>
+
+   </li>
+
+   <li>
+
+    <p>If the element has its <a href="#parser-inserted">"parser-inserted"</a> flag set,
+    then set <var title="">was-parser-inserted</var> to true and unset
+    the element's <a href="#parser-inserted">"parser-inserted"</a> flag. Otherwise, set
+    <var title="">was-parser-inserted</var> to false.</p>
+
+    <p class="note">This is done so that if parser-inserted
+    <code><a href="#script">script</a></code> elements fail to run when the parser tries to
+    run them, e.g. because they are empty or specify an unsupported
+    scripting language, another script can later mutate them and cause
+    them to run again.</p>
+
+    <!-- q.v. http://hsivonen.iki.fi/test/moz/script-setting-src-on-parser-inserted-script.html -->
+
+   </li>
+
+   <li id="script-processing-empty">
+
+    <p>If the element has no <code title="attr-script-src"><a href="#attr-script-src">src</a></code>
+    attribute, and its child nodes, if any, consist only of comment
+    nodes and empty <a href="infrastructure.html#text-node" title="text node">text nodes</a>, then
+    the user agent must abort these steps at this point. The script is
+    not executed.</p>
+
+   </li>
+
+   <li>
+
+    <p>If the element is not <a href="infrastructure.html#in-a-document">in a <code>Document</code></a>,
+    then the user agent must abort these steps at this point. The
+    script is not executed.</p>
+
+   </li>
+
+   <li id="script-processing-prepare">
 
     <p>If either:</p>
 
@@ -516,15 +561,35 @@
 
    </li>
 
-   <li id="script-processing-encoding">
+   <li>
 
-    <p>If the <code><a href="#script">script</a></code> element has a <code title="attr-script-charset"><a href="#attr-script-charset">charset</a></code> attribute, then let
-    <var><a href="#the-script-block-s-character-encoding">the script block's character encoding</a></var> for this
-    <code><a href="#script">script</a></code> element be the encoding given by the <code title="attr-script-charset"><a href="#attr-script-charset">charset</a></code> attribute.</p>
+    <p>If the user agent does not <a href="#support-the-scripting-language">support the scripting
+    language</a> given by <var><a href="#the-script-block-s-type">the script block's type</a></var> for
+    this <code><a href="#script">script</a></code> element, then the user agent must abort
+    these steps at this point. The script is not executed.</p>
 
-    <p>Otherwise, let <var><a href="#the-script-block-s-character-encoding">the script block's character encoding</a></var>
-    for this <code><a href="#script">script</a></code> element be the same as <a href="dom.html#document-s-character-encoding" title="document's character encoding">the encoding of the document
-    itself</a>.</p>
+   </li>
+
+   <li id="script-processing-start">
+
+    <p>The user agent must set the element's <a href="#already-started">"already
+    started"</a> flag.</p>
+
+   </li>
+
+   <li>
+
+    <p>If <var title="">was-parser-inserted</var> is true, then flag
+    the element as <a href="#parser-inserted">"parser-inserted"</a> again.</p>
+
+   </li>
+
+   <li id="script-processing-noscript">
+
+    <p>If <a href="webappapis.html#concept-n-noscript" title="concept-n-noscript">scripting is
+    disabled</a> for the <code><a href="#script">script</a></code> element, then the user
+    agent must abort these steps at this point. The script is not
+    executed.</p>
 
    </li>
 
@@ -550,41 +615,18 @@
 
     </ol></li>
 
-   <li id="script-processing-noscript">
-
-    <p>If <a href="webappapis.html#concept-n-noscript" title="concept-n-noscript">scripting is
-    disabled</a> for the <code><a href="#script">script</a></code> element, or if the
-    user agent does not <a href="#support-the-scripting-language">support the scripting language</a>
-    given by <var><a href="#the-script-block-s-type">the script block's type</a></var> for this
-    <code><a href="#script">script</a></code> element, then the user agent must abort these
-    steps at this point. The script is not executed.</p>
-
-   </li>
-
-   <li id="script-processing-empty">
-
-    <p>If the element has no <code title="attr-script-src"><a href="#attr-script-src">src</a></code>
-    attribute, and its child nodes consist only of comment nodes and
-    empty <a href="infrastructure.html#text-node" title="text node">text nodes</a>, then the user
-    agent must abort these steps at this point. The script is not
-    executed.</p>
-
-   </li>
-
-   <li id="script-processing-start">
-
-    <p>The user agent must set the element's <a href="#already-started">"already
-    started"</a> flag.</p>
+   <li id="script-processing-encoding">
 
-   </li>
+    <p>If the <code><a href="#script">script</a></code> element has a <code title="attr-script-charset"><a href="#attr-script-charset">charset</a></code> attribute, then let
+    <var><a href="#the-script-block-s-character-encoding">the script block's character encoding</a></var> for this
+    <code><a href="#script">script</a></code> element be the encoding given by the <code title="attr-script-charset"><a href="#attr-script-charset">charset</a></code> attribute.</p>
 
-   <li>
+    <p>Otherwise, let <var><a href="#the-script-block-s-fallback-character-encoding">the script block's fallback character
+    encoding</a></var> for this <code><a href="#script">script</a></code> element be the same as
+    <a href="dom.html#document-s-character-encoding" title="document's character encoding">the encoding of the
+    document itself</a>.</p>
 
-    <p>If the element's <code><a href="infrastructure.html#document">Document</a></code> has an <a href="dom.html#active-parser">active
-    parser</a>, and the parser's <a href="parsing.html#script-nesting-level">script nesting level</a>
-    is non-zero, but this <code><a href="#script">script</a></code> element does not have
-    the <a href="#parser-inserted">"parser-inserted"</a> flag set, the user agent must
-    set the element's <a href="#ignore-destructive-writes">"ignore-destructive-writes"</a> flag.</p>
+    <p class="note">Only one of these two pieces of state is set.</p>
 
    </li>
 
@@ -611,13 +653,6 @@
     user agent must act as if it had received an empty HTTP 400
     response.</p>
 
-    <p>Once the resource's <a href="fetching-resources.html#content-type" title="Content-Type">Content Type
-    metadata</a> is available, if it ever is, apply the
-    <a href="fetching-resources.html#algorithm-for-extracting-an-encoding-from-a-content-type">algorithm for extracting an encoding from a
-    Content-Type</a> to it. If this returns an encoding, and the
-    user agent supports that encoding, then let <var><a href="#the-script-block-s-character-encoding">the script
-    block's character encoding</a></var> be that encoding.</p>
-
     <p>For performance reasons, user agents may start fetching the
     script as soon as the attribute is set, instead, in the hope that
     the element will be inserted into the document. Either way, once
@@ -644,7 +679,8 @@
 
       <p>The element must be added to the end of the <dfn id="list-of-scripts-that-will-execute-when-the-document-has-finished-parsing">list of
       scripts that will execute when the document has finished
-      parsing</dfn>.</p>
+      parsing</dfn> associated with the <code><a href="infrastructure.html#document">Document</a></code> of the
+      parser that created the element.</p>
 
       <p>The <a href="webappapis.html#concept-task" title="concept-task">task</a> that the
       <a href="webappapis.html#networking-task-source">networking task source</a> places on the <a href="webappapis.html#task-queue">task
@@ -664,8 +700,9 @@
      <dd>
 
       <p>The element is the <a href="#pending-parsing-blocking-script">pending parsing-blocking
-      script</a>. (There can only be one such script at a
-      time.)</p>
+      script</a> of the <code><a href="infrastructure.html#document">Document</a></code> of the parser that
+      created the element. (There can only be one such script per
+      <code><a href="infrastructure.html#document">Document</a></code> at a time.)</p>
 
       <p>The <a href="webappapis.html#concept-task" title="concept-task">task</a> that the
       <a href="webappapis.html#networking-task-source">networking task source</a> places on the <a href="webappapis.html#task-queue">task
@@ -679,14 +716,16 @@
 
      <dt id="script-processing-style-delayed">If the element does not
      have a <code title="attr-script-src"><a href="#attr-script-src">src</a></code> attribute, but
-     there is <a href="semantics.html#a-style-sheet-blocking-scripts">a style sheet blocking scripts</a>, and the
-     element has been flagged as <a href="#parser-inserted">"parser-inserted"</a></dt>
+     there is <a href="semantics.html#a-style-sheet-that-is-blocking-scripts">a style sheet that is blocking scripts</a>, and
+     the element has been flagged as
+     <a href="#parser-inserted">"parser-inserted"</a></dt>
 
      <dd>
 
       <p>The element is the <a href="#pending-parsing-blocking-script">pending parsing-blocking
-      script</a>. (There can only be one such script at a
-      time.)</p>
+      script</a> of the <code><a href="infrastructure.html#document">Document</a></code> of the parser that
+      created the element. (There can only be one such script per
+      <code><a href="infrastructure.html#document">Document</a></code> at a time.)</p>
 
       <p>Set the element's <a href="#ready-to-be-parser-executed">"ready to be parser-executed"</a>
       flag. The parser will handle executing the script.</p>
@@ -699,7 +738,9 @@
      <dd>
 
       <p>The element must be added to the <dfn id="set-of-scripts-that-will-execute-as-soon-as-possible">set of scripts that
-      will execute as soon as possible</dfn>.</p>
+      will execute as soon as possible</dfn> of the
+      <code><a href="infrastructure.html#document">Document</a></code> of the <code><a href="#script">script</a></code> element at the
+      time the <a href="#running-a-script">running a script</a> algorithm started.</p>
 
       <p>The <a href="webappapis.html#concept-task" title="concept-task">task</a> that the
       <a href="webappapis.html#networking-task-source">networking task source</a> places on the <a href="webappapis.html#task-queue">task
@@ -723,8 +764,29 @@
   the resource has been <a href="fetching-resources.html#fetch" title="fetch">fetched</a> (defined
   above) has been run.</p>
 
-  <p>The <dfn id="pending-parsing-blocking-script">pending parsing-blocking script</dfn> is used by the
-  parser.</p>
+  <p>The <dfn id="pending-parsing-blocking-script">pending parsing-blocking script</dfn> of a
+  <code><a href="infrastructure.html#document">Document</a></code> is used by the <code><a href="infrastructure.html#document">Document</a></code>'s
+  parser(s).</p>
+
+  <p class="note">If a <code><a href="#script">script</a></code> element that blocks a
+  parser gets moved to another <code><a href="infrastructure.html#document">Document</a></code> before it would
+  normally have stopped blocking that parser, it nonetheless continues
+  blocking that parser until the condition that causes it to be
+  blocking the parser no longer applies (e.g. if the script is a
+  <a href="#pending-parsing-blocking-script">pending parsing-blocking script</a> because there was
+  <a href="semantics.html#a-style-sheet-that-is-blocking-scripts">a style sheet that is blocking scripts</a> when it was
+  parsed, but then the script is moved to another
+  <code><a href="infrastructure.html#document">Document</a></code> before the style sheet loads, the script still
+  blocks the parser until the style sheets are all loaded, at which
+  time the script executes and the parser is unblocked).</p>
+
+  <!-- also (and this would be worth testing): the way the spec is
+  written, if you do not have a style sheet that is blocking scripts,
+  then you parse a <script src>, then while waiting for the script to
+  load you insert an external style sheet, the script will delay until
+  the sheet is loaded, because there's just a binary "are style sheets
+  blocking scripts" state, things aren't defined in terms of which
+  style sheets are blocking which scripts -->
 
   <p><dfn id="executing-a-script-block" title="executing a script block">Executing a script
   block</dfn>: When the steps above require that the script block be
@@ -741,6 +803,12 @@
    <!-- SCRIPT EXEC -->
    <dd>
 
+    <p>Executing the script block must consists of running the
+    following steps. For the purposes of these steps, the script is
+    considered to be from an <i>external file</i> if, while the
+    <a href="#running-a-script">running a script</a> algorithm above was running for this
+    script, the <code><a href="#script">script</a></code> element had a <code title="attr-script-src"><a href="#attr-script-src">src</a></code> attribute specified.</p>
+
     <ol><li>
 
       <p>Initialize <dfn id="the-script-block-s-source"><var>the script block's source</var></dfn> as
@@ -753,43 +821,63 @@
         <p>The contents of that file, interpreted as string of
         Unicode characters, are the script source.</p>
 
-        <p>For each of the rows in the following table, starting with
-        the first one and going down, if the file has as many or more
-        bytes available than the number of bytes in the first column,
-        and the first bytes of the file match the bytes given in the
-        first column, then set <var><a href="#the-script-block-s-character-encoding">the script block's character
-        encoding</a></var> to the encoding given in the cell in the second
-        column of that row, irrespective of any previous value:</p>
+        <p>To obtain the string of Unicode characters, the user agent
+        run the following steps:</p>
 
-        <!-- this table is present in several forms in this file; keep them in sync -->
-        <table id="table-script-bom"><thead><tr><th>Bytes in Hexadecimal
-           </th><th>Encoding
-         </th></tr></thead><tbody><!-- nobody uses this
-          <tr>
-           <td>00 00 FE FF
-           <td>UTF-32BE
-          <tr>
-           <td>FF FE 00 00
-           <td>UTF-32LE
---><tr><td>FE FF
-           </td><td>Big-endian UTF-16
-          </td></tr><tr><td>FF FE
-           </td><td>Little-endian UTF-16
-          </td></tr><tr><td>EF BB BF
-           </td><td>UTF-8
-<!-- nobody uses this
-          <tr>
-           <td>DD 73 66 73
-           <td>UTF-EBCDIC
--->
-        </td></tr></tbody></table><p class="note">This step looks for Unicode Byte Order Marks
-        (BOMs).</p>
+        <ol><li><p>If the resource's <a href="fetching-resources.html#content-type" title="Content-Type">Content
+         Type metadata</a>, if any, specifies a character encoding,
+         and the user agent supports that encoding, then let <var title="">character encoding</var> be that encoding, and jump
+         to the bottom step in this series of steps.</p></li>
 
-        <p>The file must then be converted to Unicode using the
-        character encoding given by <var><a href="#the-script-block-s-character-encoding">the script block's character
-        encoding</a></var>.</p>
+         <li><p>If the algorithm above set <var><a href="#the-script-block-s-character-encoding">the script block's
+         character encoding</a></var>, then let <var title="">character
+         encoding</var> be that encoding, and jump to the bottom step
+         in this series of steps.</p></li>
 
-       </dd>
+         <li><p>For each of the rows in the following table, starting
+         with the first one and going down, if the file has as many or
+         more bytes available than the number of bytes in the first
+         column, and the first bytes of the file match the bytes given
+         in the first column, then set <var title="">character
+         encoding</var> to the encoding given in the cell in the
+         second column of that row, and jump to the bottom step in
+         this series of steps:</p>
+
+          <!-- this table is present in several forms in this file; keep them in sync -->
+          <table id="table-script-bom"><thead><tr><th>Bytes in Hexadecimal
+             </th><th>Encoding
+           </th></tr></thead><tbody><!-- nobody uses this
+            <tr>
+             <td>00 00 FE FF
+             <td>UTF-32BE
+            <tr>
+             <td>FF FE 00 00
+             <td>UTF-32LE
+  --><tr><td>FE FF
+             </td><td>Big-endian UTF-16
+            </td></tr><tr><td>FF FE
+             </td><td>Little-endian UTF-16
+            </td></tr><tr><td>EF BB BF
+             </td><td>UTF-8
+  <!-- nobody uses this
+            <tr>
+             <td>DD 73 66 73
+             <td>UTF-EBCDIC
+  -->
+          </td></tr></tbody></table><p class="note">This step looks for Unicode Byte Order Marks
+          (BOMs).</p>
+
+         </li>
+
+         <li><p>Let <var title="">character encoding</var> be <var><a href="#the-script-block-s-fallback-character-encoding">the
+         script block's fallback character encoding</a></var>.</p></li>
+
+         <li><p>Convert the file to Unicode using <var>character
+         encoding</var>, following the rules for doing so given by the
+         specification for <var><a href="#the-script-block-s-type">the script block's
+         type</a></var>.</p></li>
+
+        </ol></dd>
 
        <dt>If the script is from an external file and <var><a href="#the-script-block-s-type">the script block's type</a></var> is an XML-based language</dt>
 
@@ -826,19 +914,11 @@
 
      <li>
 
-      <p>If the <code><a href="#script">script</a></code> element's
-      <a href="#ignore-destructive-writes">"ignore-destructive-writes"</a> flag is set, then flag the
-      <code><a href="infrastructure.html#document">Document</a></code> the <code><a href="#script">script</a></code> element was in
-      when the <a href="#ignore-destructive-writes">"ignore-destructive-writes"</a> flag was set as being
-      itself <a href="#ignore-destructive-writes">"ignore-destructive-writes"</a>. Let <var title="">neutralized doc</var> be that
+      <p>If the script is from an external file, then increment the
+      <a href="apis-in-html-documents.html#ignore-destructive-writes-counter">ignore-destructive-writes counter</a> of the
+      <code><a href="#script">script</a></code> element's <code><a href="infrastructure.html#document">Document</a></code>. Let <var title="">neutralized doc</var> be that
       <code><a href="infrastructure.html#document">Document</a></code>.</p>
 
-      <!-- theorem: this can only happen when the parser nesting
-      levels of all parsers on this thread are zero, so any scripts
-      inserted while this is true will not themselves have the flag
-      said, so we don't have to worry about this being a counter
-      instead of just a boolean. -->
-
      </li>
 
      <li>
@@ -855,8 +935,9 @@
 
      <li>
 
-      <p>Remove the <a href="#ignore-destructive-writes">"ignore-destructive-writes"</a> flag from <var title="">neutralized doc</var>, if it was set in the earlier
-      step.</p>
+      <p>Decrement the <a href="apis-in-html-documents.html#ignore-destructive-writes-counter">ignore-destructive-writes counter</a>
+      of <var title="">neutralized doc</var>, if it was incremented in
+      the earlier step.</p>
 
      </li>
 
@@ -961,7 +1042,7 @@
  &lt;/script&gt;
 &lt;/form&gt;</pre>
 
-  </div><h5 id="scriptingLanguages"><span class="secno">4.3.1.1 </span>Scripting languages</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><div class="impl">
+  </div><h5 id="scriptingLanguages"><span class="secno">4.3.1.1 </span>Scripting languages</h5><div class="impl">
 
   <p>A user agent is said to <dfn id="support-the-scripting-language">support the scripting language</dfn>
   if <var><a href="#the-script-block-s-type">the script block's type</a></var> is an <a href="infrastructure.html#ascii-case-insensitive">ASCII
@@ -1002,7 +1083,7 @@
   parameter for the purpose of comparing <a href="infrastructure.html#mime-type" title="MIME type">MIME
   types</a> here.</p>
 
-  </div><h5 id="restrictions-for-contents-of-script-elements"><span class="secno">4.3.1.2 </span><dfn title="script content restrictions">Restrictions for contents of <code>script</code> elements</dfn></h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href="infrastructure.html#textcontent">textContent</a></code> of a <code><a href="#script">script</a></code> element must match the
+  </div><h5 id="restrictions-for-contents-of-script-elements"><span class="secno">4.3.1.2 </span><dfn title="script content restrictions">Restrictions for contents of <code>script</code> elements</dfn></h5><p>The <code><a href="infrastructure.html#textcontent">textContent</a></code> of a <code><a href="#script">script</a></code> element must match the
   <code title="">script</code> production in the following ABNF, the
   character set for which is Unicode. <a href="references.html#refsABNF">[ABNF]</a></p><pre>script        = data1 *( escape [ script-start data3 ] "--&gt;" data1 ) [ escape ]
 escape        = "&lt;!--" data2 *( script-start data3 script-end data2 )
@@ -1042,7 +1123,7 @@
 tag-end       =/ %x002F ; U+002F SOLIDUS (/)
 tag-end       =/ %x003E ; U+003E GREATER-THAN SIGN (&gt;)</pre><p>When a <code><a href="#script">script</a></code> element contains <a href="#inline-documentation-for-external-scripts">script
   documentation</a>, there are further restrictions on the contents
-  of the element, as described in the section below.</p><h5 id="inline-documentation-for-external-scripts"><span class="secno">4.3.1.3 </span><dfn title="script documentation">Inline documentation for external scripts</dfn></h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>If a <code><a href="#script">script</a></code> element's <code title="attr-script-src"><a href="#attr-script-src">src</a></code> attribute is specified, then the
+  of the element, as described in the section below.</p><h5 id="inline-documentation-for-external-scripts"><span class="secno">4.3.1.3 </span><dfn title="script documentation">Inline documentation for external scripts</dfn></h5><p>If a <code><a href="#script">script</a></code> element's <code title="attr-script-src"><a href="#attr-script-src">src</a></code> attribute is specified, then the
   contents of the <code><a href="#script">script</a></code> element, if any, must be such
   that the value of the <code title="dom-script-text"><a href="#dom-script-text">text</a></code> IDL
   attribute, which is derived from the element's contents, matches the
@@ -1081,11 +1162,11 @@
  //    e.stop();
 &lt;/script&gt;</pre>
 
-  </div><h4 id="the-noscript-element"><span class="secno">4.3.2 </span>The <dfn><code>noscript</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/117">ISSUE-117</a> (deprecate-noscript) blocks progress to Last Call</span></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-noscript-element"><span class="secno">4.3.2 </span>The <dfn><code>noscript</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#metadata-content">Metadata content</a>.</dd>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>In a <code><a href="semantics.html#the-head-element-0">head</a></code> element of an <a href="dom.html#html-documents" title="HTML documents">HTML document</a>, if there are no ancestor <code><a href="#the-noscript-element">noscript</a></code> elements.</dd>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected in <a href="dom.html#html-documents">HTML documents</a>, if there are no ancestor <code><a href="#the-noscript-element">noscript</a></code> elements.</dd>
    <dt>Content model:</dt>

Index: the-map-element.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/the-map-element.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- the-map-element.html	28 Aug 2010 23:52:55 -0000	1.1
+++ the-map-element.html	19 Oct 2010 17:38:08 -0000	1.2
@@ -1,7 +1,7 @@
 <?xml version="1.0" standalone="yes"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "">
 <!-- when publishing, change bits marked ZZZ -->
-<html lang="en-US-x-Hixie" class="split chapter"><head><title>4.8.11 The map element &#x2014; HTML5 </title><style type="text/css"><![CDATA[
+<html lang="en-US-x-Hixie" class="split chapter"><head><title>4.8.12 The map element &#x2014; HTML5 </title><style type="text/css"><![CDATA[
    pre { margin-left: 2em; white-space: pre-wrap; }
    h2 { margin: 3em 0 1em 0; }
    h3 { margin: 2.5em 0 1em 0; }
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -309,20 +319,21 @@
        document.getElementsByTagName('h2')[0].textContent += '; load: ' + (new Date() - loadTimer) + 'ms';
      fixBrokenLink();
    }
-  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="the-canvas-element.html" title="4.8.10 The canvas element" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="tabular-data.html" title="4.9 Tabular data" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
+  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="the-canvas-element.html" title="4.8.11 The canvas element" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="tabular-data.html" title="4.9 Tabular data" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
    <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"/></a></p>
 
    <h1>HTML5</h1>
    </div><div>
-   <a href="the-canvas-element.html">&#x2190; 4.8.10 The canvas element</a> &#x2013;
+   <a href="the-canvas-element.html">&#x2190; 4.8.11 The canvas element</a> &#x2013;
    <a href="spec.html#contents">Table of contents</a> &#x2013;
    <a href="tabular-data.html">4.9 Tabular data &#x2192;</a>
-  <ol class="toc"><li><ol><li><ol><li><a href="the-map-element.html#the-map-element"><span class="secno">4.8.11 </span>The <code>map</code> element</a></li><li><a href="the-map-element.html#the-area-element"><span class="secno">4.8.12 </span>The <code>area</code> element</a></li><li><a href="the-map-element.html#image-maps"><span class="secno">4.8.13 </span>Image maps</a>
-      <ol><li><a href="the-map-element.html#authoring"><span class="secno">4.8.13.1 </span>Authoring</a></li><li><a href="the-map-element.html#processing-model"><span class="secno">4.8.13.2 </span>Processing model</a></li></ol></li><li><a href="the-map-element.html#mathml"><span class="secno">4.8.14 </span>MathML</a></li><li><a href="the-map-element.html#svg-0"><span class="secno">4.8.15 </span>SVG</a></li><li><a href="the-map-element.html#dimension-attributes"><span class="secno">4.8.16 </span>Dimension attributes</a></li></ol></li></ol></li></ol></div><h4 id="the-map-element"><span class="secno">4.8.11 </span>The <dfn><code>map</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  <ol class="toc"><li><ol><li><ol><li><a href="the-map-element.html#the-map-element"><span class="secno">4.8.12 </span>The <code>map</code> element</a></li><li><a href="the-map-element.html#the-area-element"><span class="secno">4.8.13 </span>The <code>area</code> element</a></li><li><a href="the-map-element.html#image-maps"><span class="secno">4.8.14 </span>Image maps</a>
+      <ol><li><a href="the-map-element.html#authoring"><span class="secno">4.8.14.1 </span>Authoring</a></li><li><a href="the-map-element.html#processing-model"><span class="secno">4.8.14.2 </span>Processing model</a></li></ol></li><li><a href="the-map-element.html#mathml"><span class="secno">4.8.15 </span>MathML</a></li><li><a href="the-map-element.html#svg-0"><span class="secno">4.8.16 </span>SVG</a></li><li><a href="the-map-element.html#dimension-attributes"><span class="secno">4.8.17 </span>Dimension attributes</a></li></ol></li></ol></li></ol></div><h4 id="the-map-element"><span class="secno">4.8.12 </span>The <dfn><code>map</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd>When the element only contains <a href="content-models.html#phrasing-content">phrasing content</a>: <a href="content-models.html#phrasing-content">phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
-   <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
+   <dt>Contexts in which this element can be used:</dt>
+   <dd>When the element only contains <a href="content-models.html#phrasing-content">phrasing content</a>: where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
+   <dd>Otherwise: where <a href="content-models.html#flow-content">flow content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#transparent">Transparent</a>.</dd>
    <dt>Content attributes:</dt>
@@ -379,10 +390,40 @@
   <p>The IDL attribute <dfn id="dom-map-name" title="dom-map-name"><code>name</code></dfn> must
   <a href="common-dom-interfaces.html#reflect">reflect</a> the content attribute of the same name.</p>
 
-  </div><h4 id="the-area-element"><span class="secno">4.8.12 </span>The <dfn><code>area</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><div class="example">
+
+   <p>Image maps can be defined in conjunction with other content on
+   the page, to ease maintenance. This example is of a page with an
+   image map at the top of the page and a corresponding set of text
+   links at the bottom.</p>
+
+   <pre>&lt;!DOCTYPE HTML&gt;
+&lt;TITLE&gt;Babies&#x2122;: Toys&lt;/TITLE&gt;
+&lt;HEADER&gt;
+ &lt;H1&gt;Toys&lt;/H1&gt;
+ &lt;IMG SRC="/images/menu.gif"
+      ALT="Babies&#x2122; navigation menu. Select a department to go to its page."
+      USEMAP="#NAV"&gt;
+&lt;/HEADER&gt;
+ ...
+&lt;FOOTER&gt;
+ &lt;MAP NAME="NAV"&gt;
+  &lt;P&gt;
+   &lt;A HREF="/clothes/"&gt;Clothes&lt;/A&gt;
+   &lt;AREA ALT="Clothes" COORDS="0,0,100,50" HREF="/clothes/"&gt; |
+   &lt;A HREF="/toys/"&gt;Toys&lt;/A&gt;
+   &lt;AREA ALT="Toys" COORDS="0,0,100,50" HREF="/toys/"&gt; |
+   &lt;A HREF="/food/"&gt;Food&lt;/A&gt;
+   &lt;AREA ALT="Food" COORDS="0,0,100,50" HREF="/food/"&gt; |
+   &lt;A HREF="/books/"&gt;Books&lt;/A&gt;
+   &lt;AREA ALT="Books" COORDS="0,0,100,50" HREF="/books/"&gt;
+ &lt;/MAP&gt;
+&lt;/FOOTER&gt;</pre>
+
+  </div><h4 id="the-area-element"><span class="secno">4.8.13 </span>The <dfn><code>area</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected, but only if there is a <code><a href="#the-map-element">map</a></code> element ancestor.</dd>
    <dt>Content model:</dt>
    <dd>Empty.</dd>
@@ -517,14 +558,18 @@
   <p>The <a href="content-models.html#activation-behavior">activation behavior</a> of <code><a href="#the-area-element">area</a></code>
   elements is to run the following steps:</p>
 
-  <ol><li><p>If the <code title="event-DOMActivate"><a href="infrastructure.html#event-domactivate">DOMActivate</a></code>
-   event in question is not <a href="infrastructure.html#concept-events-trusted" title="concept-events-trusted">trusted</a> (i.e. a <code title="dom-click"><a href="editing.html#dom-click">click()</a></code> method call was the reason for the
-   event being dispatched), and the <code><a href="#the-area-element">area</a></code> element's <code title="attr-hyperlink-target"><a href="links.html#attr-hyperlink-target">target</a></code> attribute is such that
-   applying <a href="browsers.html#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name">the rules for choosing a browsing context given a
-   browsing context name</a>, using the value of the <code title="attr-hyperlink-target"><a href="links.html#attr-hyperlink-target">target</a></code> attribute as the
-   browsing context name, would result in there not being a chosen
-   browsing context, then raise an <code><a href="common-dom-interfaces.html#invalid_access_err">INVALID_ACCESS_ERR</a></code>
-   exception and abort these steps.</p></li>
+  <ol><li><p>If the <code title="event-click"><a href="infrastructure.html#event-click">click</a></code> event in
+   question is not <a href="infrastructure.html#concept-events-trusted" title="concept-events-trusted">trusted</a>
+   (i.e. a <code title="dom-click"><a href="editing.html#dom-click">click()</a></code> method call was the
+   reason for the event being dispatched), and the <code><a href="#the-area-element">area</a></code>
+   element's <code title="attr-hyperlink-target"><a href="links.html#attr-hyperlink-target">target</a></code>
+   attribute is such that applying <a href="browsers.html#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name">the rules for choosing a
+   browsing context given a browsing context name</a>, using the
+   value of the <code title="attr-hyperlink-target"><a href="links.html#attr-hyperlink-target">target</a></code>
+   attribute as the browsing context name, would result in there not
+   being a chosen browsing context, then raise an
+   <code><a href="common-dom-interfaces.html#invalid_access_err">INVALID_ACCESS_ERR</a></code> exception and abort these
+   steps.</p></li>
 
    <li>Otherwise, the user agent must <a href="links.html#following-hyperlinks" title="following&#10;   hyperlinks">follow the hyperlink</a> created by the
    <code><a href="#the-area-element">area</a></code> element, if any.</li>
@@ -536,7 +581,7 @@
 
   <p>The IDL attribute <dfn id="dom-area-shape" title="dom-area-shape"><code>shape</code></dfn> must
   <a href="common-dom-interfaces.html#reflect">reflect</a> the <code title="attr-area-shape"><a href="#attr-area-shape">shape</a></code>
-  content attribute, <a href="common-dom-interfaces.html#limited-to-only-known-values">limited to only known values</a>.</p>
+  content attribute.</p>
 
   <p>The IDL attribute <dfn id="dom-area-rellist" title="dom-area-rellist"><code>relList</code></dfn> must
   <a href="common-dom-interfaces.html#reflect">reflect</a> the <code title="attr-hyperlink-rel"><a href="links.html#attr-hyperlink-rel">rel</a></code>
@@ -552,14 +597,14 @@
   same as setting the element's <code title="attr-hyperlink-href"><a href="links.html#attr-hyperlink-href">href</a></code> attribute to the new output
   value.</p>
 
-  </div><h4 id="image-maps"><span class="secno">4.8.13 </span>Image maps</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><!-- TESTS
+  </div><h4 id="image-maps"><span class="secno">4.8.14 </span>Image maps</h4><!-- TESTS
   http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%0A%3Cimg%20src%3D%22http%3A//hixie.ch/resources/images/smallcats%22%20usemap%3D%23a%20onclick%3Dw%28%27img%27%29%3E%0A%3Cmap%20name%3Da%3E%0A%20%3Carea%20onclick%3Dw%28%271%27%29%20coords%3D%270%25%200%25%20100%25%20100%25%27%20href%3Djavascript%3A%3E%0A%3C/map%3E
   http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%0A%3Cbody%20onfocus%3D%22w%28document.activeElement.tagName%29%22%3E%0A%3Cimg%20src%3D%22http%3A//hixie.ch/resources/images/smallcats%22%20usemap%3D%23a%20onclick%3Dw%28%27img%27%29%20onfocus%3D%22w%28document.activeElement.tagName%29%22%3E%0A%3Cimg%20src%3D%22http%3A//hixie.ch/resources/images/sample%22%20usemap%3D%23a%20onclick%3Dw%28%27img%27%29%20onfocus%3D%22w%28document.activeElement.tagName%29%22%3E%0A%3Cmap%20name%3Da%20onfocus%3D%22w%28document.activeElement.tagName%29%22%3E%0A%20%3Carea%20onclick%3Dw%28%271%27%29%20coords%3D%270%200%2050%2050%27%20href%3Djavascript%3A%20onfocus%3D%22w%28document.activeElement.tagName%29%22%3E%0A%3C/map%3E%0A%3Cscript%3E%0A%20var%20x%20%3D%20document.getElementsByTagName%28%27img%27%29%5B0%5D%3B%0A%20x.parentNode.appendChild%28x%29%3B%0A%20document.getElementsByTagName%28%27area%27%29%5B0%5D.focus%28%29%3B%0A%3C/script%3E
   http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3Ex%3Cmap%3E%3Carea%20shape%3Dpolyg%20coords%3D%221%2C2%203%22%3E%3C/map%3E%0A%3Cscript%3Ex%20%3D%20document.getElementsByTagName%28%27area%27%29%5B0%5D%3B%20w%28x.shape%20+%20%27%20%27%20+%20x.coords%29%3C/script%3E
   http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%0D%0A%3Cp%3E%3Cimg%20src%3D%22http%3A//hixie.ch/resources/images/astrophy/128%22%20usemap%3D%23a%3E%0D%0A%3Cmap%20name%3Da%3E%3Carea%20shape%3Dcirc%20coords%3D%2220%2C20%2C10%25%22%20href%3D%23%3E%3Carea%20shape%3Dcirc%20coords%3D%2220%2C20%2C10%22%20href%3D%23%3E%3C/map%3E%0D%0A%3Cscript%3Edocument.write%28document.getElementsByTagName%28%27area%27%29%5B0%5D.coords%29%3C/script%3E
   --><div class="impl">
 
-  <h5 id="authoring"><span class="secno">4.8.13.1 </span>Authoring</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="authoring"><span class="secno">4.8.14.1 </span>Authoring</h5>
 
   </div><p>An <dfn id="image-map">image map</dfn> allows geometric areas on an image to be
   associated with <a href="links.html#hyperlink" title="hyperlink">hyperlinks</a>.</p><p>An image, in the form of an <code><a href="embedded-content-1.html#the-img-element">img</a></code> element or an
@@ -572,7 +617,7 @@
 
    <p>Consider an image that looks as follows:</p>
 
-   <p><img alt="A line with four shapes in it, equally spaced: a red hollow box, a green circle, a blue triangle, and a yellow four-pointed star." src="http://dev.w3.org/html5/spec/images/sample-usemap.png"/></p>
+   <p><img alt="A line with four shapes in it, equally spaced: a red hollow box, a green circle, a blue triangle, and a yellow four-pointed star." height="150" src="http://dev.w3.org/html5/spec/images/sample-usemap.png" width="600"/></p>
 
    <p>If we wanted just the colored areas to be clickable, we could
    do it as follows:</p>
@@ -593,7 +638,7 @@
 
   </div><div class="impl">
 
-  <h5 id="processing-model"><span class="secno">4.8.13.2 </span>Processing model</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="processing-model"><span class="secno">4.8.14.2 </span>Processing model</h5>
 
   <p>If an <code><a href="embedded-content-1.html#the-img-element">img</a></code> element or an <code><a href="the-iframe-element.html#the-object-element">object</a></code> element
   representing an image has a <code title="attr-hyperlink-usemap"><a href="#attr-hyperlink-usemap">usemap</a></code> attribute specified,
@@ -789,7 +834,7 @@
   user agent must act as if it had rerun the algorithms for image
   maps.</p>
 
-  </div><h4 id="mathml"><span class="secno">4.8.14 </span>MathML</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="math"><code>math</code></dfn> element from the <a href="namespaces.html#mathml-namespace">MathML
+  </div><h4 id="mathml"><span class="secno">4.8.15 </span>MathML</h4><p>The <dfn id="math"><code>math</code></dfn> element from the <a href="namespaces.html#mathml-namespace">MathML
   namespace</a> falls into the <a href="content-models.html#embedded-content">embedded content</a>,
   <a href="content-models.html#phrasing-content">phrasing content</a>, and <a href="content-models.html#flow-content">flow content</a>
   categories for the purposes of the content models in this
@@ -851,7 +896,7 @@
  &lt;/body&gt;
 &lt;/html&gt;</pre>
 
-  </div><h4 id="svg-0"><span class="secno">4.8.15 </span>SVG</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="svg"><code>svg</code></dfn> element from the <a href="namespaces.html#svg-namespace">SVG
+  </div><h4 id="svg-0"><span class="secno">4.8.16 </span>SVG</h4><p>The <dfn id="svg"><code>svg</code></dfn> element from the <a href="namespaces.html#svg-namespace">SVG
   namespace</a> falls into the <a href="content-models.html#embedded-content">embedded content</a>,
   <a href="content-models.html#phrasing-content">phrasing content</a>, and <a href="content-models.html#flow-content">flow content</a>
   categories for the purposes of the content models in this
@@ -862,19 +907,20 @@
   way to export any SVG fragment as an XML namespace-well-formed XML
   fragment.</p>
 
-  </div><p>When the SVG <code>foreignObject</code> element contains elements
-  from the <a href="namespaces.html#html-namespace-0">HTML namespace</a>, such elements must all be
-  <a href="content-models.html#flow-content">flow content</a>. <a href="references.html#refsSVG">[SVG]</a></p><p>The content model for <code title="">title</code> elements in the
+  </div><p>When the SVG <code title="">foreignObject</code> element contains
+  elements from the <a href="namespaces.html#html-namespace-0">HTML namespace</a>, such elements must
+  all be <a href="content-models.html#flow-content">flow content</a>. <a href="references.html#refsSVG">[SVG]</a></p><p>The content model for <code title="">title</code> elements in the
   <a href="namespaces.html#svg-namespace">SVG namespace</a> inside <a href="dom.html#html-documents">HTML documents</a> is
   <a href="content-models.html#phrasing-content">phrasing content</a>. (This further constrains the
   requirements given in the SVG specification.)</p><p>The semantics of SVG elements are defined by the SVG
   specification and <a href="infrastructure.html#other-applicable-specifications">other applicable specifications</a>. <a href="references.html#refsSVG">[SVG]</a></p><!-- The following paragraph is for bug 7510 --><p>The SVG specification includes requirements regarding the
   handling of elements in the DOM that are not in the SVG namespace,
   that are in SVG fragments, and that are not included in a
-  <code>foreignObject</code> element. <em>This</em> specification does
-  not define any processing for elements in SVG fragments that are not
-  in the HTML namespace; they are considered neither conforming nor
-  non-conforming from the perspective of this specification.</p><h4 id="dimension-attributes"><span class="secno">4.8.16 </span><dfn>Dimension attributes</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p><span class="impl"><strong>Author requirements</strong>:</span>
+  <code title="">foreignObject</code> element. <em>This</em>
+  specification does not define any processing for elements in SVG
+  fragments that are not in the HTML namespace; they are considered
+  neither conforming nor non-conforming from the perspective of this
+  specification.</p><h4 id="dimension-attributes"><span class="secno">4.8.17 </span><dfn>Dimension attributes</dfn></h4><p><span class="impl"><strong>Author requirements</strong>:</span>
   The <dfn id="attr-dim-width" title="attr-dim-width"><code>width</code></dfn> and <dfn id="attr-dim-height" title="attr-dim-height"><code>height</code></dfn> attributes on
   <code><a href="embedded-content-1.html#the-img-element">img</a></code>, <code><a href="the-iframe-element.html#the-iframe-element">iframe</a></code>, <code><a href="the-iframe-element.html#the-embed-element">embed</a></code>,
   <code><a href="the-iframe-element.html#the-object-element">object</a></code>, <code><a href="video.html#video">video</a></code>, and, when their <code title="attr-input-type"><a href="the-input-element.html#attr-input-type">type</a></code> attribute is in the <a href="number-state.html#image-button-state" title="attr-input-type-image">Image Button</a> state,
@@ -915,4 +961,9 @@
   and <code><a href="video.html#video">video</a></code> elements must <a href="common-dom-interfaces.html#reflect">reflect</a> the
   respective content attributes of the same name.</p>
 
+  <p class="note">For <code><a href="the-iframe-element.html#the-iframe-element">iframe</a></code>, <code><a href="the-iframe-element.html#the-embed-element">embed</a></code>, and
+  <code><a href="the-iframe-element.html#the-object-element">object</a></code> the IDL attributes are <code>DOMString</code>;
+  for <code><a href="video.html#video">video</a></code> the IDL attributes are <code>unsigned
+  long</code>.</p>
+
   </div></body></html>

Index: the-canvas-element.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/the-canvas-element.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- the-canvas-element.html	28 Aug 2010 23:52:55 -0000	1.1
+++ the-canvas-element.html	19 Oct 2010 17:38:08 -0000	1.2
@@ -1,7 +1,7 @@
 <?xml version="1.0" standalone="yes"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "">
 <!-- when publishing, change bits marked ZZZ -->
-<html lang="en-US-x-Hixie" class="split chapter"><head><title>4.8.10 The canvas element &#x2014; HTML5 </title><style type="text/css"><![CDATA[
+<html lang="en-US-x-Hixie" class="split chapter"><head><title>4.8.11 The canvas element &#x2014; HTML5 </title><style type="text/css"><![CDATA[
    pre { margin-left: 2em; white-space: pre-wrap; }
    h2 { margin: 3em 0 1em 0; }
    h3 { margin: 2.5em 0 1em 0; }
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -309,20 +319,20 @@
        document.getElementsByTagName('h2')[0].textContent += '; load: ' + (new Date() - loadTimer) + 'ms';
      fixBrokenLink();
    }
-  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="video.html" title="4.8.6 The video element" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="the-map-element.html" title="4.8.11 The map element" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
+  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="video.html" title="4.8.6 The video element" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="the-map-element.html" title="4.8.12 The map element" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
    <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"/></a></p>
 
    <h1>HTML5</h1>
    </div><div>
    <a href="video.html">&#x2190; 4.8.6 The video element</a> &#x2013;
    <a href="spec.html#contents">Table of contents</a> &#x2013;
-   <a href="the-map-element.html">4.8.11 The map element &#x2192;</a>
-  <ol class="toc"><li><ol><li><ol><li><a href="the-canvas-element.html#the-canvas-element"><span class="secno">4.8.10 </span>The <code>canvas</code> element</a>
-      <ol><li><a href="the-canvas-element.html#color-spaces-and-color-correction"><span class="secno">4.8.10.1 </span>Color spaces and color correction</a></li><li><a href="the-canvas-element.html#security-with-canvas-elements"><span class="secno">4.8.10.2 </span>Security with <code>canvas</code> elements</a></li></ol></li></ol></li></ol></li></ol></div><h4 id="the-canvas-element"><span class="secno">4.8.10 </span>The <dfn id="canvas"><code>canvas</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Implemented and widely deployed. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/74">ISSUE-74</a> (canvas-accessibility) blocks progress to Last Call</span></p><dl class="element"><dt>Categories</dt>
+   <a href="the-map-element.html">4.8.12 The map element &#x2192;</a>
+  <ol class="toc"><li><ol><li><ol><li><a href="the-canvas-element.html#the-canvas-element"><span class="secno">4.8.11 </span>The <code>canvas</code> element</a>
+      <ol><li><a href="the-canvas-element.html#color-spaces-and-color-correction"><span class="secno">4.8.11.1 </span>Color spaces and color correction</a></li><li><a href="the-canvas-element.html#security-with-canvas-elements"><span class="secno">4.8.11.2 </span>Security with <code>canvas</code> elements</a></li></ol></li></ol></li></ol></li></ol></div><h4 id="the-canvas-element"><span class="secno">4.8.11 </span>The <dfn id="canvas"><code>canvas</code></dfn> element</h4><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/74">ISSUE-74</a> (canvas-accessibility) blocks progress to Last Call</span></p><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
    <dd><a href="content-models.html#embedded-content">Embedded content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#embedded-content">embedded content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#transparent">Transparent</a>.</dd>
@@ -410,7 +420,7 @@
   <p>The <dfn id="dom-canvas-width" title="dom-canvas-width"><code>width</code></dfn> and
   <dfn id="dom-canvas-height" title="dom-canvas-height"><code>height</code></dfn> IDL
   attributes must <a href="common-dom-interfaces.html#reflect">reflect</a> the respective content
-  attributes of the same name.</p>
+  attributes of the same name, with the same defaults.</p>
 
   </div><div class="example">
    <p>Only one square appears to be drawn in the following example:</p>
@@ -594,7 +604,7 @@
 
   </div><div class="impl">
 
-  <h5 id="color-spaces-and-color-correction"><span class="secno">4.8.10.1 </span>Color spaces and color correction</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="color-spaces-and-color-correction"><span class="secno">4.8.11.1 </span>Color spaces and color correction</h5>
 
   <p>The <code><a href="#the-canvas-element">canvas</a></code> APIs must perform color correction at
   only two points: when rendering images with their own gamma
@@ -633,7 +643,7 @@
 
   </div><div class="impl">
 
-  <h5 id="security-with-canvas-elements"><span class="secno">4.8.10.2 </span>Security with <code><a href="#the-canvas-element">canvas</a></code> elements</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="security-with-canvas-elements"><span class="secno">4.8.11.2 </span>Security with <code><a href="#the-canvas-element">canvas</a></code> elements</h5>
 
   <p><strong>Information leakage</strong> can occur if scripts from
   one <a href="origin-0.html#origin">origin</a> can access information (e.g. read pixels)

Index: tabular-data.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/tabular-data.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- tabular-data.html	28 Aug 2010 23:52:55 -0000	1.1
+++ tabular-data.html	19 Oct 2010 17:38:08 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -309,19 +319,19 @@
        document.getElementsByTagName('h2')[0].textContent += '; load: ' + (new Date() - loadTimer) + 'ms';
      fixBrokenLink();
    }
-  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="the-map-element.html" title="4.8.11 The map element" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="forms.html" title="4.10 Forms" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
+  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="the-map-element.html" title="4.8.12 The map element" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="forms.html" title="4.10 Forms" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
    <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"/></a></p>
 
    <h1>HTML5</h1>
    </div><div>
-   <a href="the-map-element.html">&#x2190; 4.8.11 The map element</a> &#x2013;
+   <a href="the-map-element.html">&#x2190; 4.8.12 The map element</a> &#x2013;
    <a href="spec.html#contents">Table of contents</a> &#x2013;
    <a href="forms.html">4.10 Forms &#x2192;</a>
   <ol class="toc"><li><ol><li><a href="tabular-data.html#tabular-data"><span class="secno">4.9 </span>Tabular data</a>
     <ol><li><a href="tabular-data.html#the-table-element"><span class="secno">4.9.1 </span>The <code>table</code> element</a></li><li><a href="tabular-data.html#the-caption-element"><span class="secno">4.9.2 </span>The <code>caption</code> element</a></li><li><a href="tabular-data.html#the-colgroup-element"><span class="secno">4.9.3 </span>The <code>colgroup</code> element</a></li><li><a href="tabular-data.html#the-col-element"><span class="secno">4.9.4 </span>The <code>col</code> element</a></li><li><a href="tabular-data.html#the-tbody-element"><span class="secno">4.9.5 </span>The <code>tbody</code> element</a></li><li><a href="tabular-data.html#the-thead-element"><span class="secno">4.9.6 </span>The <code>thead</code> element</a></li><li><a href="tabular-data.html#the-tfoot-element"><span class="secno">4.9.7 </span>The <code>tfoot</code> element</a></li><li><a href="tabular-data.html#the-tr-element"><span class="secno">4.9.8 </span>The <code>tr</code> element</a></li><li><a href="tabular-data.html#the-td-element"><span class="secno">4.9.9 </span>The <code>td</code> element</a></li><li><a href="tabular-data.html#the-th-element"><span class="secno">4.9.10 </span>The <code>th</code> element</a></li><li><a href="tabular-data.html#attributes-common-to-td-and-th-elements"><span class="secno">4.9.11 </span>Attributes common to <code>td</code> and <code>th</code> elements</a></li><li><a href="tabular-data.html#processing-model-0"><span class="secno">4.9.12 </span>Processing model</a>
-      <ol><li><a href="tabular-data.html#forming-a-table"><span class="secno">4.9.12.1 </span>Forming a table</a></li><li><a href="tabular-data.html#header-and-data-cell-semantics"><span class="secno">4.9.12.2 </span>Forming relationships between data cells and header cells</a></li></ol></li><li><a href="tabular-data.html#examples"><span class="secno">4.9.13 </span>Examples</a></li></ol></li></ol></li></ol></div><h3 id="tabular-data"><span class="secno">4.9 </span>Tabular data</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/32">ISSUE-32</a> (table-summary) blocks progress to Last Call</span></p><h4 id="the-table-element"><span class="secno">4.9.1 </span>The <dfn><code>table</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/92">ISSUE-92</a> (cleanuptable) blocks progress to Last Call</span></p><dl class="element"><dt>Categories</dt>
+      <ol><li><a href="tabular-data.html#forming-a-table"><span class="secno">4.9.12.1 </span>Forming a table</a></li><li><a href="tabular-data.html#header-and-data-cell-semantics"><span class="secno">4.9.12.2 </span>Forming relationships between data cells and header cells</a></li></ol></li><li><a href="tabular-data.html#examples"><span class="secno">4.9.13 </span>Examples</a></li></ol></li></ol></li></ol></div><h3 id="tabular-data"><span class="secno">4.9 </span>Tabular data</h3><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/32">ISSUE-32</a> (table-summary) blocks progress to Last Call</span></p><h4 id="the-table-element"><span class="secno">4.9.1 </span>The <dfn><code>table</code></dfn> element</h4><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/92">ISSUE-92</a> (cleanuptable) blocks progress to Last Call</span></p><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#flow-content">flow content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd>In this order: optionally a <code><a href="#the-caption-element">caption</a></code> element,
@@ -895,9 +905,9 @@
  &lt;/table&gt;
 &lt;/section&gt;</pre>
 
-  </div><h4 id="the-caption-element"><span class="secno">4.9.2 </span>The <dfn><code>caption</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-caption-element"><span class="secno">4.9.2 </span>The <dfn><code>caption</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>As the first element child of a <code><a href="#the-table-element">table</a></code> element.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>, but with no descendant <code><a href="#the-table-element">table</a></code> elements.</dd>
@@ -942,9 +952,9 @@
 &lt;/caption&gt;</pre>
 
 
-  </div><h4 id="the-colgroup-element"><span class="secno">4.9.3 </span>The <dfn><code>colgroup</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-colgroup-element"><span class="secno">4.9.3 </span>The <dfn><code>colgroup</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>As a child of a <code><a href="#the-table-element">table</a></code> element, after any
    <code><a href="#the-caption-element">caption</a></code> elements and before any <code><a href="#the-thead-element">thead</a></code>,
    <code><a href="#the-tbody-element">tbody</a></code>, <code><a href="#the-tfoot-element">tfoot</a></code>, and <code><a href="#the-tr-element">tr</a></code>
@@ -976,9 +986,9 @@
   same name. The value must be <a href="common-dom-interfaces.html#limited-to-only-non-negative-numbers-greater-than-zero">limited to only non-negative
   numbers greater than zero</a>.</p>
 
-  </div><h4 id="the-col-element"><span class="secno">4.9.4 </span>The <dfn><code>col</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-col-element"><span class="secno">4.9.4 </span>The <dfn><code>col</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>As a child of a <code><a href="#the-colgroup-element">colgroup</a></code> element that doesn't have
    a <code title="attr-col-span"><a href="#attr-col-span">span</a></code> attribute.</dd>
    <dt>Content model:</dt>
@@ -1009,9 +1019,9 @@
   same name. The value must be <a href="common-dom-interfaces.html#limited-to-only-non-negative-numbers-greater-than-zero">limited to only non-negative
   numbers greater than zero</a>.</p>
 
-  </div><h4 id="the-tbody-element"><span class="secno">4.9.5 </span>The <dfn><code>tbody</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-tbody-element"><span class="secno">4.9.5 </span>The <dfn><code>tbody</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>As a child of a <code><a href="#the-table-element">table</a></code> element, after any
    <code><a href="#the-caption-element">caption</a></code>, <code><a href="#the-colgroup-element">colgroup</a></code>, and
    <code><a href="#the-thead-element">thead</a></code> elements, but only if there are no
@@ -1088,9 +1098,9 @@
   to the number of elements in the <code title="dom-tbody-rows"><a href="#dom-tbody-rows">rows</a></code> collection, the method must
   instead raise an <code><a href="common-dom-interfaces.html#index_size_err">INDEX_SIZE_ERR</a></code> exception.</p>
 
-  </div><h4 id="the-thead-element"><span class="secno">4.9.6 </span>The <dfn><code>thead</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-thead-element"><span class="secno">4.9.6 </span>The <dfn><code>thead</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>As a child of a <code><a href="#the-table-element">table</a></code> element, after any
    <code><a href="#the-caption-element">caption</a></code>, and <code><a href="#the-colgroup-element">colgroup</a></code>
    elements and before any <code><a href="#the-tbody-element">tbody</a></code>, <code><a href="#the-tfoot-element">tfoot</a></code>, and
@@ -1112,9 +1122,46 @@
   <p>The <code><a href="#the-thead-element">thead</a></code> element takes part in the <a href="#table-model">table
   model</a>.</p>
 
-  </div><h4 id="the-tfoot-element"><span class="secno">4.9.7 </span>The <dfn><code>tfoot</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><div class="example">
+
+   <p>This example shows a <code><a href="#the-thead-element">thead</a></code> element being used.
+   Notice the use of both <code><a href="#the-th-element">th</a></code> and <code><a href="#the-td-element">td</a></code> elements
+   in the <code><a href="#the-thead-element">thead</a></code> element: the first row is the headers,
+   and the second row is an explanation of how to fill in the
+   table.</p>
+
+   <pre>&lt;table&gt;
+ &lt;caption&gt; School auction sign-up sheet &lt;/caption&gt;
+<strong> &lt;thead&gt;
+  &lt;tr&gt;
+   &lt;th&gt;&lt;label for=e1&gt;Name&lt;/label&gt;
+   &lt;th&gt;&lt;label for=e2&gt;Product&lt;/label&gt;
+   &lt;th&gt;&lt;label for=e3&gt;Picture&lt;/label&gt;
+   &lt;th&gt;&lt;label for=e4&gt;Price&lt;/label&gt;
+  &lt;tr&gt;
+   &lt;td&gt;Your name here
+   &lt;td&gt;What are you selling?
+   &lt;td&gt;Link to a picture
+   &lt;td&gt;Your reserve price
+</strong> &lt;tbody&gt;
+  &lt;tr&gt;
+   &lt;td&gt;Ms Danus
+   &lt;td&gt;Doughnuts
+   &lt;td&gt;&lt;img src="http://example.com/mydoughnuts.png" title="Doughnuts from Ms Danus"&gt;
+   &lt;td&gt;$45
+  &lt;tr&gt;
+   &lt;td&gt;&lt;input id=e1 type=text name=who required form=f&gt;
+   &lt;td&gt;&lt;input id=e2 type=text name=what required form=f&gt;
+   &lt;td&gt;&lt;input id=e3 type=url name=pic form=f&gt;
+   &lt;td&gt;&lt;input id=e4 type=number step=0.01 min=0 value=0 required form=f&gt;
+&lt;/table&gt;
+&lt;form id=f action="/auction.cgi"&gt;
+ &lt;input type=button name=add value="Submit"&gt;
+&lt;/form&gt;</pre>
+
+  </div><h4 id="the-tfoot-element"><span class="secno">4.9.7 </span>The <dfn><code>tfoot</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>As a child of a <code><a href="#the-table-element">table</a></code> element, after any
    <code><a href="#the-caption-element">caption</a></code>, <code><a href="#the-colgroup-element">colgroup</a></code>, and <code><a href="#the-thead-element">thead</a></code>
    elements and before any <code><a href="#the-tbody-element">tbody</a></code> and <code><a href="#the-tr-element">tr</a></code>
@@ -1140,9 +1187,9 @@
   <p>The <code><a href="#the-tfoot-element">tfoot</a></code> element takes part in the <a href="#table-model">table
   model</a>.</p>
 
-  </div><h4 id="the-tr-element"><span class="secno">4.9.8 </span>The <dfn><code>tr</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-tr-element"><span class="secno">4.9.8 </span>The <dfn><code>tr</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>As a child of a <code><a href="#the-thead-element">thead</a></code> element.</dd>
    <dd>As a child of a <code><a href="#the-tbody-element">tbody</a></code> element.</dd>
    <dd>As a child of a <code><a href="#the-tfoot-element">tfoot</a></code> element.</dd>
@@ -1151,8 +1198,7 @@
    elements, but only if there are no <code><a href="#the-tbody-element">tbody</a></code> elements that
    are children of the <code><a href="#the-table-element">table</a></code> element.</dd>
    <dt>Content model:</dt>
-   <dd>When the parent node is a <code><a href="#the-thead-element">thead</a></code> element: Zero or more <code><a href="#the-th-element">th</a></code> elements</dd>
-   <dd>Otherwise: Zero or more <code><a href="#the-td-element">td</a></code> or <code><a href="#the-th-element">th</a></code> elements</dd>
+   <dd>Zero or more <code><a href="#the-td-element">td</a></code> or <code><a href="#the-th-element">th</a></code> elements</dd>
    <dt>Content attributes:</dt>
    <dd><a href="elements.html#global-attributes">Global attributes</a></dd>
    <dt>DOM interface:</dt>
@@ -1280,9 +1326,9 @@
   to the number of elements in the <code title="dom-tr-cells"><a href="#dom-tr-cells">cells</a></code> collection, the method must
   instead raise an <code><a href="common-dom-interfaces.html#index_size_err">INDEX_SIZE_ERR</a></code> exception.</p>
 
-  </div><h4 id="the-td-element"><span class="secno">4.9.9 </span>The <dfn><code>td</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-td-element"><span class="secno">4.9.9 </span>The <dfn><code>td</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="sections.html#sectioning-root">Sectioning root</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>As a child of a <code><a href="#the-tr-element">tr</a></code> element.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
@@ -1301,9 +1347,9 @@
   <p>The <code><a href="#the-td-element">td</a></code> element and its <code title="attr-tdth-colspan"><a href="#attr-tdth-colspan">colspan</a></code>, <code title="attr-tdth-rowspan"><a href="#attr-tdth-rowspan">rowspan</a></code>, and <code title="attr-tdth-headers"><a href="#attr-tdth-headers">headers</a></code> attributes take part in the
   <a href="#table-model">table model</a>.</p>
 
-  </div><h4 id="the-th-element"><span class="secno">4.9.10 </span>The <dfn><code>th</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-th-element"><span class="secno">4.9.10 </span>The <dfn><code>th</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>As a child of a <code><a href="#the-tr-element">tr</a></code> element.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -1406,7 +1452,7 @@
    them.</p>
 
    <!-- image source: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/151 -->
-   <img alt="" src="http://dev.w3.org/html5/spec/images/table-scope-diagram.png"/><!-- (alt is empty because the diagram is completely described by the previous paragraphs) --></div><h4 id="attributes-common-to-td-and-th-elements"><span class="secno">4.9.11 </span>Attributes common to <code><a href="#the-td-element">td</a></code> and <code><a href="#the-th-element">th</a></code> elements</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href="#the-td-element">td</a></code> and <code><a href="#the-th-element">th</a></code> elements may have a <dfn id="attr-tdth-colspan" title="attr-tdth-colspan"><code>colspan</code></dfn> content
+   <img alt="" height="256" src="http://dev.w3.org/html5/spec/images/table-scope-diagram.png" width="459"/><!-- (alt is empty because the diagram is completely described by the previous paragraphs) --></div><h4 id="attributes-common-to-td-and-th-elements"><span class="secno">4.9.11 </span>Attributes common to <code><a href="#the-td-element">td</a></code> and <code><a href="#the-th-element">th</a></code> elements</h4><p>The <code><a href="#the-td-element">td</a></code> and <code><a href="#the-th-element">th</a></code> elements may have a <dfn id="attr-tdth-colspan" title="attr-tdth-colspan"><code>colspan</code></dfn> content
   attribute specified, whose value must be a <a href="common-microsyntaxes.html#valid-non-negative-integer">valid non-negative
   integer</a> greater than zero.</p><p>The <code><a href="#the-td-element">td</a></code> and <code><a href="#the-th-element">th</a></code> elements may also have a
   <dfn id="attr-tdth-rowspan" title="attr-tdth-rowspan"><code>rowspan</code></dfn> content
@@ -1419,10 +1465,11 @@
   model --><hr/><p>The <code><a href="#the-td-element">td</a></code> and <code><a href="#the-th-element">th</a></code> element may have a <dfn id="attr-tdth-headers" title="attr-tdth-headers"><code>headers</code></dfn> content
   attribute specified. The <code title="attr-tdth-headers"><a href="#attr-tdth-headers">headers</a></code> attribute, if specified,
   must contain a string consisting of an <a href="common-microsyntaxes.html#unordered-set-of-unique-space-separated-tokens">unordered set of unique
-  space-separated tokens</a>, each of which must have the value of
-  an <a href="elements.html#concept-id" title="concept-id">ID</a> of a <code><a href="#the-th-element">th</a></code> element taking part in the same <a href="#concept-table" title="concept-table">table</a> as the <code><a href="#the-td-element">td</a></code> or
-  <code><a href="#the-th-element">th</a></code> element<span class="impl"> (as defined by the
-  <a href="#table-model">table model</a>)</span>.</p><p>A <code><a href="#the-th-element">th</a></code> element with <a href="elements.html#concept-id" title="concept-id">ID</a> <var title="">id</var> is said
+  space-separated tokens</a> that are <a href="infrastructure.html#case-sensitive">case-sensitive</a>,
+  each of which must have the value of an <a href="elements.html#concept-id" title="concept-id">ID</a> of a <code><a href="#the-th-element">th</a></code> element taking
+  part in the same <a href="#concept-table" title="concept-table">table</a> as the
+  <code><a href="#the-td-element">td</a></code> or <code><a href="#the-th-element">th</a></code> element<span class="impl"> (as
+  defined by the <a href="#table-model">table model</a>)</span>.</p><p>A <code><a href="#the-th-element">th</a></code> element with <a href="elements.html#concept-id" title="concept-id">ID</a> <var title="">id</var> is said
   to be <i>directly targeted</i> by all <code><a href="#the-td-element">td</a></code> and
   <code><a href="#the-th-element">th</a></code> elements in the same <a href="#concept-table" title="concept-table">table</a> that have <code title="attr-tdth-headers"><a href="#attr-tdth-headers">headers</a></code> attributes whose values
   include as one of their tokens the <a href="elements.html#concept-id" title="concept-id">ID</a> <var title="">id</var>. A
@@ -1483,7 +1530,7 @@
 
   </div><div class="impl">
 
-  <h4 id="processing-model-0"><span class="secno">4.9.12 </span>Processing model</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="processing-model-0"><span class="secno">4.9.12 </span>Processing model</h4>
 
   <p>The various table elements and their content attributes together
   define the <dfn id="table-model">table model</dfn>.</p>
@@ -1555,7 +1602,7 @@
   descendants. Documents must not have table model errors.</p>
 
 
-  <h5 id="forming-a-table"><span class="secno">4.9.12.1 </span>Forming a table</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="forming-a-table"><span class="secno">4.9.12.1 </span>Forming a table</h5>
 
   <p>To determine which elements correspond to which slots in a <a href="#concept-table" title="concept-table">table</a> associated with a
   <code><a href="#the-table-element">table</a></code> element, to determine the dimensions of the table
@@ -2131,7 +2178,7 @@
 
 
 
-  <h5 id="header-and-data-cell-semantics"><span class="secno">4.9.12.2 </span>Forming relationships between data cells and header cells</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="header-and-data-cell-semantics"><span class="secno">4.9.12.2 </span>Forming relationships between data cells and header cells</h5>
 
   <p>Each cell can be assigned zero or more header cells. The
   <dfn id="algorithm-for-assigning-header-cells">algorithm for assigning header cells</dfn> to a cell <var title="">principal cell</var> is as follows.</p>
@@ -2476,7 +2523,7 @@
   elements and its text content, if any, consists only of
   <a href="common-microsyntaxes.html#white_space">White_Space</a> characters.</p>
 
-  </div><h4 id="examples"><span class="secno">4.9.13 </span>Examples</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p><i>This section is non-normative.</i></p><p>The following shows how might one mark up the bottom part of
+  </div><h4 id="examples"><span class="secno">4.9.13 </span>Examples</h4><p><i>This section is non-normative.</i></p><p>The following shows how might one mark up the bottom part of
   table 45 of the <cite>Smithsonian physical tables, Volume
   71</cite>:</p><!-- Smithsonian physical tables, Volume 71: By Smithsonian Institution, Frederick Eugene Fowle; page 76 --><!-- from the reprint of the seventh revised edition; publication 2539, published 1921 --><pre>&lt;table&gt;
  &lt;caption&gt;Specification values: &lt;b&gt;Steel&lt;/b&gt;, &lt;b&gt;Castings&lt;/b&gt;,

Index: the-iframe-element.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/the-iframe-element.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- the-iframe-element.html	28 Aug 2010 23:52:55 -0000	1.1
+++ the-iframe-element.html	19 Oct 2010 17:38:08 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -317,15 +327,15 @@
    <a href="embedded-content-1.html">&#x2190; 4.8 Embedded content</a> &#x2013;
    <a href="spec.html#contents">Table of contents</a> &#x2013;
    <a href="video.html">4.8.6 The video element &#x2192;</a>
-  <ol class="toc"><li><ol><li><ol><li><a href="the-iframe-element.html#the-iframe-element"><span class="secno">4.8.2 </span>The <code>iframe</code> element</a></li><li><a href="the-iframe-element.html#the-embed-element"><span class="secno">4.8.3 </span>The <code>embed</code> element</a></li><li><a href="the-iframe-element.html#the-object-element"><span class="secno">4.8.4 </span>The <code>object</code> element</a></li><li><a href="the-iframe-element.html#the-param-element"><span class="secno">4.8.5 </span>The <code>param</code> element</a></li></ol></li></ol></li></ol></div><h4 id="the-iframe-element"><span class="secno">4.8.2 </span>The <dfn><code>iframe</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/100">ISSUE-100</a> (srcdoc) and <a href="http://www.w3.org/html/wg/tracker/issues/103">ISSUE-103</a> (srcdoc-xml-escaping) block progress to Last Call</span></p><dl class="element"><dt>Categories</dt>
+  <ol class="toc"><li><ol><li><ol><li><a href="the-iframe-element.html#the-iframe-element"><span class="secno">4.8.2 </span>The <code>iframe</code> element</a></li><li><a href="the-iframe-element.html#the-embed-element"><span class="secno">4.8.3 </span>The <code>embed</code> element</a></li><li><a href="the-iframe-element.html#the-object-element"><span class="secno">4.8.4 </span>The <code>object</code> element</a></li><li><a href="the-iframe-element.html#the-param-element"><span class="secno">4.8.5 </span>The <code>param</code> element</a></li></ol></li></ol></li></ol></div><h4 id="the-iframe-element"><span class="secno">4.8.2 </span>The <dfn><code>iframe</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
    <dd><a href="content-models.html#embedded-content">Embedded content</a>.</dd>
    <dd><a href="content-models.html#interactive-content">Interactive content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#embedded-content">embedded content</a> is expected.</dd>
    <dt>Content model:</dt>
-   <dd>Text that conforms to the requirements given in the prose.</dd>
+   <dd>Text that conforms to <a href="#iframe-content-model">the requirements given in the prose</a>.</dd>
    <dt>Content attributes:</dt>
    <dd><a href="elements.html#global-attributes">Global attributes</a></dd>
    <dd><code title="attr-iframe-src"><a href="#attr-iframe-src">src</a></code></dd>
@@ -551,8 +561,11 @@
   attribute contents and then to escape all U+0022 QUOTATION MARK (")
   and U+0026 AMPERSAND (&amp;) characters, and to specify the <code title="attr-iframe-sandbox"><a href="#attr-iframe-sandbox">sandbox</a></code> attribute, to ensure safe
   embedding of content.</p><p class="note">Due to restrictions of <span>the XML syntax</span>,
-  in XML a number of other characters need to be escaped also to
-  ensure correctness.</p><hr/><p>The <dfn id="attr-iframe-name" title="attr-iframe-name"><code>name</code></dfn>
+  in XML the U+003C LESS-THAN SIGN character (&lt;) needs to be
+  escaped as well. In order to prevent <a href="http://www.w3.org/TR/REC-xml/#AVNormalize">attribute-value
+  normalization</a>, XML's whitespace characters &#x2014; U+0009
+  CHARACTER TABULATION (HT), U+000A LINE FEED (LF), U+000D CARRIAGE
+  RETURN (CR) and U+0020 SPACE &#x2014; also need to be escaped. <a href="references.html#refsXML">[XML]</a></p><hr/><p>The <dfn id="attr-iframe-name" title="attr-iframe-name"><code>name</code></dfn>
   attribute, if present, must be a <a href="browsers.html#valid-browsing-context-name">valid browsing context
   name</a>. The given value is used to name the <a href="browsers.html#nested-browsing-context">nested
   browsing context</a>. <span class="impl">When the browsing
@@ -600,8 +613,8 @@
   </div><hr/><p>The <dfn id="attr-iframe-sandbox" title="attr-iframe-sandbox"><code>sandbox</code></dfn>
   attribute, when specified, enables a set of extra restrictions on
   any content hosted by the <code><a href="#the-iframe-element">iframe</a></code>. Its value must be an
-  <a href="common-microsyntaxes.html#unordered-set-of-unique-space-separated-tokens">unordered set of unique space-separated tokens</a>. The
-  allowed values are <code title="attr-iframe-sandbox-allow-same-origin"><a href="#attr-iframe-sandbox-allow-same-origin">allow-same-origin</a></code>,
+  <a href="common-microsyntaxes.html#unordered-set-of-unique-space-separated-tokens">unordered set of unique space-separated tokens</a> that are
+  <a href="infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a>. The allowed values are <code title="attr-iframe-sandbox-allow-same-origin"><a href="#attr-iframe-sandbox-allow-same-origin">allow-same-origin</a></code>,
   <code title="attr-iframe-sandbox-allow-top-navigation"><a href="#attr-iframe-sandbox-allow-top-navigation">allow-top-navigation</a></code>,
   <code title="attr-iframe-sandbox-allow-forms"><a href="#attr-iframe-sandbox-allow-forms">allow-forms</a></code>,
   and <code title="attr-iframe-sandbox-allow-scripts"><a href="#attr-iframe-sandbox-allow-scripts">allow-scripts</a></code>. When
@@ -801,7 +814,7 @@
 
   <p class="warning">These flags only take effect when the
   <a href="browsers.html#nested-browsing-context">nested browsing context</a> of the <code><a href="#the-iframe-element">iframe</a></code> is
-  <a href="history.html#navigate" title="navigate">navigated</a>. Removing then, or removing
+  <a href="history.html#navigate" title="navigate">navigated</a>. Removing them, or removing
   the entire <code title="attr-iframe-sandbox"><a href="#attr-iframe-sandbox">sandbox</a></code>
   attribute, has no effect on an already-loaded page.</p>
 
@@ -1021,17 +1034,17 @@
   are successfully used.</p><p>Descendants of <code><a href="#the-iframe-element">iframe</a></code> elements represent
   nothing. (In legacy user agents that do not support
   <code><a href="#the-iframe-element">iframe</a></code> elements, the contents would be parsed as markup
-  that could act as fallback content.)</p><p>When used in <a href="dom.html#html-documents">HTML documents</a>, the allowed content
-  model of <code><a href="#the-iframe-element">iframe</a></code> elements is text, except that invoking
-  the <a href="the-end.html#html-fragment-parsing-algorithm">HTML fragment parsing algorithm</a> with the
-  <code><a href="#the-iframe-element">iframe</a></code> element as the <var title="">context</var>
-  element and the text contents as the <var title="">input</var> must
-  result in a list of nodes that are all <a href="content-models.html#phrasing-content">phrasing
-  content</a>, with no <a href="parsing.html#parse-error" title="parse error">parse
-  errors</a> having occurred, with no <code><a href="scripting-1.html#script">script</a></code> elements
-  being anywhere in the list or as descendants of elements in the
-  list, and with all the elements in the list (including their
-  descendants) being themselves conforming.</p><p>The <code><a href="#the-iframe-element">iframe</a></code> element must be empty in <a href="dom.html#xml-documents">XML
+  that could act as fallback content.)</p><p id="iframe-content-model">When used in <a href="dom.html#html-documents">HTML
+  documents</a>, the allowed content model of <code><a href="#the-iframe-element">iframe</a></code>
+  elements is text, except that invoking the <a href="the-end.html#html-fragment-parsing-algorithm">HTML fragment
+  parsing algorithm</a> with the <code><a href="#the-iframe-element">iframe</a></code> element as the
+  <var title="">context</var> element and the text contents as the
+  <var title="">input</var> must result in a list of nodes that are
+  all <a href="content-models.html#phrasing-content">phrasing content</a>, with no <a href="parsing.html#parse-error" title="parse&#10;  error">parse errors</a> having occurred, with no
+  <code><a href="scripting-1.html#script">script</a></code> elements being anywhere in the list or as
+  descendants of elements in the list, and with all the elements in
+  the list (including their descendants) being themselves
+  conforming.</p><p>The <code><a href="#the-iframe-element">iframe</a></code> element must be empty in <a href="dom.html#xml-documents">XML
   documents</a>.</p><p class="note">The <a href="parsing.html#html-parser">HTML parser</a> treats markup inside
   <code><a href="#the-iframe-element">iframe</a></code> elements as text.</p><div class="impl">
 
@@ -1057,7 +1070,7 @@
    <pre>&lt;iframe src="http://ads.example.com/?customerid=923513721&amp;amp;format=banner"
         width="468" height="60"&gt;&lt;/iframe&gt;</pre>
 
-  </div><h4 id="the-embed-element"><span class="secno">4.8.3 </span>The <dfn><code>embed</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><!-- (v2?)
+  </div><h4 id="the-embed-element"><span class="secno">4.8.3 </span>The <dfn><code>embed</code></dfn> element</h4><!-- (v2?)
  we have all kinds of quirks we should define if they come up during
  testing, as e.g. shown in:
  http://mxr.mozilla.org/mozilla-central/source/layout/generic/nsObjectFrame.cpp
@@ -1076,7 +1089,7 @@
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
    <dd><a href="content-models.html#embedded-content">Embedded content</a>.</dd>
    <dd><a href="content-models.html#interactive-content">Interactive content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#embedded-content">embedded content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd>Empty.</dd>
@@ -1317,13 +1330,13 @@
  &lt;param name="quality" value="high"&gt;
 &lt;/object&gt;</pre>
 
-  </div><h4 id="the-object-element"><span class="secno">4.8.4 </span>The <dfn><code>object</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-object-element"><span class="secno">4.8.4 </span>The <dfn><code>object</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
    <dd><a href="content-models.html#embedded-content">Embedded content</a>.</dd>
    <dd>If the element has a <code title="attr-hyperlink-usemap"><a href="the-map-element.html#attr-hyperlink-usemap">usemap</a></code> attribute: <a href="content-models.html#interactive-content">Interactive content</a>.</dd> <!-- also when showing a plugin or a nested browsing context, but checking that statically is hard...) -->
    <dd><a href="forms.html#category-listed" title="category-listed">Listed</a>,  <a href="forms.html#category-submit" title="category-submit">submittable</a>, <a href="forms.html#form-associated-element">form-associated element</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#embedded-content">embedded content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd>Zero or more <code><a href="#the-param-element">param</a></code> elements, then, <a href="content-models.html#transparent">transparent</a>.</dd>
@@ -2004,9 +2017,9 @@
  &lt;/object&gt;
 &lt;/p&gt;</pre>
 
-  </div><h4 id="the-param-element"><span class="secno">4.8.5 </span>The <dfn><code>param</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-param-element"><span class="secno">4.8.5 </span>The <dfn><code>param</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>As a child of an <code><a href="#the-object-element">object</a></code> element, before any <a href="content-models.html#flow-content">flow content</a>.</dd>
    <dt>Content model:</dt>
    <dd>Empty.</dd>
@@ -2031,6 +2044,16 @@
   element defines a <dfn id="concept-param-parameter" title="concept-param-parameter">parameter</dfn> with the given
   name/value pair.</p>
 
+  <p>If either the name or value of a <a href="#concept-param-parameter" title="concept-param-parameter">parameter</a> defined by a
+  <code><a href="#the-param-element">param</a></code> element that is the child of an
+  <code><a href="#the-object-element">object</a></code> element that <a href="rendering.html#represents">represents</a> an
+  instantiated <a href="infrastructure.html#plugin">plugin</a> changes, and if that
+  <a href="infrastructure.html#plugin">plugin</a> is communicating with the user agent using an
+  API that features the ability to update the <a href="infrastructure.html#plugin">plugin</a> when
+  the name or value of a <a href="#concept-param-parameter" title="concept-param-parameter">parameter</a> so changes, then
+  the user agent must appropriately exercise that ability to notify
+  the <a href="infrastructure.html#plugin">plugin</a> of the change.</p>
+
   <p>The IDL attributes <dfn id="dom-param-name" title="dom-param-name"><code>name</code></dfn> and <dfn id="dom-param-value" title="dom-param-value"><code>value</code></dfn> must both
   <a href="common-dom-interfaces.html#reflect">reflect</a> the respective content attributes of the same
   name.</p>

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/Overview.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Overview.html	29 Aug 2010 00:58:05 -0000	1.2
+++ Overview.html	19 Oct 2010 17:38:05 -0000	1.3
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
[...17396 lines suppressed...]
+  Martin Nilsson,
   Martin Thomson,
   Masataka Yakura,
   Mathieu Henri,
@@ -68628,6 +71805,7 @@
   Scott Gonz&#xE1;lez,
   Scott Hess,
   Sean Fraser,
+  Sean Hayes,
   Sean Hogan,
   Sean Knapp,
   Sebastian Markb&#xE5;ge,
@@ -68643,6 +71821,7 @@
   Simon Pieters,
   Simon Spiegel,
   skeww, <!-- on reddit -->
+  Stanton McCandlish,
   Stefan Haustein,
   Stefan Santesson,
   Steffen Meschkat,

Index: the-end.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/the-end.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- the-end.html	28 Aug 2010 23:52:55 -0000	1.1
+++ the-end.html	19 Oct 2010 17:38:08 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -318,9 +328,9 @@
    <a href="spec.html#contents">Table of contents</a> &#x2013;
    <a href="named-character-references.html">8.5 Named character references &#x2192;</a>
   <ol class="toc"><li><ol><li><ol><li><a href="the-end.html#the-end"><span class="secno">8.2.6 </span>The end</a></li><li><a href="the-end.html#coercing-an-html-dom-into-an-infoset"><span class="secno">8.2.7 </span>Coercing an HTML DOM into an infoset</a></li><li><a href="the-end.html#an-introduction-to-error-handling-and-strange-cases-in-the-parser"><span class="secno">8.2.8 </span>An introduction to error handling and strange cases in the parser</a>
-      <ol><li><a href="the-end.html#misnested-tags:-b-i-b-i"><span class="secno">8.2.8.1 </span>Misnested tags: &lt;b&gt;&lt;i&gt;&lt;/b&gt;&lt;/i&gt;</a></li><li><a href="the-end.html#misnested-tags:-b-p-b-p"><span class="secno">8.2.8.2 </span>Misnested tags: &lt;b&gt;&lt;p&gt;&lt;/b&gt;&lt;/p&gt;</a></li><li><a href="the-end.html#unexpected-markup-in-tables"><span class="secno">8.2.8.3 </span>Unexpected markup in tables</a></li><li><a href="the-end.html#scripts-that-modify-the-page-as-it-is-being-parsed"><span class="secno">8.2.8.4 </span>Scripts that modify the page as it is being parsed</a></li></ol></li></ol></li><li><a href="the-end.html#serializing-html-fragments"><span class="secno">8.3 </span>Serializing HTML fragments</a></li><li><a href="the-end.html#parsing-html-fragments"><span class="secno">8.4 </span>Parsing HTML fragments</a></li></ol></li></ol></div><div class="impl">
+      <ol><li><a href="the-end.html#misnested-tags:-b-i-b-i"><span class="secno">8.2.8.1 </span>Misnested tags: &lt;b&gt;&lt;i&gt;&lt;/b&gt;&lt;/i&gt;</a></li><li><a href="the-end.html#misnested-tags:-b-p-b-p"><span class="secno">8.2.8.2 </span>Misnested tags: &lt;b&gt;&lt;p&gt;&lt;/b&gt;&lt;/p&gt;</a></li><li><a href="the-end.html#unexpected-markup-in-tables"><span class="secno">8.2.8.3 </span>Unexpected markup in tables</a></li><li><a href="the-end.html#scripts-that-modify-the-page-as-it-is-being-parsed"><span class="secno">8.2.8.4 </span>Scripts that modify the page as it is being parsed</a></li><li><a href="the-end.html#unclosed-formatting-elements"><span class="secno">8.2.8.5 </span>Unclosed formatting elements</a></li></ol></li></ol></li><li><a href="the-end.html#serializing-html-fragments"><span class="secno">8.3 </span>Serializing HTML fragments</a></li><li><a href="the-end.html#parsing-html-fragments"><span class="secno">8.4 </span>Parsing HTML fragments</a></li></ol></li></ol></div><div class="impl">
 
-  <h4 id="the-end"><span class="secno">8.2.6 </span>The end</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="the-end"><span class="secno">8.2.6 </span>The end</h4>
 
   <p>Once the user agent <dfn id="stop-parsing" title="stop parsing">stops parsing</dfn>
   the document, the user agent must run the following steps:</p>
@@ -339,9 +349,8 @@
     <ol><li><p><a href="webappapis.html#spin-the-event-loop">Spin the event loop</a> until the first
      <code><a href="scripting-1.html#script">script</a></code> in the <a href="scripting-1.html#list-of-scripts-that-will-execute-when-the-document-has-finished-parsing">list of scripts that will
      execute when the document has finished parsing</a> has its
-     <a href="scripting-1.html#ready-to-be-parser-executed">"ready to be parser-executed"</a> flag set <em>and</em> there
-     is no <a href="semantics.html#a-style-sheet-blocking-scripts" title="a style sheet blocking scripts">style sheet
-     blocking scripts</a>.</p></li>
+     <a href="scripting-1.html#ready-to-be-parser-executed">"ready to be parser-executed"</a> flag set <em>and</em>
+     there is no <a href="semantics.html#a-style-sheet-that-is-blocking-scripts" title="a style sheet that is blocking&#10;     scripts">style sheet that is blocking scripts</a>.</p></li>
 
      <li><p><a href="scripting-1.html#executing-a-script-block" title="executing a script block">Execute</a> the
      first <code><a href="scripting-1.html#script">script</a></code> in the <a href="scripting-1.html#list-of-scripts-that-will-execute-when-the-document-has-finished-parsing">list of scripts that will
@@ -434,7 +443,7 @@
 
   </div><div class="impl">
 
-  <h4 id="coercing-an-html-dom-into-an-infoset"><span class="secno">8.2.7 </span>Coercing an HTML DOM into an infoset</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="coercing-an-html-dom-into-an-infoset"><span class="secno">8.2.7 </span>Coercing an HTML DOM into an infoset</h4>
 
   <p>When an application uses an <a href="parsing.html#html-parser">HTML parser</a> in
   conjunction with an XML pipeline, it is possible that the
@@ -520,7 +529,7 @@
 
   </div><div class="impl">
 
-  <h4 id="an-introduction-to-error-handling-and-strange-cases-in-the-parser"><span class="secno">8.2.8 </span>An introduction to error handling and strange cases in the parser</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="an-introduction-to-error-handling-and-strange-cases-in-the-parser"><span class="secno">8.2.8 </span>An introduction to error handling and strange cases in the parser</h4>
 
   <p><i>This section is non-normative.</i></p>
 
@@ -611,7 +620,7 @@
   elements</a>, so that when the "3" is parsed, it is appended to
   the <code><a href="grouping-content.html#the-p-element">p</a></code> element:</p>
 
-  <ul class="domTree"><li class="t1"><code><a href="semantics.html#the-html-element-0">html</a></code><ul><li class="t1"><code><a href="semantics.html#the-head-element-0">head</a></code></li><li class="t1"><code><a href="sections.html#the-body-element-0">body</a></code><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code><ul><li class="t3"><code>#text</code>: <span title="">1</span></li></ul></li><li class="t1"><code><a href="grouping-content.html#the-p-element">p</a></code><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code><ul><li class="t3"><code>#text</code>: <span title="">2</span></li></ul></li><li class="t3"><code>#text</code>: <span title="">3</span></li></ul></li></ul></li></ul></li></ul><h5 id="unexpected-markup-in-tables"><span class="secno">8.2.8.3 </span>Unexpected markup in tables</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <ul class="domTree"><li class="t1"><code><a href="semantics.html#the-html-element-0">html</a></code><ul><li class="t1"><code><a href="semantics.html#the-head-element-0">head</a></code></li><li class="t1"><code><a href="sections.html#the-body-element-0">body</a></code><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code><ul><li class="t3"><code>#text</code>: <span title="">1</span></li></ul></li><li class="t1"><code><a href="grouping-content.html#the-p-element">p</a></code><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code><ul><li class="t3"><code>#text</code>: <span title="">2</span></li></ul></li><li class="t3"><code>#text</code>: <span title="">3</span></li></ul></li></ul></li></ul></li></ul><h5 id="unexpected-markup-in-tables"><span class="secno">8.2.8.3 </span>Unexpected markup in tables</h5>
 
   <p><i>This section is non-normative.</i></p>
 
@@ -702,7 +711,7 @@
   result in yet another <code><a href="text-level-semantics.html#the-b-element">b</a></code> element being created, this
   time after the table:</p>
 
-  <ul class="domTree"><li class="t1"><code><a href="semantics.html#the-html-element-0">html</a></code><ul><li class="t1"><code><a href="semantics.html#the-head-element-0">head</a></code></li><li class="t1"><code><a href="sections.html#the-body-element-0">body</a></code><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code></li><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code><ul><li class="t3"><code>#text</code>: <span title="">bbb</span></li></ul></li><li class="t1"><code><a href="tabular-data.html#the-table-element">table</a></code><ul><li class="t1"><code><a href="tabular-data.html#the-tbody-element">tbody</a></code><ul><li class="t1"><code><a href="tabular-data.html#the-tr-element">tr</a></code><ul><li class="t1"><code><a href="tabular-data.html#the-td-element">td</a></code><ul><li class="t3"><code>#text</code>: <span title="">aaa</span></li></ul></li></ul></li></ul></li></ul></li><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code><ul><li class="t3"><code>#text</code>: <span title="">ccc</span></li></ul></li></ul></li></ul></li></ul><h5 id="scripts-that-modify-the-page-as-it-is-being-parsed"><span class="secno">8.2.8.4 </span>Scripts that modify the page as it is being parsed</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <ul class="domTree"><li class="t1"><code><a href="semantics.html#the-html-element-0">html</a></code><ul><li class="t1"><code><a href="semantics.html#the-head-element-0">head</a></code></li><li class="t1"><code><a href="sections.html#the-body-element-0">body</a></code><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code></li><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code><ul><li class="t3"><code>#text</code>: <span title="">bbb</span></li></ul></li><li class="t1"><code><a href="tabular-data.html#the-table-element">table</a></code><ul><li class="t1"><code><a href="tabular-data.html#the-tbody-element">tbody</a></code><ul><li class="t1"><code><a href="tabular-data.html#the-tr-element">tr</a></code><ul><li class="t1"><code><a href="tabular-data.html#the-td-element">td</a></code><ul><li class="t3"><code>#text</code>: <span title="">aaa</span></li></ul></li></ul></li></ul></li></ul></li><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code><ul><li class="t3"><code>#text</code>: <span title="">ccc</span></li></ul></li></ul></li></ul></li></ul><h5 id="scripts-that-modify-the-page-as-it-is-being-parsed"><span class="secno">8.2.8.4 </span>Scripts that modify the page as it is being parsed</h5>
 
   <p><i>This section is non-normative.</i></p>
 
@@ -759,9 +768,39 @@
   <ul class="domTree"><li class="t1"><code><a href="semantics.html#the-html-element-0">html</a></code><ul><li class="t1"><code><a href="semantics.html#the-head-element-0">head</a></code></li><li class="t1"><code><a href="sections.html#the-body-element-0">body</a></code><ul><li class="t1"><code><a href="scripting-1.html#script">script</a></code><ul><li class="t3"><code>#text</code>: <span title="">alert(document.URL);</span></li></ul></li></ul></li></ul></li></ul><p>This second alert will say "http://example.com/inner".</p>
 
 
+  <h5 id="unclosed-formatting-elements"><span class="secno">8.2.8.5 </span>Unclosed formatting elements</h5>
 
+  <p><i>This section is non-normative.</i></p>
 
-  <h3 id="serializing-html-fragments"><span class="secno">8.3 </span>Serializing HTML fragments</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <p>The following markup shows how nested formatting elements (such
+  as <code><a href="text-level-semantics.html#the-b-element">b</a></code>) get collected and continue to be applied even as
+  the elements they are contained in are closed, but that excessive
+  duplicates are thrown away.</p>
+
+  <pre>&lt;!DOCTYPE html&gt;
+&lt;p&gt;&lt;b class=x&gt;&lt;b class=x&gt;&lt;b&gt;&lt;b class=x&gt;&lt;b class=x&gt;&lt;b&gt;X
+&lt;p&gt;X
+&lt;p&gt;&lt;b&gt;&lt;b class=x&gt;&lt;b&gt;X
+&lt;p&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;X</pre>
+
+  <p>The resulting DOM tree is as follows:</p>
+
+  <ul class="domTree"><li class="t10">DOCTYPE: <code><a href="semantics.html#the-html-element-0">html</a></code></li><li class="t1"><code><a href="semantics.html#the-html-element-0">html</a></code><ul><li class="t1"><code><a href="semantics.html#the-head-element-0">head</a></code></li><li class="t1"><code><a href="sections.html#the-body-element-0">body</a></code><ul><li class="t1"><code><a href="grouping-content.html#the-p-element">p</a></code><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code> <span class="t2" title=""><code class="attribute name">class</code>="<code class="attribute value">x</code>"</span><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code> <span class="t2" title=""><code class="attribute name">class</code>="<code class="attribute value">x</code>"</span><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code> <span class="t2" title=""><code class="attribute name">class</code>="<code class="attribute value">x</code>"</span><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code> <span class="t2" title=""><code class="attribute name">class</code>="<code class="attribute value">x</code>"</span><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code><ul><li class="t3"><code>#text</code>: <span title="">X&#x23CE;</span></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li><li class="t1"><code><a href="grouping-content.html#the-p-element">p</a></code><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code> <span class="t2" title=""><code class="attribute name">class</code>="<code class="attribute value">x</code>"</span><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code> <span class="t2" title=""><code class="attribute name">class</code>="<code class="attribute value">x</code>"</span><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code> <span class="t2" title=""><code class="attribute name">class</code>="<code class="attribute value">x</code>"</span><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code><ul><li class="t3"><code>#text</code>: <span title="">X&#x23CE;</span></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li><li class="t1"><code><a href="grouping-content.html#the-p-element">p</a></code><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code> <span class="t2" title=""><code class="attribute name">class</code>="<code class="attribute value">x</code>"</span><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code> <span class="t2" title=""><code class="attribute name">class</code>="<code class="attribute value">x</code>"</span><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code> <span class="t2" title=""><code class="attribute name">class</code>="<code class="attribute value">x</code>"</span><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code> <span class="t2" title=""><code class="attribute name">class</code>="<code class="attribute value">x</code>"</span><ul><li class="t1"><code><a href="text-level-semantics.html#the-b-element">b</a></code><ul><li class="t3"><code>#text</code>: <span title="">X&#x23CE;</span></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li><li class="t1"><code><a href="grouping-content.html#the-p-element">p</a></code><ul><li class="t3"><code>#text</code>: <span title="">X&#x23CE;</span></li></ul></li></ul></li></ul></li></ul><p>Note how the second <code><a href="grouping-content.html#the-p-element">p</a></code> element in the markup has no
+  explicit <code><a href="text-level-semantics.html#the-b-element">b</a></code> elements, but in the resulting DOM, up to
+  three of each kind of formatting element (in this case three
+  <code><a href="text-level-semantics.html#the-b-element">b</a></code> elements with the class attribute, and two unadorned
+  <code><a href="text-level-semantics.html#the-b-element">b</a></code> elements) get reconstructed before the element's
+  "X".</p>
+
+  <p>Also note how this means that in the final paragraph only six
+  <code><a href="text-level-semantics.html#the-b-element">b</a></code> end tags are needed to completely clear the list of
+  formatting elements, even though nine <code><a href="text-level-semantics.html#the-b-element">b</a></code> start tags have
+  been seen up to this point.</p>
+
+
+
+
+  <h3 id="serializing-html-fragments"><span class="secno">8.3 </span>Serializing HTML fragments</h3>
 
   <p>The following steps form the <dfn id="html-fragment-serialization-algorithm">HTML fragment serialization
   algorithm</dfn>. The algorithm takes as input a DOM
@@ -946,7 +985,7 @@
   tag for the <code><a href="grouping-content.html#the-p-element">p</a></code>).</p>
 
 
-  <h3 id="parsing-html-fragments"><span class="secno">8.4 </span>Parsing HTML fragments</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h3 id="parsing-html-fragments"><span class="secno">8.4 </span>Parsing HTML fragments</h3>
 
   <p>The following steps form the <dfn id="html-fragment-parsing-algorithm">HTML fragment parsing
   algorithm</dfn>. The algorithm optionally takes as input an

Index: history.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/history.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- history.html	28 Aug 2010 23:52:53 -0000	1.1
+++ history.html	19 Oct 2010 17:38:07 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -322,7 +332,7 @@
       <ol><li><a href="history.html#security-location"><span class="secno">5.4.3.1 </span>Security</a></li></ol></li><li><a href="history.html#history-notes"><span class="secno">5.4.4 </span>Implementation notes for session history</a></li></ol></li><li><a href="history.html#browsing-the-web"><span class="secno">5.5 </span>Browsing the Web</a>
     <ol><li><a href="history.html#navigating-across-documents"><span class="secno">5.5.1 </span>Navigating across documents</a></li><li><a href="history.html#read-html"><span class="secno">5.5.2 </span>Page load processing model for HTML files</a></li><li><a href="history.html#read-xml"><span class="secno">5.5.3 </span>Page load processing model for XML files</a></li><li><a href="history.html#read-text"><span class="secno">5.5.4 </span>Page load processing model for text files</a></li><li><a href="history.html#read-image"><span class="secno">5.5.5 </span>Page load processing model for images</a></li><li><a href="history.html#read-plugin"><span class="secno">5.5.6 </span>Page load processing model for content that uses plugins</a></li><li><a href="history.html#read-ua-inline"><span class="secno">5.5.7 </span>Page load processing model for inline content that doesn't have a DOM</a></li><li><a href="history.html#scroll-to-fragid"><span class="secno">5.5.8 </span>Navigating to a fragment identifier</a></li><li><a href="history.html#history-traversal"><span class="secno">5.5.9 </span>History traversal</a>
       <ol><li><a href="history.html#event-definitions"><span class="secno">5.5.9.1 </span>Event definitions</a></li></ol></li><li><a href="history.html#unloading-documents"><span class="secno">5.5.10 </span>Unloading documents</a>
-      <ol><li><a href="history.html#event-definition"><span class="secno">5.5.10.1 </span>Event definition</a></li></ol></li><li><a href="history.html#aborting-a-document-load"><span class="secno">5.5.11 </span>Aborting a document load</a></li></ol></li></ol></li></ol></div><h3 id="history"><span class="secno">5.4 </span>Session history and navigation</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><h4 id="the-session-history-of-browsing-contexts"><span class="secno">5.4.1 </span>The session history of browsing contexts</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The sequence of <code><a href="infrastructure.html#document">Document</a></code>s in a <a href="browsers.html#browsing-context">browsing
+      <ol><li><a href="history.html#event-definition"><span class="secno">5.5.10.1 </span>Event definition</a></li></ol></li><li><a href="history.html#aborting-a-document-load"><span class="secno">5.5.11 </span>Aborting a document load</a></li></ol></li></ol></li></ol></div><h3 id="history"><span class="secno">5.4 </span>Session history and navigation</h3><h4 id="the-session-history-of-browsing-contexts"><span class="secno">5.4.1 </span>The session history of browsing contexts</h4><p>The sequence of <code><a href="infrastructure.html#document">Document</a></code>s in a <a href="browsers.html#browsing-context">browsing
   context</a> is its <dfn id="session-history">session history</dfn>.</p><p><code><a href="#history-0">History</a></code> objects provide a representation of the
   pages in the session history of <a href="browsers.html#browsing-context" title="browsing&#10;  context">browsing contexts</a>. Each <a href="browsers.html#browsing-context">browsing
   context</a>, including <a href="browsers.html#nested-browsing-context" title="nested browsing&#10;  context">nested browsing contexts</a>, has a distinct session
@@ -385,7 +395,10 @@
   for the <a href="#dom-location-href" title="dom-location-href">location</a> of the
   <code><a href="infrastructure.html#document">Document</a></code>. However, it can also be one of the entries
   for <a href="#state-object" title="state object">state objects</a> added to the
-  history by that document.</p><p>Entries that consist of <a href="#state-object" title="state object">state
+  history by that document.</p><p><dfn id="an-entry-with-persisted-user-state">An entry with persisted user state</dfn> is one that also
+  has user-agent defined state. This specification does not specify
+  what kind of state can be stored.</p><p class="example">For example, some user agents might want to
+  persist the scroll position, or the values of form controls.</p><p>Entries that consist of <a href="#state-object" title="state object">state
   objects</a> share the same <code><a href="infrastructure.html#document">Document</a></code> as the entry for
   the page that was active when they were added.</p><p>Contiguous entries that differ just by fragment identifier also
   share the same <code><a href="infrastructure.html#document">Document</a></code>.</p><p class="note">All entries that share the same
@@ -407,7 +420,7 @@
   entries that shared the same <code><a href="infrastructure.html#document">Document</a></code> object with it
   must share the new object as well.</p>
 
-  </div><h4 id="the-history-interface"><span class="secno">5.4.2 </span>The <code><a href="#history-0">History</a></code> interface</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><pre class="idl">interface <dfn id="history-0">History</dfn> {
+  </div><h4 id="the-history-interface"><span class="secno">5.4.2 </span>The <code><a href="#history-0">History</a></code> interface</h4><pre class="idl">interface <dfn id="history-0">History</dfn> {
   readonly attribute long <a href="#dom-history-length" title="dom-history-length">length</a>;
   void <a href="#dom-history-go" title="dom-history-go">go</a>(in optional long delta);
   void <a href="#dom-history-back" title="dom-history-back">back</a>();
@@ -466,7 +479,7 @@
 
    <dd>
 
-    <p>Updates the current entry in the session histor to have the given data, title, and, if provided, URL.</p>
+    <p>Updates the current entry in the session history to have the given data, title, and, if provided, URL.</p>
 
    </dd>
 
@@ -614,6 +627,11 @@
      <li><p>Remove any <a href="webappapis.html#concept-task" title="concept-task">tasks</a> queued
      by the <a href="webappapis.html#history-traversal-task-source">history traversal task source</a>.</p></li>
 
+     <li><p>If appropriate, update the <a href="#current-entry">current entry</a> to
+     reflect any state that the user agent wishes to persist. The
+     entry is then said to be <a href="#an-entry-with-persisted-user-state">an entry with persisted user
+     state</a>.</p></li>
+
      <li><p>Add a state object entry to the session history, after the
      <a href="#current-entry">current entry</a>, with <var title="">cloned data</var> as
      the state object, the given <var title="">title</var> as the title,
@@ -750,7 +768,7 @@
 State: &lt;OUTPUT NAME=I&gt;1&lt;/OUTPUT&gt; &lt;INPUT VALUE="Increment" TYPE=BUTTON ONCLICK="inc()"&gt;
 &lt;/FORM&gt;</pre>
 
-  </div><h4 id="the-location-interface"><span class="secno">5.4.3 </span>The <code><a href="#location">Location</a></code> interface</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>Each <code><a href="infrastructure.html#document">Document</a></code> object in a <a href="browsers.html#browsing-context">browsing
+  </div><h4 id="the-location-interface"><span class="secno">5.4.3 </span>The <code><a href="#location">Location</a></code> interface</h4><p>Each <code><a href="infrastructure.html#document">Document</a></code> object in a <a href="browsers.html#browsing-context">browsing
   context</a>'s session history is associated with a unique
   instance of a <code><a href="#location">Location</a></code> object.</p><dl class="domintro"><dt><var title="">document</var> . <code title="dom-document-location"><a href="#dom-document-location">location</a></code> [ = <var title="">value</var> ]</dt>
    <dt><var title="">window</var> . <code title="dom-location"><a href="#dom-location">location</a></code> [ = <var title="">value</var> ]</dt>
@@ -959,7 +977,7 @@
 
   </li></ul></div><div class="impl">
 
-  <h4 id="history-notes"><span class="secno">5.4.4 </span>Implementation notes for session history</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="history-notes"><span class="secno">5.4.4 </span>Implementation notes for session history</h4>
   <!-- don't change the ID without updating multiple internal links -->
 
   <p><i>This section is non-normative.</i></p>
@@ -995,9 +1013,9 @@
   a timer, or from event listeners that are not triggered in response
   to a clear user action, or that are invoked in rapid succession.</p>
 
-  </div><h3 id="browsing-the-web"><span class="secno">5.5 </span>Browsing the Web</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><div class="impl">
+  </div><h3 id="browsing-the-web"><span class="secno">5.5 </span>Browsing the Web</h3><div class="impl">
 
-  <h4 id="navigating-across-documents"><span class="secno">5.5.1 </span>Navigating across documents</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="navigating-across-documents"><span class="secno">5.5.1 </span>Navigating across documents</h4>
 
   <p>Certain actions cause the <a href="browsers.html#browsing-context">browsing context</a> to
   <i><a href="#navigate">navigate</a></i> to a new resource. Navigation always involves
@@ -1475,7 +1493,7 @@
   source</a>.</p>
 
 
-  <h4 id="read-html"><span class="secno">5.5.2 </span><dfn title="navigate-html">Page load processing model for HTML files</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="read-html"><span class="secno">5.5.2 </span><dfn title="navigate-html">Page load processing model for HTML files</dfn></h4>
 
   <p>When an HTML document is to be loaded in a <a href="browsers.html#browsing-context">browsing
   context</a>, the user agent must <a href="webappapis.html#queue-a-task">queue a task</a> to
@@ -1515,7 +1533,7 @@
 
 
 
-  <h4 id="read-xml"><span class="secno">5.5.3 </span><dfn title="navigate-xml">Page load processing model for XML files</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="read-xml"><span class="secno">5.5.3 </span><dfn title="navigate-xml">Page load processing model for XML files</dfn></h4>
 
   <p>When faced with displaying an XML file inline, user agents must
   first <a href="#create-a-document-object">create a <code>Document</code> object</a>, following
@@ -1572,7 +1590,7 @@
   <code><a href="infrastructure.html#document">Document</a></code>.</p>
 
 
-  <h4 id="read-text"><span class="secno">5.5.4 </span><dfn title="navigate-text">Page load processing model for text files</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Implemented and widely deployed</i></p>
+  <h4 id="read-text"><span class="secno">5.5.4 </span><dfn title="navigate-text">Page load processing model for text files</dfn></h4>
 
   <p>When a plain text document is to be loaded in a <a href="browsers.html#browsing-context">browsing
   context</a>, the user agent should <a href="webappapis.html#queue-a-task">queue a task</a> to
@@ -1590,8 +1608,9 @@
   of the input stream.</p>
 
   <p>The rules for how to convert the bytes of the plain text document
-  into actual characters are defined in RFC 2046, RFC 2646, and
-  subsequent versions thereof. <a href="references.html#refsRFC2046">[RFC2046]</a> <a href="references.html#refsRFC2646">[RFC2646]</a></p>
+  into actual characters, and the rules for actually rendering the
+  text to the user, are defined in RFC 2046, RFC 2646, and subsequent
+  versions thereof. <a href="references.html#refsRFC2046">[RFC2046]</a> <a href="references.html#refsRFC2646">[RFC2646]</a></p>
 
   <p>The <a href="dom.html#document-s-character-encoding">document's character encoding</a> must be set to the
   character encoding used to decode the document.</p>
@@ -1620,11 +1639,16 @@
   binding, providing script, giving the document a <code><a href="semantics.html#the-title-element-0">title</a></code>,
   etc.</p>
 
+  <p class="note">In particular, if the user agent supports the <code title="">Format=Flowed</code> feature of RFC 2646 then the user
+  agent would need to apply extra styling to cause the text to wrap
+  correctly and to handle the quoting feature. This could be performed
+  using, e.g., an XBL binding or a CSS extension.</p>
+
   <p>The <a href="webappapis.html#task-source">task source</a> for the two tasks mentioned in this
   section must be the <a href="webappapis.html#networking-task-source">networking task source</a>.</p>
 
 
-  <h4 id="read-image"><span class="secno">5.5.5 </span><dfn title="navigate-image">Page load processing model for images</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="read-image"><span class="secno">5.5.5 </span><dfn title="navigate-image">Page load processing model for images</dfn></h4>
 
   <p>When an image resource is to be loaded in a <a href="browsers.html#browsing-context">browsing
   context</a>, the user agent should <a href="#create-a-document-object">create a
@@ -1655,7 +1679,7 @@
   a script, to give the document a <code><a href="semantics.html#the-title-element-0">title</a></code>, etc.</p>
 
 
-  <h4 id="read-plugin"><span class="secno">5.5.6 </span><dfn title="navigate-plugin">Page load processing model for content that uses plugins</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="read-plugin"><span class="secno">5.5.6 </span><dfn title="navigate-plugin">Page load processing model for content that uses plugins</dfn></h4>
 
   <p>When a resource that requires an external resource to be rendered
   is to be loaded in a <a href="browsers.html#browsing-context">browsing context</a>, the user agent
@@ -1692,7 +1716,7 @@
   synthesized <code><a href="the-iframe-element.html#the-embed-element">embed</a></code> element will <a href="the-iframe-element.html#sandboxPluginEmbed">fail to render the content</a>.</p>
 
 
-  <h4 id="read-ua-inline"><span class="secno">5.5.7 </span><dfn title="navigate-ua-inline">Page load processing model for inline content that doesn't have a DOM</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="read-ua-inline"><span class="secno">5.5.7 </span><dfn title="navigate-ua-inline">Page load processing model for inline content that doesn't have a DOM</dfn></h4>
 
   <p>When the user agent is to display a user agent page inline in a
   <a href="browsers.html#browsing-context">browsing context</a>, the user agent should <a href="#create-a-document-object">create a
@@ -1719,7 +1743,7 @@
 
 
 
-  <h4 id="scroll-to-fragid"><span class="secno">5.5.8 </span><dfn title="navigate-fragid">Navigating to a fragment identifier</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="scroll-to-fragid"><span class="secno">5.5.8 </span><dfn title="navigate-fragid">Navigating to a fragment identifier</dfn></h4>
 
   <p>When a user agent is supposed to navigate to a fragment
   identifier, then the user agent must <a href="webappapis.html#queue-a-task">queue a task</a> to
@@ -1757,10 +1781,11 @@
 
   <hr/><p>When the user agent is required to <dfn id="scroll-to-the-fragment-identifier">scroll to the fragment
   identifier</dfn>, it must change the scrolling position of the
-  document, or perform some other action, such that <a href="#the-indicated-part-of-the-document">the
-  indicated part of the document</a> is brought to the user's
-  attention. If there is no indicated part, then the user agent must
-  not scroll anywhere.</p>
+  document using the <span>scroll an element into view</span>
+  algorithm defined in the CSSOM View specification, or perform some
+  other action, such that <a href="#the-indicated-part-of-the-document">the indicated part of the
+  document</a> is brought to the user's attention. If there is no
+  indicated part, then the user agent must not scroll anywhere. <a href="references.html#refsCSSOMVIEW">[CSSOMVIEW]</a></p>
 
   <p><dfn id="the-indicated-part-of-the-document">The indicated part of the document</dfn> is the one that the
   fragment identifier, if any, identifies. The semantics of the
@@ -1814,7 +1839,7 @@
   document</a>, if that is an element; otherwise there is no
   <i><a href="#target-element">target element</a></i>. <a href="references.html#refsSELECTORS">[SELECTORS]</a></p>
 
-  </div><h4 id="history-traversal"><span class="secno">5.5.9 </span>History traversal</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><!-- session history --><div class="impl">
+  </div><h4 id="history-traversal"><span class="secno">5.5.9 </span>History traversal</h4><!-- session history --><div class="impl">
 
   <p>When a user agent is required to <dfn id="traverse-the-history">traverse the history</dfn>
   to a <i>specified entry</i>, optionally with <a href="#replacement-enabled">replacement
@@ -1843,18 +1868,11 @@
    then set its title to the value returned by the <code title="dom-document-title"><a href="dom.html#document.title">document.title</a></code> IDL
    attribute.</p></li>
 
-   <li>
-
-    <p>If appropriate, update the <a href="#current-entry">current entry</a> in the
-    <a href="browsers.html#browsing-context">browsing context</a>'s <code><a href="infrastructure.html#document">Document</a></code> object's
-    <code><a href="#history-0">History</a></code> object to reflect any state that the user
-    agent wishes to persist. The entry is then said to be <dfn id="an-entry-with-persisted-user-state">an
-    entry with persisted user state</dfn>.</p>
-
-    <p class="example">For example, some user agents might want to
-    persist the scroll position, or the values of form controls.</p>
-
-   </li>
+   <li><p>If appropriate, update the <a href="#current-entry">current entry</a> in the
+   <a href="browsers.html#browsing-context">browsing context</a>'s <code><a href="infrastructure.html#document">Document</a></code> object's
+   <code><a href="#history-0">History</a></code> object to reflect any state that the user
+   agent wishes to persist. The entry is then said to be <a href="#an-entry-with-persisted-user-state">an
+   entry with persisted user state</a>.</p></li>
 
    <li><p>If the <i>specified entry</i> has a different
    <code><a href="infrastructure.html#document">Document</a></code> object than the <a href="#current-entry">current entry</a>
@@ -1920,13 +1938,12 @@
    <li><p>Set <a href="dom.html#the-document-s-current-address">the document's current address</a> to the URL
    of the <i>specified entry</i>.</p></li>
 
-   <li><p>If the <i>specified entry</i> has a URL that differs from
-   the <a href="#current-entry">current entry</a>'s only by its fragment identifier,
-   and the two share the same <code><a href="infrastructure.html#document">Document</a></code> object, then let
-   <var title="">hash changed</var> be true, and let <var title="">old
-   URL</var> be the URL of the <a href="#current-entry">current entry</a> and <var title="">new URL</var> be the URL of the <i>specified
-   entry</i>. Otherwise, let <var title="">hash changed</var> be
-   false.</p></li>
+   <li><p>If the <i>specified entry</i> has a URL whose fragment
+   identifier differs from that of the <a href="#current-entry">current entry</a>'s
+   when compared in a <a href="infrastructure.html#case-sensitive">case-sensitive</a> manner, and the two
+   share the same <code><a href="infrastructure.html#document">Document</a></code> object, then let <var title="">hash changed</var> be true, and let <var title="">old
+   URL</var> be the URL of the <a href="#current-entry">current entry</a> and <var title="">new URL</var> be the URL of the <i>specified entry</i>.
+   Otherwise, let <var title="">hash changed</var> be false.</p></li>
 
    <li><p>If the traversal was initiated with <dfn id="replacement-enabled">replacement
    enabled</dfn>, remove the entry immediately before the
@@ -1987,7 +2004,7 @@
   <a href="webappapis.html#dom-manipulation-task-source">DOM manipulation task source</a>.</p>
 
 
-  <h5 id="event-definitions"><span class="secno">5.5.9.1 </span>Event definitions</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="event-definitions"><span class="secno">5.5.9.1 </span>Event definitions</h5>
 
   </div><p>The <dfn id="event-popstate" title="event-popstate"><code>popstate</code></dfn> event
   is fired in certain cases when navigating to a <a href="#session-history-entry">session history
@@ -2079,7 +2096,7 @@
   <p>The <dfn id="dom-pagetransitionevent-persisted" title="dom-PageTransitionEvent-persisted"><code>persisted</code></dfn>
   attribute represents the context information for the event.</p>
 
-  </div><h4 id="unloading-documents"><span class="secno">5.5.10 </span>Unloading documents</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><div class="impl">
+  </div><h4 id="unloading-documents"><span class="secno">5.5.10 </span>Unloading documents</h4><div class="impl">
 
   <p>A <code><a href="infrastructure.html#document">Document</a></code> has a <var title="concept-document-salvageable">salvageable</var> state, which
   is initially true.</p>
@@ -2237,7 +2254,7 @@
    <a href="timers.html#list-of-active-timeouts">list of active timeouts</a> and its <a href="timers.html#list-of-active-intervals">list of active
    intervals</a>.</p></li>
 
-  </ol><h5 id="event-definition"><span class="secno">5.5.10.1 </span>Event definition</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  </ol><h5 id="event-definition"><span class="secno">5.5.10.1 </span>Event definition</h5>
 
   </div><pre class="idl">interface <dfn id="beforeunloadevent">BeforeUnloadEvent</dfn> : <a href="infrastructure.html#event">Event</a> {
            attribute DOMString <a href="#dom-beforeunloadevent-returnvalue" title="dom-BeforeUnloadEvent-returnValue">returnValue</a>;
@@ -2262,7 +2279,7 @@
 
   </div><div class="impl">
 
-  <h4 id="aborting-a-document-load"><span class="secno">5.5.11 </span>Aborting a document load</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="aborting-a-document-load"><span class="secno">5.5.11 </span>Aborting a document load</h4>
 
   <p>If the user cancels any instance of the <a href="fetching-resources.html#fetch" title="fetch">fetching algorithm</a> in the context of a
   <code><a href="infrastructure.html#document">Document</a></code> in a <a href="browsers.html#browsing-context">browsing context</a>, then, if

Index: common-dom-interfaces.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/common-dom-interfaces.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- common-dom-interfaces.html	28 Aug 2010 23:52:52 -0000	1.1
+++ common-dom-interfaces.html	19 Oct 2010 17:38:06 -0000	1.2
@@ -1,7 +1,7 @@
 <?xml version="1.0" standalone="yes"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "">
 <!-- when publishing, change bits marked ZZZ -->
-<html lang="en-US-x-Hixie" class="split chapter"><head><title>2.7 Common DOM interfaces &#x2014; HTML5 </title><style type="text/css"><![CDATA[
+<html lang="en-US-x-Hixie" class="split chapter"><head><title>2.8 Common DOM interfaces &#x2014; HTML5 </title><style type="text/css"><![CDATA[
    pre { margin-left: 2em; white-space: pre-wrap; }
    h2 { margin: 3em 0 1em 0; }
    h3 { margin: 2.5em 0 1em 0; }
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -309,17 +319,17 @@
        document.getElementsByTagName('h2')[0].textContent += '; load: ' + (new Date() - loadTimer) + 'ms';
      fixBrokenLink();
    }
-  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="fetching-resources.html" title="2.6 Fetching resources" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="namespaces.html" title="2.8 Namespaces" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
+  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="fetching-resources.html" title="2.7 Fetching resources" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="namespaces.html" title="2.9 Namespaces" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
    <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"/></a></p>
 
    <h1>HTML5</h1>
    </div><div>
-   <a href="fetching-resources.html">&#x2190; 2.6 Fetching resources</a> &#x2013;
+   <a href="fetching-resources.html">&#x2190; 2.7 Fetching resources</a> &#x2013;
    <a href="spec.html#contents">Table of contents</a> &#x2013;
-   <a href="namespaces.html">2.8 Namespaces &#x2192;</a>
-  <ol class="toc"><li><ol><li><a href="common-dom-interfaces.html#common-dom-interfaces"><span class="secno">2.7 </span>Common DOM interfaces</a>
-    <ol><li><a href="common-dom-interfaces.html#reflecting-content-attributes-in-idl-attributes"><span class="secno">2.7.1 </span>Reflecting content attributes in IDL attributes</a></li><li><a href="common-dom-interfaces.html#collections-0"><span class="secno">2.7.2 </span>Collections</a>
-      <ol><li><a href="common-dom-interfaces.html#htmlcollection-0"><span class="secno">2.7.2.1 </span>HTMLCollection</a></li><li><a href="common-dom-interfaces.html#htmlallcollection-0"><span class="secno">2.7.2.2 </span>HTMLAllCollection</a></li><li><a href="common-dom-interfaces.html#htmlformcontrolscollection-0"><span class="secno">2.7.2.3 </span>HTMLFormControlsCollection</a></li><li><a href="common-dom-interfaces.html#htmloptionscollection-0"><span class="secno">2.7.2.4 </span>HTMLOptionsCollection</a></li></ol></li><li><a href="common-dom-interfaces.html#domtokenlist-0"><span class="secno">2.7.3 </span>DOMTokenList</a></li><li><a href="common-dom-interfaces.html#domsettabletokenlist-0"><span class="secno">2.7.4 </span>DOMSettableTokenList</a></li><li><a href="common-dom-interfaces.html#safe-passing-of-structured-data"><span class="secno">2.7.5 </span>Safe passing of structured data</a></li><li><a href="common-dom-interfaces.html#domstringmap-0"><span class="secno">2.7.6 </span>DOMStringMap</a></li><li><a href="common-dom-interfaces.html#dom-feature-strings"><span class="secno">2.7.7 </span>DOM feature strings</a></li><li><a href="common-dom-interfaces.html#exceptions"><span class="secno">2.7.8 </span>Exceptions</a></li><li><a href="common-dom-interfaces.html#garbage-collection"><span class="secno">2.7.9 </span>Garbage collection</a></li></ol></li></ol></li></ol></div><h3 id="common-dom-interfaces"><span class="secno">2.7 </span>Common DOM interfaces</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><h4 id="reflecting-content-attributes-in-idl-attributes"><span class="secno">2.7.1 </span>Reflecting content attributes in IDL attributes</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>Some IDL attributes are defined to <dfn id="reflect">reflect</dfn> a
+   <a href="namespaces.html">2.9 Namespaces &#x2192;</a>
+  <ol class="toc"><li><ol><li><a href="common-dom-interfaces.html#common-dom-interfaces"><span class="secno">2.8 </span>Common DOM interfaces</a>
+    <ol><li><a href="common-dom-interfaces.html#reflecting-content-attributes-in-idl-attributes"><span class="secno">2.8.1 </span>Reflecting content attributes in IDL attributes</a></li><li><a href="common-dom-interfaces.html#collections-0"><span class="secno">2.8.2 </span>Collections</a>
+      <ol><li><a href="common-dom-interfaces.html#htmlcollection-0"><span class="secno">2.8.2.1 </span>HTMLCollection</a></li><li><a href="common-dom-interfaces.html#htmlallcollection-0"><span class="secno">2.8.2.2 </span>HTMLAllCollection</a></li><li><a href="common-dom-interfaces.html#htmlformcontrolscollection-0"><span class="secno">2.8.2.3 </span>HTMLFormControlsCollection</a></li><li><a href="common-dom-interfaces.html#htmloptionscollection-0"><span class="secno">2.8.2.4 </span>HTMLOptionsCollection</a></li></ol></li><li><a href="common-dom-interfaces.html#domtokenlist-0"><span class="secno">2.8.3 </span>DOMTokenList</a></li><li><a href="common-dom-interfaces.html#domsettabletokenlist-0"><span class="secno">2.8.4 </span>DOMSettableTokenList</a></li><li><a href="common-dom-interfaces.html#safe-passing-of-structured-data"><span class="secno">2.8.5 </span>Safe passing of structured data</a></li><li><a href="common-dom-interfaces.html#domstringmap-0"><span class="secno">2.8.6 </span>DOMStringMap</a></li><li><a href="common-dom-interfaces.html#dom-feature-strings"><span class="secno">2.8.7 </span>DOM feature strings</a></li><li><a href="common-dom-interfaces.html#exceptions"><span class="secno">2.8.8 </span>Exceptions</a></li><li><a href="common-dom-interfaces.html#garbage-collection"><span class="secno">2.8.9 </span>Garbage collection</a></li></ol></li></ol></li></ol></div><h3 id="common-dom-interfaces"><span class="secno">2.8 </span>Common DOM interfaces</h3><h4 id="reflecting-content-attributes-in-idl-attributes"><span class="secno">2.8.1 </span>Reflecting content attributes in IDL attributes</h4><p>Some IDL attributes are defined to <dfn id="reflect">reflect</dfn> a
   particular content attribute. This means that on getting, the IDL
   attribute returns the current value of the content attribute, and on
   setting, the IDL attribute changes the value of the content
@@ -362,14 +372,8 @@
   getting, the IDL attribute must return the conforming value
   associated with the state the attribute is in (in its canonical
   case), or the empty string if the attribute is in a state that has
-  no associated keyword value; and on setting, if the new value is an
-  <a href="infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a> match for one of the keywords
-  given for that attribute, then the content attribute must be set to
-  the conforming value associated with the state that the attribute
-  would be in if set to the given new value, otherwise, if the new
-  value is the empty string, then the content attribute must be
-  removed, otherwise, the content attribute must be set to the given
-  new value.</p>
+  no associated keyword value; and on setting, the content attribute
+  must be set to the specified new value.</p>
 
   <p>If a reflecting IDL attribute is a <code>DOMString</code> but
   doesn't fall into any of the above categories, then the getting and
@@ -413,14 +417,18 @@
   type (<code>unsigned long</code>) then, on getting, the content
   attribute must be parsed according to the <a href="common-microsyntaxes.html#rules-for-parsing-non-negative-integers">rules for parsing
   non-negative integers</a>, and if that is successful, and the
-  value is in the range of the IDL attribute's type, the resulting
-  value must be returned. If, on the other hand, it fails or returns
-  an out of range value, or if the attribute is absent, the default
-  value must be returned instead, or 0 if there is no default
-  value. On setting, the given value must be converted to the shortest
-  possible string representing the number as a <a href="common-microsyntaxes.html#valid-non-negative-integer">valid
-  non-negative integer</a> and then that string must be used as the
-  new content attribute value.</p>
+  value is in the range 0 to 2147483647 inclusive, the resulting value
+  must be returned. If, on the other hand, it fails or returns an out
+  of range value, or if the attribute is absent, the default value
+  must be returned instead, or 0 if there is no default value. On
+  setting, the given value must be converted to the shortest possible
+  string representing the number as a <a href="common-microsyntaxes.html#valid-non-negative-integer">valid non-negative
+  integer</a> and then that string must be used as the new content
+  attribute value.</p>
+  <!-- see http://www.w3.org/Bugs/Public/show_bug.cgi?id=10352 and
+  https://bugzilla.mozilla.org/show_bug.cgi?id=586118 for why the
+  range is clamped to 2147483647 rather the normal unsigned long
+  maximum value of 4294967295 -->
 
   <p>If a reflecting IDL attribute is an unsigned integer type
   (<code>unsigned long</code>) that is <dfn id="limited-to-only-non-negative-numbers-greater-than-zero">limited to only
@@ -428,16 +436,16 @@
   similar to the previous case, but zero is not allowed. On getting,
   the content attribute must first be parsed according to the
   <a href="common-microsyntaxes.html#rules-for-parsing-non-negative-integers">rules for parsing non-negative integers</a>, and if that is
-  successful, and the value is in the range of the IDL attribute's
-  type, the resulting value must be returned. If, on the other hand,
-  it fails or returns an out of range value, or if the attribute is
+  successful, and the value is in the range 1 to 2147483647 inclusive,
+  the resulting value must be returned. If, on the other hand, it
+  fails or returns an out of range value, or if the attribute is
   absent, the default value must be returned instead, or 1 if there is
   no default value. On setting, if the value is zero, the user agent
   must fire an <code><a href="#index_size_err">INDEX_SIZE_ERR</a></code> exception. Otherwise, the
   given value must be converted to the shortest possible string
   representing the number as a <a href="common-microsyntaxes.html#valid-non-negative-integer">valid non-negative integer</a>
   and then that string must be used as the new content attribute
-  value.</p>
+  value.</p> <!-- see previous paragraph for note about the range -->
 
   <p>If a reflecting IDL attribute is a floating point number type
   (<code>double</code>), then, on getting, the content attribute must
@@ -506,10 +514,10 @@
   attribute. Otherwise, the IDL attribute must be set to the empty
   string.</p>
 
-  </div><h4 id="collections-0"><span class="secno">2.7.2 </span>Collections</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href="#htmlcollection">HTMLCollection</a></code>, <code><a href="#htmlallcollection">HTMLAllCollection</a></code>,
+  </div><h4 id="collections-0"><span class="secno">2.8.2 </span>Collections</h4><p>The <code><a href="#htmlcollection">HTMLCollection</a></code>, <code><a href="#htmlallcollection">HTMLAllCollection</a></code>,
   <code><a href="#htmlformcontrolscollection">HTMLFormControlsCollection</a></code>,
-  <code><a href="#htmloptionscollection">HTMLOptionsCollection</a></code>, and
-  <code>HTMLPropertiesCollection</code> interfaces represent various
+  <code><a href="#htmloptionscollection">HTMLOptionsCollection</a></code>,
+  interfaces represent various
   lists of DOM nodes. Collectively, objects implementing these
   interfaces are called <dfn id="collections">collections</dfn>.</p><p>When a <a href="#collections" title="collections">collection</a> is created, a
   filter and a root are associated with the collection.</p><p class="example">For example, when the <code><a href="#htmlcollection">HTMLCollection</a></code>
@@ -529,10 +537,10 @@
   <p>An attribute that returns a collection must return the same
   object every time it is retrieved.</p>
 
-  </div><h5 id="htmlcollection-0"><span class="secno">2.7.2.1 </span>HTMLCollection</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href="#htmlcollection">HTMLCollection</a></code> interface represents a generic
+  </div><h5 id="htmlcollection-0"><span class="secno">2.8.2.1 </span>HTMLCollection</h5><p>The <code><a href="#htmlcollection">HTMLCollection</a></code> interface represents a generic
   <a href="#collections" title="collections">collection</a> of elements.</p><pre class="idl">interface <dfn id="htmlcollection">HTMLCollection</dfn> {
   readonly attribute unsigned long <a href="#dom-htmlcollection-length" title="dom-HTMLCollection-length">length</a>;
-  caller getter object <a href="#dom-htmlcollection-item" title="dom-HTMLCollection-item">item</a>(in unsigned long index); // only returns Element
+  caller getter <a href="infrastructure.html#element">Element</a> <a href="#dom-htmlcollection-item" title="dom-HTMLCollection-item">item</a>(in unsigned long index);
   caller getter object <a href="#dom-htmlcollection-nameditem" title="dom-HTMLCollection-namedItem">namedItem</a>(in DOMString name); // only returns Element
 };</pre><dl class="domintro"><dt><var title="">collection</var> . <code title="dom-HTMLCollection-length"><a href="#dom-htmlcollection-length">length</a></code></dt>
    <dd>
@@ -562,11 +570,11 @@
    </dd>
   </dl><div class="impl">
 
-  <p>The object's <span>indices of the supported indexed
-  properties</span> are the numbers in the range zero to one less than
-  the number of nodes <a href="#represented-by-the-collection">represented by the collection</a>. If
-  there are no such elements, then there are no <span>supported
-  indexed properties</span>.</p>
+  <p>The object's <a href="infrastructure.html#supported-property-indices">supported property indices</a> are the
+  numbers in the range zero to one less than the number of nodes
+  <a href="#represented-by-the-collection">represented by the collection</a>. If there are no such
+  elements, then there are no <a href="infrastructure.html#supported-property-indices">supported property
+  indices</a>.</p>
 
   <p>The <dfn id="dom-htmlcollection-length" title="dom-HTMLCollection-length"><code>length</code></dfn>
   attribute must return the number of nodes <a href="#represented-by-the-collection">represented by the
@@ -575,7 +583,7 @@
   <p>The <dfn id="dom-htmlcollection-item" title="dom-HTMLCollection-item"><code>item(<var title="">index</var>)</code></dfn> method must return the <var title="">index</var>th node in the collection. If there is no <var title="">index</var>th node in the collection, then the method must
   return null.</p>
 
-  <p>The <span>names of the supported named properties</span> consist
+  <p>The <a href="infrastructure.html#supported-property-names">supported property names</a> consist
   of the values of the <code title="">name</code> attributes of each
   <code><a href="text-level-semantics.html#the-a-element">a</a></code>, <code><a href="obsolete.html#the-applet-element">applet</a></code>, <code><a href="the-map-element.html#the-area-element">area</a></code>,
   <code><a href="the-iframe-element.html#the-embed-element">embed</a></code>, <code><a href="forms.html#the-form-element">form</a></code>, <code><a href="obsolete.html#frame">frame</a></code>,
@@ -600,10 +608,10 @@
   </ul><p>If no such elements are found, then the method must return
   null.</p>
 
-  </div><h5 id="htmlallcollection-0"><span class="secno">2.7.2.2 </span>HTMLAllCollection</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href="#htmlallcollection">HTMLAllCollection</a></code> interface represents a generic
+  </div><h5 id="htmlallcollection-0"><span class="secno">2.8.2.2 </span>HTMLAllCollection</h5><p>The <code><a href="#htmlallcollection">HTMLAllCollection</a></code> interface represents a generic
   <a href="#collections" title="collections">collection</a> of elements just like
   <code><a href="#htmlcollection">HTMLCollection</a></code>, with the exception that its <code title="dom-HTMLAllCollection-namedItem"><a href="#dom-htmlallcollection-nameditem">namedItem()</a></code> method
-  returns an <code><a href="#htmlcollection">HTMLCollection</a></code> object when there are
+  returns an <code><a href="#htmlallcollection">HTMLAllCollection</a></code> object when there are
   multiple matching elements.</p><pre class="idl">interface <dfn id="htmlallcollection">HTMLAllCollection</dfn> : <a href="#htmlcollection">HTMLCollection</a> {
   // inherits <a href="#dom-htmlcollection-length" title="dom-HTMLCollection-length">length</a> and <a href="#dom-htmlcollection-item" title="dom-HTMLCollection-item">item</a>()
   caller getter object <a href="#dom-htmlallcollection-nameditem" title="dom-HTMLAllCollection-namedItem">namedItem</a>(in DOMString name); // overrides inherited namedItem()
@@ -643,10 +651,9 @@
 
   </dl><div class="impl">
 
-  <p>The object's <span>indices of the supported indexed
-  properties</span> and <span>names of the supported named
-  properties</span> are as defined for <code><a href="#htmlcollection">HTMLCollection</a></code>
-  objects.</p>
+  <p>The object's <a href="infrastructure.html#supported-property-indices">supported property indices</a> and
+  <a href="infrastructure.html#supported-property-names">supported property names</a> are as defined for
+  <code><a href="#htmlcollection">HTMLCollection</a></code> objects.</p>
 
   <p>The <dfn id="dom-htmlallcollection-nameditem" title="dom-HTMLAllCollection-namedItem"><code>namedItem(<var title="">key</var>)</code></dfn> method must act according to the
   following algorithm:</p>
@@ -656,7 +663,7 @@
     <p>Let <var title="">collection</var> be an
     <code><a href="#htmlallcollection">HTMLAllCollection</a></code> object rooted at the same node as
     the <code><a href="#htmlallcollection">HTMLAllCollection</a></code> object on which the method was
-    invoked, whose filter matches only only elements that already
+    invoked, whose filter matches only elements that already
     match the filter of the <code><a href="#htmlallcollection">HTMLAllCollection</a></code> object on
     which the method was invoked and that are either:</p>
 
@@ -690,7 +697,7 @@
   documents</a>, the argument must first be <a href="infrastructure.html#converted-to-ascii-lowercase">converted to
   ASCII lowercase</a>.</p>
 
-  </div><h5 id="htmlformcontrolscollection-0"><span class="secno">2.7.2.3 </span>HTMLFormControlsCollection</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href="#htmlformcontrolscollection">HTMLFormControlsCollection</a></code> interface represents
+  </div><h5 id="htmlformcontrolscollection-0"><span class="secno">2.8.2.3 </span>HTMLFormControlsCollection</h5><p>The <code><a href="#htmlformcontrolscollection">HTMLFormControlsCollection</a></code> interface represents
   a <a href="#collections" title="collections">collection</a> of <a href="forms.html#category-listed" title="category-listed">listed elements</a> in <code><a href="forms.html#the-form-element">form</a></code>
   and <code><a href="forms.html#the-fieldset-element">fieldset</a></code> elements.</p><pre class="idl">interface <dfn id="htmlformcontrolscollection">HTMLFormControlsCollection</dfn> : <a href="#htmlcollection">HTMLCollection</a> {
   // inherits <a href="#dom-htmlcollection-length" title="dom-HTMLCollection-length">length</a> and <a href="#dom-htmlcollection-item" title="dom-HTMLCollection-item">item</a>()
@@ -730,12 +737,11 @@
 
   </dl><div class="impl">
 
-  <p>The object's <span>indices of the supported indexed
-  properties</span> are as defined for <code><a href="#htmlcollection">HTMLCollection</a></code>
-  objects.</p>
+  <p>The object's <a href="infrastructure.html#supported-property-indices">supported property indices</a> are as
+  defined for <code><a href="#htmlcollection">HTMLCollection</a></code> objects.</p>
 
-  <p>The <span>names of the supported named properties</span> consist
-  of the values of all the <code title="attr-id"><a href="elements.html#the-id-attribute">id</a></code> and <code title="attr-fe-name"><a href="association-of-controls-and-forms.html#attr-fe-name">name</a></code> attributes of all the elements
+  <p>The <a href="infrastructure.html#supported-property-names">supported property names</a> consist of the values
+  of all the <code title="attr-id"><a href="elements.html#the-id-attribute">id</a></code> and <code title="attr-fe-name"><a href="association-of-controls-and-forms.html#attr-fe-name">name</a></code> attributes of all the elements
   <a href="#represented-by-the-collection">represented by the collection</a>.</p>
 
   <p>The <dfn id="dom-htmlformcontrolscollection-nameditem" title="dom-HTMLFormControlsCollection-namedItem"><code>namedItem(<var title="">name</var>)</code></dfn> method must act according to the
@@ -798,7 +804,7 @@
 
   </li></ol><!--
 http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E...%0A%3Cform%20name%3D%22a%22%3E%3Cinput%20id%3D%22x%22%20name%3D%22y%22%3E%3Cinput%20name%3D%22x%22%20id%3D%22y%22%3E%3C/form%3E%0A%3Cscript%3E%0A%20%20var%20x%3B%0A%20%20w%28x%20%3D%20document.forms%5B%27a%27%5D%5B%27x%27%5D%29%3B%0A%20%20w%28x.length%29%3B%0A%20%20x%5B0%5D.parentNode.removeChild%28x%5B0%5D%29%3B%0A%20%20w%28x.length%29%3B%0A%20%20w%28x%20%3D%3D%20document.forms%5B%27a%27%5D%5B%27x%27%5D%29%3B%0A%3C/script%3E%0A
---></div><h5 id="htmloptionscollection-0"><span class="secno">2.7.2.4 </span>HTMLOptionsCollection</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href="#htmloptionscollection">HTMLOptionsCollection</a></code> interface represents a
+--></div><h5 id="htmloptionscollection-0"><span class="secno">2.8.2.4 </span>HTMLOptionsCollection</h5><p>The <code><a href="#htmloptionscollection">HTMLOptionsCollection</a></code> interface represents a
   list of <code><a href="the-button-element.html#the-option-element">option</a></code> elements. It is always rooted on a
   <code><a href="the-button-element.html#the-select-element">select</a></code> element and has attributes and methods that
   manipulate that element's descendants.</p><pre class="idl">interface <dfn id="htmloptionscollection">HTMLOptionsCollection</dfn> : <a href="#htmlcollection">HTMLCollection</a> {
@@ -808,6 +814,7 @@
   void <a href="#dom-htmloptionscollection-add" title="dom-HTMLOptionsCollection-add">add</a>(in <a href="elements.html#htmlelement">HTMLElement</a> element, in optional <a href="elements.html#htmlelement">HTMLElement</a> before);
   void <a href="#dom-htmloptionscollection-add" title="dom-HTMLOptionsCollection-add">add</a>(in <a href="elements.html#htmlelement">HTMLElement</a> element, in long before);
   void <a href="#dom-htmloptionscollection-remove" title="dom-HTMLOptionsCollection-remove">remove</a>(in long index);
+           attribute long <a href="#dom-htmloptionscollection-selectedindex" title="dom-HTMLOptionsCollection-selectedIndex">selectedIndex</a>;
 };</pre><dl class="domintro"><dt><var title="">collection</var> . <code title="dom-HTMLOptionsCollection-length"><a href="#dom-htmloptionscollection-length">length</a></code> [ = <var title="">value</var> ]</dt>
    <dd>
     <p>Returns the number of elements in the collection.</p>
@@ -849,11 +856,21 @@
     <code><a href="the-button-element.html#the-optgroup-element">optgroup</a></code> element, then the method does nothing.</p>
    </dd>
 
+   <dt><var title="">collection</var> . <code title="dom-HTMLOptionsCollection-selectedIndex"><a href="#dom-htmloptionscollection-selectedindex">selectedIndex</a></code> [ = <var title="">value</var> ]</dt>
+
+   <dd>
+
+    <p>Returns the index of the first selected item, if any, or
+    &#x2212;1 if there is no selected item.</p>
+
+    <p>Can be set, to change the selection.</p>
+
+   </dd>
+
   </dl><div class="impl">
 
-  <p>The object's <span>indices of the supported indexed
-  properties</span> are as defined for <code><a href="#htmlcollection">HTMLCollection</a></code>
-  objects.</p>
+  <p>The object's <a href="infrastructure.html#supported-property-indices">supported property indices</a> are as
+  defined for <code><a href="#htmlcollection">HTMLCollection</a></code> objects.</p>
 
   <p>On getting, the <dfn id="dom-htmloptionscollection-length" title="dom-HTMLOptionsCollection-length"><code>length</code></dfn>
   attribute must return the number of nodes <a href="#represented-by-the-collection">represented by the
@@ -879,8 +896,8 @@
   children to existing <code><a href="the-button-element.html#the-optgroup-element">optgroup</a></code> elements (though it can
   remove children from them).</p>
 
-  <p>The <span>names of the supported named properties</span> consist
-  of the values of all the <code title="attr-id"><a href="elements.html#the-id-attribute">id</a></code> and <code title="attr-option-name"><a href="obsolete.html#attr-option-name">name</a></code> attributes of all the elements
+  <p>The <a href="infrastructure.html#supported-property-names">supported property names</a> consist of the values
+  of all the <code title="attr-id"><a href="elements.html#the-id-attribute">id</a></code> and <code title="attr-option-name"><a href="obsolete.html#attr-option-name">name</a></code> attributes of all the elements
   <a href="#represented-by-the-collection">represented by the collection</a>.</p>
 
   <p>The <dfn id="dom-htmloptionscollection-nameditem" title="dom-HTMLOptionsCollection-namedItem"><code>namedItem(<var title="">name</var>)</code></dfn> method must act according to the
@@ -947,7 +964,14 @@
    <li><p>Remove <var title="">element</var> from its parent
    node.</p></li>
 
-  </ol><!-- see also http://ln.hixie.ch/?start=1161042744&count=1 --></div><h4 id="domtokenlist-0"><span class="secno">2.7.3 </span>DOMTokenList</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href="#domtokenlist">DOMTokenList</a></code> interface represents an interface
+  </ol><p>The <dfn id="dom-htmloptionscollection-selectedindex" title="dom-HTMLOptionsCollection-selectedIndex"><code>selectedIndex</code></dfn>
+  IDL attribute must act like the identically named attribute on the
+  <code><a href="the-button-element.html#the-select-element">select</a></code> element on which the
+  <code><a href="#htmloptionscollection">HTMLOptionsCollection</a></code> is rooted</p>
+
+  <!-- see also http://ln.hixie.ch/?start=1161042744&count=1 -->
+
+  </div><h4 id="domtokenlist-0"><span class="secno">2.8.3 </span>DOMTokenList</h4><p>The <code><a href="#domtokenlist">DOMTokenList</a></code> interface represents an interface
   to an underlying string that consists of a <a href="common-microsyntaxes.html#set-of-space-separated-tokens">set of
   space-separated tokens</a>.</p><p class="note"><code><a href="#domtokenlist">DOMTokenList</a></code> objects are always
   <a href="infrastructure.html#case-sensitive">case-sensitive</a>, even when the underlying string might
@@ -1008,9 +1032,9 @@
   attribute must return the number of tokens that result from <a href="common-microsyntaxes.html#split-a-string-on-spaces" title="split a string on spaces">splitting the underlying string on
   spaces</a>. This is the <var title="dom-tokenlist-length"><a href="#dom-tokenlist-length">length</a></var>.</p>
 
-  <p>The object's <span>indices of the supported indexed
-  properties</span> are the numbers in the range zero to <span title=""><var title="dom-tokenlist-length"><a href="#dom-tokenlist-length">length</a></var>-1</span>, unless the <var title="dom-tokenlist-length"><a href="#dom-tokenlist-length">length</a></var> is zero, in which case
-  there are no <span>supported indexed properties</span>.</p>
+  <p>The object's <a href="infrastructure.html#supported-property-indices">supported property indices</a> are the
+  numbers in the range zero to <span title=""><var title="dom-tokenlist-length"><a href="#dom-tokenlist-length">length</a></var>-1</span>, unless the <var title="dom-tokenlist-length"><a href="#dom-tokenlist-length">length</a></var> is zero, in which case
+  there are no <a href="infrastructure.html#supported-property-indices">supported property indices</a>.</p>
 
   <p>The <dfn id="dom-tokenlist-item" title="dom-tokenlist-item"><code>item(<var title="">index</var>)</code></dfn> method must <a href="common-microsyntaxes.html#split-a-string-on-spaces" title="split a&#10;  string on spaces">split the underlying string on spaces</a>,
   preserving the order of the tokens as found in the underlying
@@ -1121,7 +1145,7 @@
   <dfn id="dom-tokenlist-tostring" title="dom-tokenlist-toString">stringify</dfn> to the object's
   underlying string representation.</p>
 
-  </div><h4 id="domsettabletokenlist-0"><span class="secno">2.7.4 </span>DOMSettableTokenList</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href="#domsettabletokenlist">DOMSettableTokenList</a></code> interface is the same as the
+  </div><h4 id="domsettabletokenlist-0"><span class="secno">2.8.4 </span>DOMSettableTokenList</h4><p>The <code><a href="#domsettabletokenlist">DOMSettableTokenList</a></code> interface is the same as the
   <code><a href="#domtokenlist">DOMTokenList</a></code> interface, except that it allows the
   underlying string to be directly changed.</p><pre class="idl">interface <dfn id="domsettabletokenlist">DOMSettableTokenList</dfn> : <a href="#domtokenlist">DOMTokenList</a> {
             attribute DOMString <a href="#dom-domsettabletokenlist-value" title="dom-DOMSettableTokenList-value">value</a>;
@@ -1144,7 +1168,7 @@
 
   </div><div class="impl">
 
-  <h4 id="safe-passing-of-structured-data"><span class="secno">2.7.5 </span>Safe passing of structured data</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="safe-passing-of-structured-data"><span class="secno">2.8.5 </span>Safe passing of structured data</h4>
 
   <p>When a user agent is required to obtain a <dfn id="structured-clone">structured
   clone</dfn> of an object, it must run the following algorithm, which
@@ -1153,8 +1177,11 @@
   <ol><li><p>Let <var title="">input</var> be the object being
    cloned.</p></li>
 
-   <li><p>Let <var title="">memory</var> be a list of objects,
-   initially empty. (This is used to catch cycles.)</p></li>
+   <li><p>Let <var title="">memory</var> be an association list of
+   pairs of objects, initially empty. This is used to handle duplicate
+   references. In each pair of objects, one is called the
+   <em>source</em> object and the other the <em>destination</em>
+   object.</p></li>
 
    <li><p>Let <var title="">output</var> be the object resulting from
    calling the <a href="#internal-structured-cloning-algorithm">internal structured cloning algorithm</a> with
@@ -1163,110 +1190,108 @@
    <li><p>Return <var title="">output</var>.</p></li>
 
   </ol><p>The <dfn id="internal-structured-cloning-algorithm">internal structured cloning algorithm</dfn> is always
-  called with two arguments, <var title="">input</var> and <var title="">memory</var>, and its behavior depends on the type of <var title="">input</var>, as follows:</p>
-
-  <dl class="switch"><dt>If <var title="">input</var> is the undefined value</dt>
+  called with two arguments, <var title="">input</var> and <var title="">memory</var>, and its behavior is as follows:</p>
 
-   <dd><p>Return the undefined value.</p></dd>
+  <ol><li><p>If <var title="">input</var> is the source object of a pair
+   of objects in <var title="">memory</var>, then return the
+   destination object in that pair of objects and abort these
+   steps.</p></li>
 
-   <dt>If <var title="">input</var> is the null value</dt>
+   <li><p>If <var title="">input</var> is a primitive value, then
+   return that value and abort these steps.</p></li>
 
-   <dd><p>Return the null value.</p></dd>
+   <li>
 
-   <dt>If <var title="">input</var> is the false value</dt>
+    <p>The <var title="">input</var> value is an object. Jump to the
+    appropriate step below:</p>
 
-   <dd><p>Return the false value.</p></dd>
+    <dl class="switch"><dt>If <var title="">input</var> is a Boolean object</dt>
 
-   <dt>If <var title="">input</var> is the true value</dt>
+     <dd><p>Let <var title="">output</var> be a newly constructed Boolean object with the same value as <var title="">input</var>.</p></dd>
 
-   <dd><p>Return the true value.</p></dd>
+     <dt>If <var title="">input</var> is a Number object</dt>
 
-   <dt>If <var title="">input</var> is a Number object</dt>
+     <dd><p>Let <var title="">output</var> be a newly constructed Number object with the same value as <var title="">input</var>.</p></dd>
 
-   <dd><p>Return a newly constructed Number object with the same value as <var title="">input</var>.</p></dd>
+     <dt>If <var title="">input</var> is a String object</dt>
 
-   <dt>If <var title="">input</var> is a String object</dt>
+     <dd><p>Let <var title="">output</var> be a newly constructed String object with the same value as <var title="">input</var>.</p></dd>
 
-   <dd><p>Return a newly constructed String object with the same value as <var title="">input</var>.</p></dd>
+     <dt>If <var title="">input</var> is a <code>Date</code> object</dt>
 
-   <dt>If <var title="">input</var> is a <code>Date</code> object</dt>
+     <dd><p>Let <var title="">output</var> be a newly constructed <code>Date</code> object with the same value as <var title="">input</var>.</p></dd>
 
-   <dd><p>Return a newly constructed <code>Date</code> object with the same value as <var title="">input</var>.</p></dd>
+     <dt>If <var title="">input</var> is a <code>RegExp</code> object</dt>
 
-   <dt>If <var title="">input</var> is a <code>RegExp</code> object</dt>
+     <dd>
 
-   <dd>
+      <p>Let <var title="">output</var> be a newly constructed <code>RegExp</code> object with the same pattern and flags as <var title="">input</var>.</p>
 
-    <p>Return a newly constructed <code>RegExp</code> object with the same pattern and flags as <var title="">input</var>.</p>
+      <p class="note">The value of the <code title="">lastIndex</code> property is not copied.</p>
 
-    <p class="note">The value of the <code title="">lastIndex</code> property is not copied.</p>
+     </dd>
 
-   </dd>
+     <dt>If <var title="">input</var> is a <code>ImageData</code> object</dt>
 
-   <dt>If <var title="">input</var> is a <code>ImageData</code> object</dt>
+     <dd><p>Let <var title="">output</var> be a newly constructed <code>ImageData</code> object
+     with the same <code title="dom-imagedata-width">width</code> and
+     <code title="dom-imagedata-height">height</code> as <var title="">input</var>, and with a newly constructed
+     <code>CanvasPixelArray</code> for its <code title="dom-imagedata-data">data</code> attribute, with the same
+     <code title="dom-canvaspixelarray-length">length</code> and pixel
+     values as the <var title="">input</var>'s.</p></dd>
 
-   <dd><p>Return a newly constructed <code>ImageData</code> object
-   with the same <code title="dom-imagedata-width">width</code> and
-   <code title="dom-imagedata-height">height</code> as <var title="">input</var>, and with a newly constructed
-   <code>CanvasPixelArray</code> for its <code title="dom-imagedata-data">data</code> attribute, with the same
-   <code title="dom-canvaspixelarray-length">length</code> and pixel
-   values as the <var title="">input</var>'s.</p></dd>
+     <dt>If <var title="">input</var> is a <code>File</code> object</dt>
 
-   <dt>If <var title="">input</var> is a <code>File</code> object</dt>
+     <dd><p>Let <var title="">output</var> be a newly constructed <code>File</code> object corresponding to the same underlying data.</p></dd>
 
-   <dd><p>Return a newly constructed <code>File</code> object corresponding to the same underlying data.</p></dd>
+     <dt>If <var title="">input</var> is a <code>Blob</code> object</dt>
 
-   <dt>If <var title="">input</var> is a <code>Blob</code> object</dt>
+     <dd><p>Let <var title="">output</var> be a newly constructed <code>Blob</code> object corresponding to the same underlying data.</p></dd>
 
-   <dd><p>Return a newly constructed <code>Blob</code> object corresponding to the same underlying data.</p></dd>
+     <dt>If <var title="">input</var> is a <code>FileList</code> object</dt>
 
-   <dt>If <var title="">input</var> is a <code>FileList</code> object</dt>
+     <dd><p>Let <var title="">output</var> be a newly constructed <code>FileList</code> object containing a list of newly constructed <code>File</code> objects corresponding to the same underlying data as those in <var title="">input</var>, maintaining their relative order.</p></dd>
 
-   <dd><p>Return a newly constructed <code>FileList</code> object containing a list of newly constructed <code>File</code> objects corresponding to the same underlying data as those in <var title="">input</var>, maintaining their relative order.</p></dd>
+     <dt>If <var title="">input</var> is an Array object</dt>
 
-   <dt>If <var title="">input</var> is an Array object</dt>
-   <dt>If <var title="">input</var> is an Object object</dt>
+     <dd><p>Let <var title="">output</var> be a newly constructed empty <code>Array</code> object.</p></dd>
 
-   <dd>
+     <dt>If <var title="">input</var> is an Object object</dt>
 
-    <ol><li><p>If <var title="">input</var> is in <var title="">memory</var>, then throw a <code><a href="#data_clone_err">DATA_CLONE_ERR</a></code>
-     exception and abort the overall <a href="#structured-clone">structured clone</a>
-     algorithm.</p></li>
+     <dd><p>Let <var title="">output</var> be a newly constructed empty <code><a href="the-iframe-element.html#the-object-element">Object</a></code> object.</p></dd>
 
-     <li><p>Otherwise, let <var title="">new memory</var> be a list
-     consisting of the items in <var title="">memory</var> with the
-     addition of <var title="">input</var>.</p></li>
+     <dt>If <var title="">input</var> is another native object type (e.g. <code>Error</code>, <code><a href="webappapis.html#function">Function</a></code>)</dt>
+     <dt>If <var title="">input</var> is a host object (e.g. a DOM node)</dt>
 
-     <li><p>Create a new object, <var title="">output</var>, of the
-     same type as <var title="">input</var>: either an Array or an
-     Object.</p></li>
+     <dd><p>Throw a <code><a href="#data_clone_err">DATA_CLONE_ERR</a></code> exception and abort
+     the overall <a href="#structured-clone">structured clone</a> algorithm.</p></dd>
 
-     <li>
+    </dl></li>
 
-      <p>For each enumerable property in <var title="">input</var>,
-      add a corresponding property to <var title="">output</var>
-      having the same name, and having a value created from invoking
-      the <a href="#internal-structured-cloning-algorithm">internal structured cloning algorithm</a>
-      recursively with the value of the property as the "<var title="">input</var>" argument and <var title="">new
-      memory</var> as the "<var title="">memory</var>" argument. The
-      order of the properties in the <var title="">input</var> and
-      <var title="">output</var> objects must be the same.</p>
+   <li><p>Add a mapping from <var title="">input</var> (the source
+   object) to <var title="">output</var> (the destination object) to
+   <var title="">memory</var>.</p></li>
 
-      <p class="note">This does not walk the prototype chain.</p>
+   <li>
 
-     </li>
+    <p>If <var title="">input</var> is an Array object or an Object
+    object, then, for each enumerable property in <var title="">input</var>, add a corresponding property to <var title="">output</var> having the same name, and having a value
+    created from invoking the <a href="#internal-structured-cloning-algorithm">internal structured cloning
+    algorithm</a> recursively with the value of the property as the
+    "<var title="">input</var>" argument and <var title="">memory</var> as the "<var title="">memory</var>"
+    argument. The order of the properties in the <var title="">input</var> and <var title="">output</var> objects must
+    be the same.</p>
 
-     <li><p>Return <var title="">output</var>.</p></li>
+    <p class="note">This does not walk the prototype chain.</p>
 
-    </ol></dd>
+   </li>
 
-   <dt>If <var title="">input</var> is another native object type (e.g. <code>Error</code>)</dt>
-   <dt>If <var title="">input</var> is a host object (e.g. a DOM node)</dt>
+   <li><p>Return <var title="">output</var>.</p></li>
 
-   <dd><p>Throw a <code><a href="#data_clone_err">DATA_CLONE_ERR</a></code> exception and abort the
-   overall <a href="#structured-clone">structured clone</a> algorithm.</p></dd>
+  </ol><p class="note">This algorithm preserves cycles and preserves the
+  identity of duplicate objects in graphs.</p>
 
-  </dl></div><h4 id="domstringmap-0"><span class="secno">2.7.6 </span>DOMStringMap</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href="#domstringmap">DOMStringMap</a></code> interface represents a set of
+  </div><h4 id="domstringmap-0"><span class="secno">2.8.6 </span>DOMStringMap</h4><p>The <code><a href="#domstringmap">DOMStringMap</a></code> interface represents a set of
   name-value pairs. It exposes these using the scripting language's
   native mechanisms for property access.</p><div class="impl">
 
@@ -1282,7 +1307,7 @@
   deleter void (in DOMString name);
 };</pre>
 
-  <p>The <span>names of the supported named properties</span> on a
+  <p>The <a href="infrastructure.html#supported-property-names">supported property names</a> on a
   <code><a href="#domstringmap">DOMStringMap</a></code> object at any instant are the names of
   each pair returned from the algorithm for getting the list of
   name-value pairs at that instant.</p>
@@ -1340,7 +1365,7 @@
   }
 }</pre>
 
-  </div><h4 id="dom-feature-strings"><span class="secno">2.7.7 </span>DOM feature strings</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>DOM3 Core defines mechanisms for checking for interface support,
+  </div><h4 id="dom-feature-strings"><span class="secno">2.8.7 </span>DOM feature strings</h4><p>DOM3 Core defines mechanisms for checking for interface support,
   and for obtaining implementations of interfaces, using <a href="http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMFeatures">feature
   strings</a>. <a href="references.html#refsDOMCORE">[DOMCORE]</a></p><p>Authors are strongly discouraged from using these, as they are
   notoriously unreliable and imprecise. Authors are encouraged to rely
@@ -1353,7 +1378,7 @@
   with <var title="">feature</var> set to either "<code title="">HTML</code>" or "<code title="">XHTML</code>" and <var title="">version</var> set to either "<code>1.0</code>" or
   "<code>2.0</code>".</p>
 
-  </div><h4 id="exceptions"><span class="secno">2.7.8 </span>Exceptions</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The following are <code><a href="infrastructure.html#domexception">DOMException</a></code> codes. <a href="references.html#refsDOMCORE">[DOMCORE]</a></p><ol class="brief"><li value="1"><dfn id="index_size_err"><code>INDEX_SIZE_ERR</code></dfn></li>
+  </div><h4 id="exceptions"><span class="secno">2.8.8 </span>Exceptions</h4><p>The following are <code><a href="infrastructure.html#domexception">DOMException</a></code> codes. <a href="references.html#refsDOMCORE">[DOMCORE]</a></p><ol class="brief"><li value="1"><dfn id="index_size_err"><code>INDEX_SIZE_ERR</code></dfn></li>
    <li value="2"><dfn id="domstring_size_err"><code>DOMSTRING_SIZE_ERR</code></dfn></li>
    <li value="3"><dfn id="hierarchy_request_err"><code>HIERARCHY_REQUEST_ERR</code></dfn></li>
    <li value="4"><dfn id="wrong_document_err"><code>WRONG_DOCUMENT_ERR</code></dfn></li>
@@ -1376,17 +1401,25 @@
    <li value="21"><dfn id="url_mismatch_err"><code>URL_MISMATCH_ERR</code></dfn></li> <!-- actually defined right here for now -->
    <li value="22"><dfn id="quota_exceeded_err"><code>QUOTA_EXCEEDED_ERR</code></dfn></li> <!-- actually defined right here for now -->
    <li value="23"><dfn id="timeout_err"><code>TIMEOUT_ERR</code></dfn></li> <!-- actually in XHR for now -->
-   <li value="24"><dfn id="data_clone_err"><code>DATA_CLONE_ERR</code></dfn></li> <!-- actually defined right here for now -->
-<!--v2DATAGRID   <li value="24"><dfn><code>DATAGRID_MODEL_ERR</code></dfn></li> --> <!-- actually defined right here for now -->
-   <li value="81"><dfn id="parse_err"><code>PARSE_ERR</code></dfn></li> <!-- actually defined in dom3ls -->
-   <li value="82"><dfn id="serialize_err"><code>SERIALIZE_ERR</code></dfn></li> <!-- actually defined in dom3ls -->
-  </ol><pre class="impl">[Supplemental] exception DOMException {
+   <li value="24"><dfn id="not_readable_err"><code>NOT_READABLE_ERR</code></dfn></li> <!-- File API -->
+   <li value="25"><dfn id="data_clone_err"><code>DATA_CLONE_ERR</code></dfn></li> <!-- actually defined right here for now -->
+   <li value="26"><dfn id="encoding_err"><code>ENCODING_ERR</code></dfn></li> <!-- File API -->
+<!--v2DATAGRID   <li value=".."><dfn><code>DATAGRID_MODEL_ERR</code></dfn></li> --> <!-- actually defined right here for now -->
+<!--
+   <li value="81"><dfn><code>PARSE_ERR</code></dfn></li> <!- - actually defined in dom3ls - ->
+   <li value="82"><dfn><code>SERIALIZE_ERR</code></dfn></li> <!- - actually defined in dom3ls - ->
+-->
+  </ol><div class="impl">
+
+  <pre class="idl">[Supplemental] exception DOMException {
   const unsigned short <a href="#url_mismatch_err">URL_MISMATCH_ERR</a> = 21;
   const unsigned short <a href="#quota_exceeded_err">QUOTA_EXCEEDED_ERR</a> = 22;
-  const unsigned short <a href="#data_clone_err">DATA_CLONE_ERR</a> = 24;
-};</pre><div class="impl">
+  const unsigned short <a href="#data_clone_err">DATA_CLONE_ERR</a> = 25;
+};</pre>
 
-  <h4 id="garbage-collection"><span class="secno">2.7.9 </span>Garbage collection</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  </div><div class="impl">
+
+  <h4 id="garbage-collection"><span class="secno">2.8.9 </span>Garbage collection</h4>
 
   <p>There is an <dfn id="implied-strong-reference">implied strong reference</dfn> from any IDL
   attribute that returns a pre-existing object to that object.</p>

Index: parsing.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/parsing.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- parsing.html	28 Aug 2010 23:52:54 -0000	1.1
+++ parsing.html	19 Oct 2010 17:38:08 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -322,7 +332,7 @@
       <ol><li><a href="parsing.html#determining-the-character-encoding"><span class="secno">8.2.2.1 </span>Determining the character encoding</a></li><li><a href="parsing.html#character-encodings-0"><span class="secno">8.2.2.2 </span>Character encodings</a></li><li><a href="parsing.html#preprocessing-the-input-stream"><span class="secno">8.2.2.3 </span>Preprocessing the input stream</a></li><li><a href="parsing.html#changing-the-encoding-while-parsing"><span class="secno">8.2.2.4 </span>Changing the encoding while parsing</a></li></ol></li><li><a href="parsing.html#parse-state"><span class="secno">8.2.3 </span>Parse state</a>
       <ol><li><a href="parsing.html#the-insertion-mode"><span class="secno">8.2.3.1 </span>The insertion mode</a></li><li><a href="parsing.html#the-stack-of-open-elements"><span class="secno">8.2.3.2 </span>The stack of open elements</a></li><li><a href="parsing.html#the-list-of-active-formatting-elements"><span class="secno">8.2.3.3 </span>The list of active formatting elements</a></li><li><a href="parsing.html#the-element-pointers"><span class="secno">8.2.3.4 </span>The element pointers</a></li><li><a href="parsing.html#other-parsing-state-flags"><span class="secno">8.2.3.5 </span>Other parsing state flags</a></li></ol></li></ol></li></ol></li></ol></div><div class="impl">
 
-  <h3 id="parsing"><span class="secno">8.2 </span>Parsing HTML documents</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h3 id="parsing"><span class="secno">8.2 </span>Parsing HTML documents</h3>
 
   <p><i>This section only applies to user agents, data mining tools,
   and conformance checkers.</i></p>
@@ -388,7 +398,7 @@
 
   </div><div class="impl">
 
-  <h4 id="overview-of-the-parsing-model"><span class="secno">8.2.1 </span>Overview of the parsing model</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="overview-of-the-parsing-model"><span class="secno">8.2.1 </span>Overview of the parsing model</h4>
 
   <p>The input to the HTML parsing process consists of a stream of
   Unicode characters, which is passed through a
@@ -405,7 +415,7 @@
   comes from the network, but <a href="apis-in-html-documents.html#dynamic-markup-insertion" title="dynamic markup&#10;  insertion">it can also come from script</a> running in the user
   agent, e.g. using the <code title="dom-document-write"><a href="apis-in-html-documents.html#dom-document-write">document.write()</a></code> API.</p>
 
-  <p><img alt="" src="http://dev.w3.org/html5/spec/images/parsing-model-overview.png"/></p>
+  <p><img alt="" height="554" src="http://dev.w3.org/html5/spec/images/parsing-model-overview.png" width="427"/></p>
 
   <p id="nestedParsing">There is only one set of states for the
   tokenizer stage and the tree construction stage, but the tree
@@ -418,7 +428,7 @@
 
    <p>In the following example, the tree construction stage will be
    called upon to handle a "p" start tag token while handling the
-   "script" start tag token:</p>
+   "script" end tag token:</p>
 
    <pre>...
 &lt;script&gt;
@@ -434,7 +444,7 @@
 
   </div><div class="impl">
 
-  <h4 id="the-input-stream"><span class="secno">8.2.2 </span>The <dfn>input stream</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="the-input-stream"><span class="secno">8.2.2 </span>The <dfn>input stream</dfn></h4>
 
   <p>The stream of Unicode characters that comprises the input to the
   tokenization stage will be initially seen by the user agent as a
@@ -448,7 +458,7 @@
   specification. This section does not apply to XML documents. <a href="references.html#refsXML">[XML]</a></p>
 
 
-  <h5 id="determining-the-character-encoding"><span class="secno">8.2.2.1 </span>Determining the character encoding</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="determining-the-character-encoding"><span class="secno">8.2.2.1 </span>Determining the character encoding</h5>
 
   <p>In some cases, it might be impractical to unambiguously determine
   the encoding before parsing the document. Because of this, this
@@ -990,7 +1000,7 @@
   desire to be maximally compatible with legacy content. <a href="references.html#refsHTTP">[HTTP]</a> <a href="references.html#refsRFC2046">[RFC2046]</a></p>
 
 
-  <h5 id="character-encodings-0"><span class="secno">8.2.2.2 </span>Character encodings</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="character-encodings-0"><span class="secno">8.2.2.2 </span>Character encodings</h5>
 
   <p>User agents must at a minimum support the UTF-8 and Windows-1252
   encodings, but may support more. <a href="references.html#refsRFC3629">[RFC3629]</a> <a href="references.html#refsWIN1252">[WIN1252]</a></p>
@@ -1019,9 +1029,12 @@
 
   <table id="table-encoding-overrides"><caption>Character encoding overrides</caption>
    <thead><tr><th> Input encoding </th><th> Replacement encoding </th><th> References
-   </th></tr></thead><tbody><!-- how about EUC-JP? --><tr><td> EUC-KR </td><td> windows-949 </td><td>
+   </th></tr></thead><tbody><tr><td> EUC-KR </td><td> windows-949 </td><td>
          <a href="references.html#refsEUCKR">[EUCKR]</a>
          <a href="references.html#refsWIN949">[WIN949]</a>
+    </td></tr><tr><td> EUC-JP </td><td> CP51932 </td><td>
+         <a href="references.html#refsEUCJP">[EUCJP]</a>
+         <a href="references.html#refsCP51932">[CP51932]</a>
     </td></tr><tr><td> GB2312 </td><td> GBK </td><td>
          <a href="references.html#refsRFC1345">[RFC1345]</a>
          <a href="references.html#refsGBK">[GBK]</a>
@@ -1077,7 +1090,7 @@
 
 
 
-  <h5 id="preprocessing-the-input-stream"><span class="secno">8.2.2.3 </span>Preprocessing the input stream</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="preprocessing-the-input-stream"><span class="secno">8.2.2.3 </span>Preprocessing the input stream</h5>
 
   <p>Given an encoding, the bytes in the input stream must be
   converted to Unicode characters for the tokenizer, as described by
@@ -1089,7 +1102,9 @@
 
   <p>Bytes or sequences of bytes in the original byte stream that
   could not be converted to Unicode code points must be converted to
-  U+FFFD REPLACEMENT CHARACTERs.</p>
+  U+FFFD REPLACEMENT CHARACTERs. Specifically, if the encoding is
+  UTF-8, the bytes must be <a href="infrastructure.html#decoded-as-utf-8-with-error-handling" title="decoded as UTF-8, with error&#10;  handling">decoded with the error handling</a> defined in this
+  specification.</p>
 
   <p class="note">Bytes or sequences of bytes in the original byte
   stream that did not conform to the encoding specification
@@ -1160,7 +1175,7 @@
   the stream, but rather the lack of any further characters.</p>
 
 
-  <h5 id="changing-the-encoding-while-parsing"><span class="secno">8.2.2.4 </span>Changing the encoding while parsing</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="changing-the-encoding-while-parsing"><span class="secno">8.2.2.4 </span>Changing the encoding while parsing</h5>
 
   <p>When the parser requires the user agent to <dfn id="change-the-encoding">change the
   encoding</dfn>, it must run the following steps. This might happen
@@ -1214,9 +1229,9 @@
 
   </ol></div><div class="impl">
 
-  <h4 id="parse-state"><span class="secno">8.2.3 </span>Parse state</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="parse-state"><span class="secno">8.2.3 </span>Parse state</h4>
 
-  <h5 id="the-insertion-mode"><span class="secno">8.2.3.1 </span>The insertion mode</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="the-insertion-mode"><span class="secno">8.2.3.1 </span>The insertion mode</h5>
 
   <p>The <dfn id="insertion-mode">insertion mode</dfn> is a state variable that controls
   the primary operation of the tree construction stage.</p>
@@ -1236,37 +1251,28 @@
   how tokens are processed and whether CDATA sections are
   supported.</p>
 
-  <p>Seven of these modes, namely "<a href="tokenization.html#parsing-main-inhead" title="insertion mode: in&#10;  head">in head</a>", "<a href="tokenization.html#parsing-main-inbody" title="insertion mode: in body">in
+  <p>Several of these modes, namely "<a href="tokenization.html#parsing-main-inhead" title="insertion mode: in&#10;  head">in head</a>", "<a href="tokenization.html#parsing-main-inbody" title="insertion mode: in body">in
   body</a>", "<a href="tokenization.html#parsing-main-intable" title="insertion mode: in table">in
-  table</a>", "<a href="tokenization.html#parsing-main-intbody" title="insertion mode: in table body">in table
-  body</a>", "<a href="tokenization.html#parsing-main-intr" title="insertion mode: in row">in row</a>",
-  "<a href="tokenization.html#parsing-main-intd" title="insertion mode: in cell">in cell</a>", and "<a href="tokenization.html#parsing-main-inselect" title="insertion mode: in select">in select</a>", are special, in
-  that the other modes defer to them at various times. When the
-  algorithm below says that the user agent is to do something
-  "<dfn id="using-the-rules-for">using the rules for</dfn> the <var title="">m</var> insertion
-  mode", where <var title="">m</var> is one of these modes, the user
-  agent must use the rules described under the <var title="">m</var>
-  <a href="#insertion-mode">insertion mode</a>'s section, but must leave the
-  <a href="#insertion-mode">insertion mode</a> unchanged unless the rules in <var title="">m</var> themselves switch the <a href="#insertion-mode">insertion mode</a>
-  to a new value.</p>
+  table</a>", and "<a href="tokenization.html#parsing-main-inselect" title="insertion mode: in select">in
+  select</a>", are special, in that the other modes defer to them
+  at various times. When the algorithm below says that the user agent
+  is to do something "<dfn id="using-the-rules-for">using the rules for</dfn> the <var title="">m</var> insertion mode", where <var title="">m</var> is one
+  of these modes, the user agent must use the rules described under
+  the <var title="">m</var> <a href="#insertion-mode">insertion mode</a>'s section, but
+  must leave the <a href="#insertion-mode">insertion mode</a> unchanged unless the
+  rules in <var title="">m</var> themselves switch the <a href="#insertion-mode">insertion
+  mode</a> to a new value.</p>
 
   <p>When the insertion mode is switched to "<a href="tokenization.html#parsing-main-incdata" title="insertion&#10;  mode: text">text</a>" or "<a href="tokenization.html#parsing-main-intabletext" title="insertion mode: in table&#10;  text">in table text</a>", the <dfn id="original-insertion-mode">original insertion mode</dfn>
   is also set. This is the insertion mode to which the tree
   construction stage will return.</p>
 
-  <p>When the insertion mode is switched to "<a href="tokenization.html#parsing-main-inforeign" title="insertion&#10;  mode: in foreign content">in foreign content</a>", the
-  <dfn id="secondary-insertion-mode">secondary insertion mode</dfn> is also set. This secondary mode
-  is used within the rules for the "<a href="tokenization.html#parsing-main-inforeign" title="insertion mode: in&#10;  foreign content">in foreign content</a>" mode to handle HTML
-  (i.e. not foreign) content.</p>
-
   <hr/><p>When the steps below require the UA to <dfn id="reset-the-insertion-mode-appropriately">reset the insertion
   mode appropriately</dfn>, it means the UA must follow these
   steps:</p>
 
   <ol><li>Let <var title="">last</var> be false.</li>
 
-   <li>Let <var title="">foreign</var> be false.</li>
-
    <li>Let <var title="">node</var> be the last node in the
    <a href="#stack-of-open-elements">stack of open elements</a>.</li>
 
@@ -1275,56 +1281,53 @@
    true and set <var title="">node</var> to the <var title="">context</var> element. (<a href="the-end.html#fragment-case">fragment case</a>)</li>
 
    <li>If <var title="">node</var> is a <code><a href="the-button-element.html#the-select-element">select</a></code> element,
-   then switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-inselect" title="insertion mode: in select">in select</a>" and jump to the
-   step labeled <i title="">end</i>. (<a href="the-end.html#fragment-case">fragment case</a>)</li>
+   then switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-inselect" title="insertion mode: in select">in select</a>" and abort these
+   steps. (<a href="the-end.html#fragment-case">fragment case</a>)</li>
 
    <li>If <var title="">node</var> is a <code><a href="tabular-data.html#the-td-element">td</a></code> or
    <code><a href="tabular-data.html#the-th-element">th</a></code> element and <var title="">last</var> is false, then
-   switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-intd" title="insertion&#10;   mode: in cell">in cell</a>" and jump to the step labeled <i title="">end</i>.</li>
+   switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-intd" title="insertion&#10;   mode: in cell">in cell</a>" and abort these steps.</li>
 
    <li>If <var title="">node</var> is a <code><a href="tabular-data.html#the-tr-element">tr</a></code> element, then
-   switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-intr" title="insertion&#10;   mode: in row">in row</a>" and jump to the step labeled <i title="">end</i>.</li>
+   switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-intr" title="insertion&#10;   mode: in row">in row</a>" and abort these steps.</li>
 
    <li>If <var title="">node</var> is a <code><a href="tabular-data.html#the-tbody-element">tbody</a></code>,
    <code><a href="tabular-data.html#the-thead-element">thead</a></code>, or <code><a href="tabular-data.html#the-tfoot-element">tfoot</a></code> element, then switch the
-   <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-intbody" title="insertion mode: in&#10;   table body">in table body</a>" and jump to the step labeled <i title="">end</i>.</li>
+   <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-intbody" title="insertion mode: in&#10;   table body">in table body</a>" and abort these steps.</li>
 
    <li>If <var title="">node</var> is a <code><a href="tabular-data.html#the-caption-element">caption</a></code> element,
-   then switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-incaption" title="insertion mode: in caption">in caption</a>" and jump to
-   the step labeled <i title="">end</i>.</li>
+   then switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-incaption" title="insertion mode: in caption">in caption</a>" and abort
+   these steps.</li>
 
    <li>If <var title="">node</var> is a <code><a href="tabular-data.html#the-colgroup-element">colgroup</a></code> element,
    then switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-incolgroup" title="insertion mode: in column group">in column group</a>" and
-   jump to the step labeled <i title="">end</i>. (<a href="the-end.html#fragment-case">fragment
-   case</a>)</li>
+   abort these steps. (<a href="the-end.html#fragment-case">fragment case</a>)</li>
 
    <li>If <var title="">node</var> is a <code><a href="tabular-data.html#the-table-element">table</a></code> element,
-   then switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-intable" title="insertion mode: in table">in table</a>" and jump to the
-   step labeled <i title="">end</i>.</li>
+   then switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-intable" title="insertion mode: in table">in table</a>" and abort these
+   steps.</li>
 
    <li>If <var title="">node</var> is a <code><a href="semantics.html#the-head-element-0">head</a></code> element,
-   then switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-inbody" title="insertion mode: in body">in body</a>" ("<a href="tokenization.html#parsing-main-inbody" title="insertion mode: in body">in body</a>"! <em> not "<a href="tokenization.html#parsing-main-inhead" title="insertion mode: in head">in head</a>"</em>!) and jump to
-   the step labeled <i title="">end</i>. (<a href="the-end.html#fragment-case">fragment
-   case</a>)</li> <!-- This is only here for now in case people
-   think that the spec accidentally omitted it and try to "fix"
-   it. Note that noscript-in-head is also handled this way. This is
-   all intentional. The only thing it doesn't handle is the
-   scripting-disabled fragment parsing case for a <head> element
-   containing a <noscript> which itself contains something other than
-   a <link> or a <style type="text/css"> element; you'd expect that to break out of
-   the <noscript> but it doesn't. This is an edge case that doesn't
-   affect the spec, since the algorithm for fragment parsing is only
-   used for innerHTML/outerHTML/insertAdjacentHTML(), where we know
-   scripting is enabled. -->
+   then switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-inbody" title="insertion mode: in body">in body</a>" ("<a href="tokenization.html#parsing-main-inbody" title="insertion mode: in body">in body</a>"! <em> not "<a href="tokenization.html#parsing-main-inhead" title="insertion mode: in head">in head</a>"</em>!) and abort
+   these steps. (<a href="the-end.html#fragment-case">fragment case</a>)</li> <!-- This is only
+   here for now in case people think that the spec accidentally
+   omitted it and try to "fix" it. Note that noscript-in-head is also
+   handled this way. This is all intentional. The only thing it
+   doesn't handle is the scripting-disabled fragment parsing case for
+   a <head> element containing a <noscript> which itself contains
+   something other than a <link> or a <style type="text/css"> element; you'd expect
+   that to break out of the <noscript> but it doesn't. This is an edge
+   case that doesn't affect the spec, since the algorithm for fragment
+   parsing is only used for innerHTML/outerHTML/insertAdjacentHTML(),
+   where we know scripting is enabled. -->
 
    <li>If <var title="">node</var> is a <code><a href="sections.html#the-body-element-0">body</a></code> element,
-   then switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-inbody" title="insertion mode: in body">in body</a>" and jump to the
-   step labeled <i title="">end</i>.</li>
+   then switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-inbody" title="insertion mode: in body">in body</a>" and abort these
+   steps.</li>
 
    <li>If <var title="">node</var> is a <code><a href="obsolete.html#frameset">frameset</a></code> element,
-   then switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-inframeset" title="insertion mode: in frameset">in frameset</a>" and jump to
-   the step labeled <i title="">end</i>. (<a href="the-end.html#fragment-case">fragment
-   case</a>)</li>
+   then switch the <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-inframeset" title="insertion mode: in frameset">in frameset</a>" and abort
+   these steps. (<a href="the-end.html#fragment-case">fragment case</a>)</li>
 
    <li>If <var title="">node</var> is an <code><a href="semantics.html#the-html-element-0">html</a></code> element,
    then <!--: if the <span><code title="">head</code> element
@@ -1332,27 +1335,26 @@
    to "<a href="tokenization.html#the-before-head-insertion-mode" title="insertion mode: before head">before
    head</a>"<!--, otherwise, switch the <span>insertion mode</span>
    to "<span title="insertion mode: after head">after head</span>".-->
-   Then, <!-- in either case, --> jump to the step labeled <i title="">end</i>. (<a href="the-end.html#fragment-case">fragment case</a>)</li> <!-- if the
-   head element pointer can ever be non-null when we're going through
-   these steps, we'll need to uncomment out the commented-out bits -->
+   Then, <!-- in either case, --> abort these steps. (<a href="the-end.html#fragment-case">fragment
+   case</a>)</li> <!-- if the head element pointer can ever be
+   non-null when we're going through these steps, we'll need to
+   uncomment out the commented-out bits -->
 
    <li>If <var title="">node</var> is an element from the <a href="namespaces.html#mathml-namespace">MathML
-   namespace</a> or the <a href="namespaces.html#svg-namespace">SVG namespace</a>, then set <var title="">foreign</var> to true.</li>
+   namespace</a> or the <a href="namespaces.html#svg-namespace">SVG namespace</a>, then switch the
+   <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-inforeign" title="insertion mode: in&#10;   foreign content">in foreign content</a>" and abort these
+   steps.</li>
 
    <li>If <var title="">last</var> is true, then switch the
-   <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-inbody" title="insertion mode: in&#10;   body">in body</a>" and jump to the step labeled <i title="">end</i>. (<a href="the-end.html#fragment-case">fragment case</a>)</li>
+   <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-inbody" title="insertion mode: in&#10;   body">in body</a>" and abort these steps. (<a href="the-end.html#fragment-case">fragment
+   case</a>)</li>
 
    <li>Let <var title="">node</var> now be the node before <var title="">node</var> in the <a href="#stack-of-open-elements">stack of open
    elements</a>.</li>
 
    <li>Return to the step labeled <i>loop</i>.</li>
 
-   <li><i>End</i>: If <var title="">foreign</var> is true, switch the
-   <a href="#secondary-insertion-mode">secondary insertion mode</a> to whatever the
-   <a href="#insertion-mode">insertion mode</a> is set to, and switch the
-   <a href="#insertion-mode">insertion mode</a> to "<a href="tokenization.html#parsing-main-inforeign" title="insertion mode: in&#10;   foreign content">in foreign content</a>".</li>
-
-  </ol><h5 id="the-stack-of-open-elements"><span class="secno">8.2.3.2 </span>The stack of open elements</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  </ol><h5 id="the-stack-of-open-elements"><span class="secno">8.2.3.2 </span>The stack of open elements</h5>
 
   <p>Initially, the <dfn id="stack-of-open-elements">stack of open elements</dfn> is empty. The
   stack grows downwards; the topmost node on the stack is the first
@@ -1387,8 +1389,8 @@
   <p>Elements in the stack fall into the following categories:</p>
 
   <dl><dt><dfn id="special">Special</dfn></dt>
-   <dd><p>The following HTML elements have varying levels of special
-   parsing rules: <code><a href="sections.html#the-address-element">address</a></code>, <code><a href="obsolete.html#the-applet-element">applet</a></code>,
+   <dd><p>The following elements have varying levels of special
+   parsing rules: HTML's <code><a href="sections.html#the-address-element">address</a></code>, <code><a href="obsolete.html#the-applet-element">applet</a></code>,
    <code><a href="the-map-element.html#the-area-element">area</a></code>, <code><a href="sections.html#the-article-element">article</a></code>, <code><a href="sections.html#the-aside-element">aside</a></code>,
    <code><a href="semantics.html#the-base-element">base</a></code>, <code><a href="obsolete.html#basefont">basefont</a></code>, <code><a href="obsolete.html#bgsound">bgsound</a></code>,
    <code><a href="grouping-content.html#the-blockquote-element">blockquote</a></code>, <code><a href="sections.html#the-body-element-0">body</a></code>, <code><a href="text-level-semantics.html#the-br-element">br</a></code>,
@@ -1416,15 +1418,17 @@
    <code><a href="interactive-elements.html#the-summary-element">summary</a></code>, <code><a href="tabular-data.html#the-table-element">table</a></code>, <code><a href="tabular-data.html#the-tbody-element">tbody</a></code>,
    <code><a href="tabular-data.html#the-td-element">td</a></code>, <code><a href="the-button-element.html#the-textarea-element">textarea</a></code>, <code><a href="tabular-data.html#the-tfoot-element">tfoot</a></code>,
    <code><a href="tabular-data.html#the-th-element">th</a></code>, <code><a href="tabular-data.html#the-thead-element">thead</a></code>, <code><a href="semantics.html#the-title-element-0">title</a></code>,
-   <code><a href="tabular-data.html#the-tr-element">tr</a></code>, <code><a href="grouping-content.html#the-ul-element">ul</a></code>, <code><a href="text-level-semantics.html#the-wbr-element">wbr</a></code>,
-   <code><a href="obsolete.html#xmp">xmp</a></code>, and SVG's <code>foreignObject</code>.</p></dd>
+   <code><a href="tabular-data.html#the-tr-element">tr</a></code>, <code><a href="grouping-content.html#the-ul-element">ul</a></code>, <code><a href="text-level-semantics.html#the-wbr-element">wbr</a></code>, and
+   <code><a href="obsolete.html#xmp">xmp</a></code>; MathML's <code title="">mi</code>, <code title="">mo</code>, <code title="">mn</code>, <code title="">ms</code>, <code title="">mtext</code>, and <code title="">annotation-xml</code>; and SVG's <code title="">foreignObject</code>, <code title="">desc</code>, and
+   <code title="">title</code>.</p></dd> <!-- we could actually put
+   all non-HTML elements in this list, I think -->
 
    <dt><dfn id="formatting">Formatting</dfn></dt>
    <dd><p>The following HTML elements are those that end up in the
    <a href="#list-of-active-formatting-elements">list of active formatting elements</a>: <code><a href="text-level-semantics.html#the-a-element">a</a></code>,
    <code><a href="text-level-semantics.html#the-b-element">b</a></code>, <code><a href="obsolete.html#big">big</a></code>, <code><a href="text-level-semantics.html#the-code-element">code</a></code>,
    <code><a href="text-level-semantics.html#the-em-element">em</a></code>, <code><a href="obsolete.html#font">font</a></code>, <code><a href="text-level-semantics.html#the-i-element">i</a></code>,
-   <code><a href="obsolete.html#nobr">nobr</a></code>, <code><a href="obsolete.html#s">s</a></code>, <code><a href="text-level-semantics.html#the-small-element">small</a></code>,
+   <code><a href="obsolete.html#nobr">nobr</a></code>, <code><a href="text-level-semantics.html#the-s-element">s</a></code>, <code><a href="text-level-semantics.html#the-small-element">small</a></code>,
    <code><a href="obsolete.html#strike">strike</a></code>, <code><a href="text-level-semantics.html#the-strong-element">strong</a></code>, <code><a href="obsolete.html#tt">tt</a></code>, and
    <code><a href="obsolete.html#u">u</a></code>.</p></dd>
 
@@ -1456,36 +1460,51 @@
   it <a href="#has-an-element-in-the-specific-scope">has an element in the specific scope</a> consisting
   of the following element types:</p>
 
-  <ul class="brief"><li><code><a href="obsolete.html#the-applet-element">applet</a></code> in the HTML namespace</li>
-   <li><code><a href="tabular-data.html#the-caption-element">caption</a></code> in the HTML namespace</li>
-   <li><code><a href="semantics.html#the-html-element-0">html</a></code> in the HTML namespace</li> <!-- (This can only happen if the <var title="">node</var> is the topmost node of the <span>stack of open elements</span>, and prevents the next step from being invoked if there are no more elements in the stack.) -->
-   <li><code><a href="tabular-data.html#the-table-element">table</a></code> in the HTML namespace</li>
-   <li><code><a href="tabular-data.html#the-td-element">td</a></code> in the HTML namespace</li>
-   <li><code><a href="tabular-data.html#the-th-element">th</a></code> in the HTML namespace</li>
-   <li><code><a href="obsolete.html#the-marquee-element">marquee</a></code> in the HTML namespace</li>
-   <li><code><a href="the-iframe-element.html#the-object-element">object</a></code> in the HTML namespace</li>
-   <li><code title="">foreignObject</code> in the SVG namespace</li>
+  <ul class="brief"><li><code><a href="obsolete.html#the-applet-element">applet</a></code> in the <a href="namespaces.html#html-namespace-0">HTML namespace</a></li>
+   <li><code><a href="tabular-data.html#the-caption-element">caption</a></code> in the <a href="namespaces.html#html-namespace-0">HTML namespace</a></li>
+   <li><code><a href="semantics.html#the-html-element-0">html</a></code> in the <a href="namespaces.html#html-namespace-0">HTML namespace</a></li> <!-- (This can only happen if the <var title="">node</var> is the topmost node of the <span>stack of open elements</span>, and prevents the next step from being invoked if there are no more elements in the stack.) -->
+   <li><code><a href="tabular-data.html#the-table-element">table</a></code> in the <a href="namespaces.html#html-namespace-0">HTML namespace</a></li>
+   <li><code><a href="tabular-data.html#the-td-element">td</a></code> in the <a href="namespaces.html#html-namespace-0">HTML namespace</a></li>
+   <li><code><a href="tabular-data.html#the-th-element">th</a></code> in the <a href="namespaces.html#html-namespace-0">HTML namespace</a></li>
+   <li><code><a href="obsolete.html#the-marquee-element">marquee</a></code> in the <a href="namespaces.html#html-namespace-0">HTML namespace</a></li>
+   <li><code><a href="the-iframe-element.html#the-object-element">object</a></code> in the <a href="namespaces.html#html-namespace-0">HTML namespace</a></li>
+   <li><code title="">mi</code> in the <a href="namespaces.html#mathml-namespace">MathML namespace</a></li>
+   <li><code title="">mo</code> in the <a href="namespaces.html#mathml-namespace">MathML namespace</a></li>
+   <li><code title="">mn</code> in the <a href="namespaces.html#mathml-namespace">MathML namespace</a></li>
+   <li><code title="">ms</code> in the <a href="namespaces.html#mathml-namespace">MathML namespace</a></li>
+   <li><code title="">mtext</code> in the <a href="namespaces.html#mathml-namespace">MathML namespace</a></li>
+   <li><code title="">annotation-xml</code> in the <a href="namespaces.html#mathml-namespace">MathML namespace</a></li>
+   <li><code title="">foreignObject</code> in the <a href="namespaces.html#svg-namespace">SVG namespace</a></li>
+   <li><code title="">desc</code> in the <a href="namespaces.html#svg-namespace">SVG namespace</a></li>
+   <li><code title="">title</code> in the <a href="namespaces.html#svg-namespace">SVG namespace</a></li>
   </ul><p>The <a href="#stack-of-open-elements">stack of open elements</a> is said to <dfn id="has-an-element-in-list-item-scope" title="has an element in list item scope">have an element in list
   item scope</dfn> when it <a href="#has-an-element-in-the-specific-scope">has an element in the specific
   scope</a> consisting of the following element types:</p>
 
   <ul class="brief"><li>All the element types listed above for the <i><a href="#has-an-element-in-scope">has an element
    in scope</a></i> algorithm.</li>
-   <li><code><a href="grouping-content.html#the-ol-element">ol</a></code> in the HTML namespace</li>
-   <li><code><a href="grouping-content.html#the-ul-element">ul</a></code> in the HTML namespace</li>
+   <li><code><a href="grouping-content.html#the-ol-element">ol</a></code> in the <a href="namespaces.html#html-namespace-0">HTML namespace</a></li>
+   <li><code><a href="grouping-content.html#the-ul-element">ul</a></code> in the <a href="namespaces.html#html-namespace-0">HTML namespace</a></li>
   </ul><p>The <a href="#stack-of-open-elements">stack of open elements</a> is said to <dfn id="has-an-element-in-button-scope" title="has an element in button scope">have an element in button
   scope</dfn> when it <a href="#has-an-element-in-the-specific-scope">has an element in the specific
   scope</a> consisting of the following element types:</p>
 
   <ul class="brief"><li>All the element types listed above for the <i><a href="#has-an-element-in-scope">has an element
    in scope</a></i> algorithm.</li>
-   <li><code><a href="the-button-element.html#the-button-element">button</a></code> in the HTML namespace</li>
+   <li><code><a href="the-button-element.html#the-button-element">button</a></code> in the <a href="namespaces.html#html-namespace-0">HTML namespace</a></li>
   </ul><p>The <a href="#stack-of-open-elements">stack of open elements</a> is said to <dfn id="has-an-element-in-table-scope" title="has an element in table scope">have an element in table
   scope</dfn> when it <a href="#has-an-element-in-the-specific-scope">has an element in the specific
   scope</a> consisting of the following element types:</p>
 
-  <ul class="brief"><li><code><a href="semantics.html#the-html-element-0">html</a></code> in the HTML namespace</li> <!-- (This can only happen if the <var title="">node</var> is the topmost node of the <span>stack of open elements</span>, and prevents the next step from being invoked if there are no more elements in the stack.) -->
-   <li><code><a href="tabular-data.html#the-table-element">table</a></code> in the HTML namespace</li>
+  <ul class="brief"><li><code><a href="semantics.html#the-html-element-0">html</a></code> in the <a href="namespaces.html#html-namespace-0">HTML namespace</a></li> <!-- (This can only happen if the <var title="">node</var> is the topmost node of the <span>stack of open elements</span>, and prevents the next step from being invoked if there are no more elements in the stack.) -->
+   <li><code><a href="tabular-data.html#the-table-element">table</a></code> in the <a href="namespaces.html#html-namespace-0">HTML namespace</a></li>
+  </ul><p>The <a href="#stack-of-open-elements">stack of open elements</a> is said to <dfn id="has-an-element-in-select-scope" title="has an element in select scope">have an element in select
+  scope</dfn> when it <a href="#has-an-element-in-the-specific-scope">has an element in the specific
+  scope</a> consisting of all element types <em>except</em> the
+  following:</p>
+
+  <ul class="brief"><!--<li><code>select</code> in the <span>HTML namespace</span></li>--><li><code><a href="the-button-element.html#the-optgroup-element">optgroup</a></code> in the <a href="namespaces.html#html-namespace-0">HTML namespace</a></li>
+   <li><code><a href="the-button-element.html#the-option-element">option</a></code> in the <a href="namespaces.html#html-namespace-0">HTML namespace</a></li>
   </ul><p>Nothing happens if at any time any of the elements in the
   <a href="#stack-of-open-elements">stack of open elements</a> are moved to a new location in,
   or removed from, the <code><a href="infrastructure.html#document">Document</a></code> tree. In particular, the
@@ -1497,7 +1516,7 @@
   the stack is manipulated in a random-access fashion.</p>
 
 
-  <h5 id="the-list-of-active-formatting-elements"><span class="secno">8.2.3.3 </span>The list of active formatting elements</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="the-list-of-active-formatting-elements"><span class="secno">8.2.3.3 </span>The list of active formatting elements</h5>
 
   <p>Initially, the <dfn id="list-of-active-formatting-elements">list of active formatting elements</dfn> is
   empty. It is used to handle mis-nested <a href="#formatting" title="formatting">formatting element tags</a>.</p>
@@ -1519,7 +1538,28 @@
   created, so that further elements can be created for that token if
   necessary.</p>
 
-  <p>When the steps below require the UA to <dfn id="reconstruct-the-active-formatting-elements">reconstruct the
+  <p>When the steps below require the UA to <dfn id="push-onto-the-list-of-active-formatting-elements">push onto the list of
+  active formatting elements</dfn> an element <var title="">element</var>, the UA must perform the following steps:</p>
+
+  <ol><li><p>If there are already three elements in the <a href="#list-of-active-formatting-elements">list of
+   active formatting elements</a> after the last list marker, if
+   any, or anywhere in the list if there are no list markers, that
+   have the same tag name, namespace, and attributes as <var title="">element</var>, then remove the earliest such element from
+   the <a href="#list-of-active-formatting-elements">list of active formatting elements</a>. For these
+   purposes, the attributes must be compared as they were when the
+   elements were created by the parser; two elements have the same
+   attributes if all their parsed attributes can be paired such that
+   the two attributes in each pair have identical names, namespaces,
+   and values (the order of the attributes does not matter).</p>
+
+   <p class="note">This is the Noah's Ark clause. But with three per
+   family instead of two.</p></li> <!-- A sort of polyamorous Noah's
+   Ark, if you will. -->
+
+   <li><p>Add <var title="">element</var> to the <a href="#list-of-active-formatting-elements">list of active
+   formatting elements</a>.</p></li>
+
+  </ol><p>When the steps below require the UA to <dfn id="reconstruct-the-active-formatting-elements">reconstruct the
   active formatting elements</dfn>, the UA must perform the following
   steps:</p>
 
@@ -1594,7 +1634,7 @@
 
    <li>Go to step 1.</li>
 
-  </ol><h5 id="the-element-pointers"><span class="secno">8.2.3.4 </span>The element pointers</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  </ol><h5 id="the-element-pointers"><span class="secno">8.2.3.4 </span>The element pointers</h5>
 
   <p>Initially, the <dfn id="head-element-pointer"><code title="">head</code> element
   pointer</dfn> and the <dfn id="form-element-pointer"><code title="">form</code> element
@@ -1611,7 +1651,7 @@
   markup, for historical reasons.</p>
 
 
-  <h5 id="other-parsing-state-flags"><span class="secno">8.2.3.5 </span>Other parsing state flags</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="other-parsing-state-flags"><span class="secno">8.2.3.5 </span>Other parsing state flags</h5>
 
   <p>The <dfn id="scripting-flag">scripting flag</dfn> is set to "enabled" if <a href="webappapis.html#concept-n-script" title="concept-n-script">scripting was enabled</a> for the
   <code><a href="infrastructure.html#document">Document</a></code> with which the parser is associated when the

Index: fetching-resources.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/fetching-resources.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- fetching-resources.html	28 Aug 2010 23:52:53 -0000	1.1
+++ fetching-resources.html	19 Oct 2010 17:38:07 -0000	1.2
@@ -1,7 +1,7 @@
 <?xml version="1.0" standalone="yes"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "">
 <!-- when publishing, change bits marked ZZZ -->
-<html lang="en-US-x-Hixie" class="split chapter"><head><title>2.6 Fetching resources &#x2014; HTML5 </title><style type="text/css"><![CDATA[
+<html lang="en-US-x-Hixie" class="split chapter"><head><title>2.7 Fetching resources &#x2014; HTML5 </title><style type="text/css"><![CDATA[
    pre { margin-left: 2em; white-space: pre-wrap; }
    h2 { margin: 3em 0 1em 0; }
    h3 { margin: 2.5em 0 1em 0; }
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -309,18 +319,18 @@
        document.getElementsByTagName('h2')[0].textContent += '; load: ' + (new Date() - loadTimer) + 'ms';
      fixBrokenLink();
    }
-  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="urls.html" title="2.5 URLs" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="common-dom-interfaces.html" title="2.7 Common DOM interfaces" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
+  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="urls.html" title="2.6 URLs" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="common-dom-interfaces.html" title="2.8 Common DOM interfaces" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
    <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"/></a></p>
 
    <h1>HTML5</h1>
    </div><div>
-   <a href="urls.html">&#x2190; 2.5 URLs</a> &#x2013;
+   <a href="urls.html">&#x2190; 2.6 URLs</a> &#x2013;
    <a href="spec.html#contents">Table of contents</a> &#x2013;
-   <a href="common-dom-interfaces.html">2.7 Common DOM interfaces &#x2192;</a>
-  <ol class="toc"><li><ol><li><a href="fetching-resources.html#fetching-resources"><span class="secno">2.6 </span>Fetching resources</a>
-    <ol><li><a href="fetching-resources.html#concept-http-equivalent"><span class="secno">2.6.1 </span>Protocol concepts</a></li><li><a href="fetching-resources.html#encrypted-http-and-related-security-concerns"><span class="secno">2.6.2 </span>Encrypted HTTP and related security concerns</a></li><li><a href="fetching-resources.html#content-type-sniffing"><span class="secno">2.6.3 </span>Determining the type of a resource</a></li></ol></li></ol></li></ol></div><div class="impl">
+   <a href="common-dom-interfaces.html">2.8 Common DOM interfaces &#x2192;</a>
+  <ol class="toc"><li><ol><li><a href="fetching-resources.html#fetching-resources"><span class="secno">2.7 </span>Fetching resources</a>
+    <ol><li><a href="fetching-resources.html#concept-http-equivalent"><span class="secno">2.7.1 </span>Protocol concepts</a></li><li><a href="fetching-resources.html#encrypted-http-and-related-security-concerns"><span class="secno">2.7.2 </span>Encrypted HTTP and related security concerns</a></li><li><a href="fetching-resources.html#content-type-sniffing"><span class="secno">2.7.3 </span>Determining the type of a resource</a></li></ol></li></ol></li></ol></div><div class="impl">
 
-  <h3 id="fetching-resources"><span class="secno">2.6 </span>Fetching resources</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h3 id="fetching-resources"><span class="secno">2.7 </span>Fetching resources</h3>
 
   <p>When a user agent is to <dfn id="fetch">fetch</dfn> a resource or
   <a href="urls.html#url">URL</a>, optionally from an origin <i title="">origin</i>,
@@ -393,6 +403,18 @@
     download instead of initiating a new one, then use the results of
     the existing download instead of starting a new one.</p>
 
+    <p>Otherwise, if the resource is identified by an <a href="urls.html#absolute-url">absolute
+    URL</a> with a scheme that does not define a mechanism to
+    obtain the resource (e.g. it is a <code title="">mailto:</code>
+    URL) or that the user agent does not support, then act as if the
+    resource was an HTTP 204 No Content response with no other
+    metadata.</p>
+
+    <p>Otherwise, if the resource is identified by the
+    <a href="urls.html#url">URL</a> <dfn id="about:blank"><code>about:blank</code></dfn>, then the
+    resource is immediately available and consists of the empty
+    string, with no metadata.</p>
+
     <p>Otherwise, at a time convenient to the user and the user agent,
     download (or otherwise obtain) the resource, applying the
     semantics of the relevant specifications (e.g. performing an HTTP
@@ -408,11 +430,6 @@
     explicitly initiated from an <i title="">origin</i>, then <i title="">the origin that initiated the HTTP request</i> is <i title="">origin</i>. Otherwise, this is <i title="">a request from
     a "privacy-sensitive" context</i>. <a href="references.html#refsORIGIN">[ORIGIN]</a></p>
 
-    <p>If the resource is identified by the <a href="urls.html#url">URL</a>
-    <dfn id="about:blank"><code>about:blank</code></dfn>, then the resource is
-    immediately available and consists of the empty string, with no
-    metadata.</p>
-
    </li>
 
    <li>
@@ -524,7 +541,7 @@
   applicable.</p>
 
 
-  <h4 id="concept-http-equivalent"><span class="secno">2.6.1 </span>Protocol concepts</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="concept-http-equivalent"><span class="secno">2.7.1 </span>Protocol concepts</h4>
 
   <p>User agents can implement a variety of transfer protocols, but
   this specification mostly defines behavior in terms of HTTP. <a href="references.html#refsHTTP">[HTTP]</a></p>
@@ -547,7 +564,7 @@
   protocol.</p>
 
 
-  <h4 id="encrypted-http-and-related-security-concerns"><span class="secno">2.6.2 </span>Encrypted HTTP and related security concerns</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="encrypted-http-and-related-security-concerns"><span class="secno">2.7.2 </span>Encrypted HTTP and related security concerns</h4>
 
   <p>Anything in this specification that refers to HTTP also applies
   to HTTP-over-TLS, as represented by <a href="urls.html#url" title="url">URLs</a>
@@ -593,7 +610,7 @@
   </div>
 
 
-  <h4 id="content-type-sniffing"><span class="secno">2.6.3 </span>Determining the type of a resource</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="content-type-sniffing"><span class="secno">2.7.3 </span>Determining the type of a resource</h4><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/125">ISSUE-125</a> (charset-vs-quotes) and <a href="http://www.w3.org/html/wg/tracker/issues/126">ISSUE-126</a> (charset-vs-backslashes) block progress to Last Call</span></p>
 
   <p>The <dfn id="content-type" title="Content-Type">Content-Type metadata</dfn> of a
   resource must be obtained and interpreted in a manner consistent
@@ -623,16 +640,20 @@
   Content-Type</dfn>, given a string <var title="">s</var>, is as
   follows. It either returns an encoding or nothing.</p>
 
-  <ol><li><p>Find the first seven characters in <var title="">s</var>
-   that are an <a href="infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a> match for the word
-   "<code title="">charset</code>".  If no such match is found, return
-   nothing.</p></li>
+  <ol><!-- http://www.hixie.ch/tests/adhoc/html/parsing/encoding/all.html --><li><p>Let <var title="">position</var> be a pointed into <var title="">s</var>, initially pointing at the start of the
+   string.</p></li>
+
+   <li><p><i>Loop</i>: Find the first seven characters in <var title="">s</var> after <var title="">position</var> that are an
+   <a href="infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a> match for the word "<code title="">charset</code>". If no such match is found, return nothing
+   and abort these steps.</p></li>
 
    <li><p>Skip any U+0009, U+000A, U+000C, U+000D, or U+0020
    characters that immediately follow the word "<code title="">charset</code>" (there might not be any).</p></li>
 
    <li><p>If the next character is not a U+003D EQUALS SIGN ('='),
-   return nothing and abort these steps.</p></li>
+   then move <var title="">position</var> to point just before that
+   next character, and jump back to the step labeled
+   <i>loop</i>.</p></li>
 
    <li><p>Skip any U+0009, U+000A, U+000C, U+000D, or U+0020
    characters that immediately follow the equals sign (there might not
@@ -660,7 +681,11 @@
     </dl></li>
 
   </ol><p class="note">This requirement is a <a href="introduction.html#willful-violation">willful violation</a>
-  of the HTTP specification, motivated by the need for backwards
-  compatibility with legacy content. <a href="references.html#refsHTTP">[HTTP]</a></p>
+  of the HTTP specification (for example, HTTP doesn't allow the use
+  of single quotes and requires supporting a backslash-escape
+  mechanism that is not supported by this algorithm<!-- not to mention
+  not having any rules for error-handling, which is of course why
+  we're having to define it ourselves -->), motivated by the need for
+  backwards compatibility with legacy content. <a href="references.html#refsHTTP">[HTTP]</a></p>
 
   </div></body></html>

Index: origin-0.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/origin-0.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- origin-0.html	28 Aug 2010 23:52:54 -0000	1.1
+++ origin-0.html	19 Oct 2010 17:38:07 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -318,7 +328,7 @@
    <a href="spec.html#contents">Table of contents</a> &#x2013;
    <a href="history.html">5.4 Session history and navigation &#x2192;</a>
   <ol class="toc"><li><ol><li><a href="origin-0.html#origin-0"><span class="secno">5.3 </span>Origin</a>
-    <ol><li><a href="origin-0.html#relaxing-the-same-origin-restriction"><span class="secno">5.3.1 </span>Relaxing the same-origin restriction</a></li></ol></li></ol></li></ol></div><h3 id="origin-0"><span class="secno">5.3 </span>Origin</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><!-- Hallowed are the Ori --><p>The <dfn id="origin">origin</dfn> of a resource and the <dfn id="effective-script-origin">effective script
+    <ol><li><a href="origin-0.html#relaxing-the-same-origin-restriction"><span class="secno">5.3.1 </span>Relaxing the same-origin restriction</a></li></ol></li></ol></li></ol></div><h3 id="origin-0"><span class="secno">5.3 </span>Origin</h3><!-- Hallowed are the Ori --><p>The <dfn id="origin">origin</dfn> of a resource and the <dfn id="effective-script-origin">effective script
   origin</dfn> of a resource are both either opaque identifiers or
   tuples consisting of a scheme component, a host component, a port
   component, and optionally extra data.</p><p class="note">The extra data could include the certificate of the
@@ -662,7 +672,7 @@
 
    <li><p>Return true.</p></li>
 
-  </ol></div><h4 id="relaxing-the-same-origin-restriction"><span class="secno">5.3.1 </span>Relaxing the same-origin restriction</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="domintro"><dt><var title="">document</var> . <code title="dom-document-domain"><a href="#dom-document-domain">domain</a></code> [ = <var title="">domain</var> ]</dt>
+  </ol></div><h4 id="relaxing-the-same-origin-restriction"><span class="secno">5.3.1 </span>Relaxing the same-origin restriction</h4><dl class="domintro"><dt><var title="">document</var> . <code title="dom-document-domain"><a href="#dom-document-domain">domain</a></code> [ = <var title="">domain</var> ]</dt>
 
    <dd>
 
@@ -684,18 +694,17 @@
   brackets from the host portion of the <a href="urls.html#url-host" title="url-host">&lt;host&gt;</a> component must be omitted from
   the attribute's value.</p>
 
-  <p>On getting, the attribute must return its current
-  value, unless the document was created by
-  <code>XMLHttpRequest</code>, in which case it must throw an
-  <code><a href="common-dom-interfaces.html#invalid_access_err">INVALID_ACCESS_ERR</a></code> exception.</p>
+  <p>On getting, the attribute must return its current value, unless
+  the <code><a href="infrastructure.html#document">Document</a></code> has no <a href="browsers.html#browsing-context">browsing context</a>, in
+  which case it must return the empty string.</p>
 
   <p>On setting, the user agent must run the following algorithm:</p>
 
   <ol><li>
 
-    <p>If the document was created by <code>XMLHttpRequest</code>,
-    throw an <code><a href="common-dom-interfaces.html#invalid_access_err">INVALID_ACCESS_ERR</a></code> exception and abort these
-    steps.</p>
+    <p>If the <code><a href="infrastructure.html#document">Document</a></code> has no <a href="browsers.html#browsing-context">browsing
+    context</a>, throw a <code><a href="common-dom-interfaces.html#security_err">SECURITY_ERR</a></code> exception and
+    abort these steps.</p>
 
    </li>
 

Index: common-input-element-attributes.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/common-input-element-attributes.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- common-input-element-attributes.html	28 Aug 2010 23:52:52 -0000	1.1
+++ common-input-element-attributes.html	19 Oct 2010 17:38:07 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -318,7 +328,7 @@
    <a href="spec.html#contents">Table of contents</a> &#x2013;
    <a href="the-button-element.html">4.10.8 The button element &#x2192;</a>
   <ol class="toc"><li><ol><li><ol><li><ol><li><a href="common-input-element-attributes.html#common-input-element-attributes"><span class="secno">4.10.7.2 </span>Common <code>input</code> element attributes</a>
-        <ol><li><a href="common-input-element-attributes.html#the-autocomplete-attribute"><span class="secno">4.10.7.2.1 </span>The <code title="attr-input-autocomplete">autocomplete</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-list-attribute"><span class="secno">4.10.7.2.2 </span>The <code title="attr-input-list">list</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-readonly-attribute"><span class="secno">4.10.7.2.3 </span>The <code title="attr-input-readonly">readonly</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-size-attribute"><span class="secno">4.10.7.2.4 </span>The <code title="attr-input-size">size</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-required-attribute"><span class="secno">4.10.7.2.5 </span>The <code title="attr-input-required">required</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-multiple-attribute"><span class="secno">4.10.7.2.6 </span>The <code title="attr-input-multiple">multiple</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-maxlength-attribute"><span class="secno">4.10.7.2.7 </span>The <code title="attr-input-maxlength">maxlength</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-pattern-attribute"><span class="secno">4.10.7.2.8 </span>The <code title="attr-input-pattern">pattern</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-min-and-max-attributes"><span class="secno">4.10.7.2.9 </span>The <code title="attr-input-min">min</code> and <code title="attr-input-max">max</code> attributes</a></li><li><a href="common-input-element-attributes.html#the-step-attribute"><span class="secno">4.10.7.2.10 </span>The <code title="attr-input-step">step</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-placeholder-attribute"><span class="secno">4.10.7.2.11 </span>The <code title="attr-input-placeholder">placeholder</code> attribute</a></li></ol></li><li><a href="common-input-element-attributes.html#common-input-element-apis"><span class="secno">4.10.7.3 </span>Common <code>input</code> element APIs</a></li><li><a href="common-input-element-attributes.html#common-event-behaviors"><span class="secno">4.10.7.4 </span>Common event behaviors</a></li></ol></li></ol></li></ol></li></ol></div><h5 id="common-input-element-attributes"><span class="secno">4.10.7.2 </span>Common <code><a href="the-input-element.html#the-input-element">input</a></code> element attributes</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><div class="impl">
+        <ol><li><a href="common-input-element-attributes.html#the-autocomplete-attribute"><span class="secno">4.10.7.2.1 </span>The <code title="attr-input-autocomplete">autocomplete</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-list-attribute"><span class="secno">4.10.7.2.2 </span>The <code title="attr-input-list">list</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-readonly-attribute"><span class="secno">4.10.7.2.3 </span>The <code title="attr-input-readonly">readonly</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-size-attribute"><span class="secno">4.10.7.2.4 </span>The <code title="attr-input-size">size</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-required-attribute"><span class="secno">4.10.7.2.5 </span>The <code title="attr-input-required">required</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-multiple-attribute"><span class="secno">4.10.7.2.6 </span>The <code title="attr-input-multiple">multiple</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-maxlength-attribute"><span class="secno">4.10.7.2.7 </span>The <code title="attr-input-maxlength">maxlength</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-pattern-attribute"><span class="secno">4.10.7.2.8 </span>The <code title="attr-input-pattern">pattern</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-min-and-max-attributes"><span class="secno">4.10.7.2.9 </span>The <code title="attr-input-min">min</code> and <code title="attr-input-max">max</code> attributes</a></li><li><a href="common-input-element-attributes.html#the-step-attribute"><span class="secno">4.10.7.2.10 </span>The <code title="attr-input-step">step</code> attribute</a></li><li><a href="common-input-element-attributes.html#the-placeholder-attribute"><span class="secno">4.10.7.2.11 </span>The <code title="attr-input-placeholder">placeholder</code> attribute</a></li></ol></li><li><a href="common-input-element-attributes.html#common-input-element-apis"><span class="secno">4.10.7.3 </span>Common <code>input</code> element APIs</a></li><li><a href="common-input-element-attributes.html#common-event-behaviors"><span class="secno">4.10.7.4 </span>Common event behaviors</a></li></ol></li></ol></li></ol></li></ol></div><h5 id="common-input-element-attributes"><span class="secno">4.10.7.2 </span>Common <code><a href="the-input-element.html#the-input-element">input</a></code> element attributes</h5><div class="impl">
 
   <p>These attributes only apply to an <code><a href="the-input-element.html#the-input-element">input</a></code> element if
   its <code title="attr-input-type"><a href="the-input-element.html#attr-input-type">type</a></code> attribute is in a
@@ -327,7 +337,7 @@
   agents must <a href="infrastructure.html#ignore">ignore</a> the attribute, regardless of the
   requirements and definitions below.</p>
 
-  </div><h6 id="the-autocomplete-attribute"><span class="secno">4.10.7.2.1 </span>The <code title="attr-input-autocomplete"><a href="#attr-input-autocomplete">autocomplete</a></code> attribute</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>User agents sometimes have features for helping users fill forms
+  </div><h6 id="the-autocomplete-attribute"><span class="secno">4.10.7.2.1 </span>The <code title="attr-input-autocomplete"><a href="#attr-input-autocomplete">autocomplete</a></code> attribute</h6><p>User agents sometimes have features for helping users fill forms
   in, for example prefilling the user's address based on earlier user
   input.</p><p>The <dfn id="attr-input-autocomplete" title="attr-input-autocomplete"><code>autocomplete</code></dfn>
   attribute is an <a href="common-microsyntaxes.html#enumerated-attribute">enumerated attribute</a>. The attribute has
@@ -411,7 +421,7 @@
   significant security implications for the user if all values are
   always remembered, regardless of the site's preferences.</p>
 
-  </div><h6 id="the-list-attribute"><span class="secno">4.10.7.2.2 </span>The <code title="attr-input-list"><a href="#attr-input-list">list</a></code> attribute</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="attr-input-list" title="attr-input-list"><code>list</code></dfn>
+  </div><h6 id="the-list-attribute"><span class="secno">4.10.7.2.2 </span>The <code title="attr-input-list"><a href="#attr-input-list">list</a></code> attribute</h6><p>The <dfn id="attr-input-list" title="attr-input-list"><code>list</code></dfn>
   attribute is used to identify an element that lists predefined
   options suggested to the user.</p><p>If present, its value must be the <a href="elements.html#concept-id" title="concept-id">ID</a> of a <code><a href="the-button-element.html#the-datalist-element">datalist</a></code>
   element in the same document.</p><div class="impl">
@@ -518,7 +528,7 @@
    <code><a href="the-input-element.html#the-input-element">input</a></code> element in UAs that support
    <code><a href="the-button-element.html#the-datalist-element">datalist</a></code>.</p>
 
-  </div><h6 id="the-readonly-attribute"><span class="secno">4.10.7.2.3 </span>The <code title="attr-input-readonly"><a href="#attr-input-readonly">readonly</a></code> attribute</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="attr-input-readonly" title="attr-input-readonly"><code>readonly</code></dfn>
+  </div><h6 id="the-readonly-attribute"><span class="secno">4.10.7.2.3 </span>The <code title="attr-input-readonly"><a href="#attr-input-readonly">readonly</a></code> attribute</h6><p>The <dfn id="attr-input-readonly" title="attr-input-readonly"><code>readonly</code></dfn>
   attribute is a <a href="common-microsyntaxes.html#boolean-attribute">boolean attribute</a> that controls whether
   or not the user can edit the form control. <span class="impl">When
   specified, the element is <i title="concept-input-immutable"><a href="the-input-element.html#concept-input-immutable">immutable</a></i>.</span></p><div class="impl">
@@ -557,7 +567,7 @@
  &lt;p&gt; &lt;button name="action" value="update"&gt;Save&lt;/button&gt; &lt;/p&gt;
 &lt;/form&gt;</pre>
 
-  </div><h6 id="the-size-attribute"><span class="secno">4.10.7.2.4 </span>The <code title="attr-input-size"><a href="#attr-input-size">size</a></code> attribute</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="attr-input-size" title="attr-input-size"><code>size</code></dfn>
+  </div><h6 id="the-size-attribute"><span class="secno">4.10.7.2.4 </span>The <code title="attr-input-size"><a href="#attr-input-size">size</a></code> attribute</h6><p>The <dfn id="attr-input-size" title="attr-input-size"><code>size</code></dfn>
   attribute gives the number of characters that, in a visual
   rendering, the user agent is to allow the user to see while editing
   the element's <a href="association-of-controls-and-forms.html#concept-fe-value" title="concept-fe-value">value</a>.</p><p>The <code title="attr-input-size"><a href="#attr-input-size">size</a></code> attribute, if
@@ -571,9 +581,9 @@
 
   <p>The <code title="dom-input-size"><a href="the-input-element.html#dom-input-size">size</a></code> IDL attribute is
   <a href="common-dom-interfaces.html#limited-to-only-non-negative-numbers-greater-than-zero">limited to only non-negative numbers greater than
-  zero</a>.</p>
+  zero</a> and has a default value of 20.</p>
 
-  </div><h6 id="the-required-attribute"><span class="secno">4.10.7.2.5 </span>The <code title="attr-input-required"><a href="#attr-input-required">required</a></code> attribute</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="attr-input-required" title="attr-input-required"><code>required</code></dfn>
+  </div><h6 id="the-required-attribute"><span class="secno">4.10.7.2.5 </span>The <code title="attr-input-required"><a href="#attr-input-required">required</a></code> attribute</h6><p>The <dfn id="attr-input-required" title="attr-input-required"><code>required</code></dfn>
   attribute is a <a href="common-microsyntaxes.html#boolean-attribute">boolean attribute</a>. When specified, the
   element is <dfn id="concept-input-required" title="concept-input-required"><i>required</i></dfn>.</p><div class="impl">
 
@@ -606,7 +616,7 @@
   &lt;input type=submit value="Create account"&gt;
 &lt;/form&gt;</pre>
 
-  </div><h6 id="the-multiple-attribute"><span class="secno">4.10.7.2.6 </span>The <code title="attr-input-multiple"><a href="#attr-input-multiple">multiple</a></code> attribute</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="attr-input-multiple" title="attr-input-multiple"><code>multiple</code></dfn>
+  </div><h6 id="the-multiple-attribute"><span class="secno">4.10.7.2.6 </span>The <code title="attr-input-multiple"><a href="#attr-input-multiple">multiple</a></code> attribute</h6><p>The <dfn id="attr-input-multiple" title="attr-input-multiple"><code>multiple</code></dfn>
   attribute is a <a href="common-microsyntaxes.html#boolean-attribute">boolean attribute</a> that indicates whether
   the user is to be allowed to specify more than one value.</p><div class="example">
 
@@ -622,7 +632,7 @@
    user agent might suggest these two e-mail addresses to the
    user.</p>
 
-   <p><img alt="" src="http://dev.w3.org/html5/spec/images/sample-email-1.png"/></p>
+   <p><img alt="" height="140" src="http://dev.w3.org/html5/spec/images/sample-email-1.png" width="500"/></p>
 
    <p>The page could also link in the user's contacts database from the site:</p>
 
@@ -641,7 +651,7 @@
    earlier, as well as the "astrophy" and "astronomy" values given in
    the <code><a href="the-button-element.html#the-datalist-element">datalist</a></code> element.</p>
 
-   <p><img alt="" src="http://dev.w3.org/html5/spec/images/sample-email-2.png"/></p>
+   <p><img alt="" height="171" src="http://dev.w3.org/html5/spec/images/sample-email-2.png" width="500"/></p>
 
   </div><div class="example">
 
@@ -650,7 +660,7 @@
 
    <pre>&lt;label&gt;Attachments: &lt;input type=file multiple name=att&gt;&lt;/label&gt;</pre>
 
-  </div><h6 id="the-maxlength-attribute"><span class="secno">4.10.7.2.7 </span>The <code title="attr-input-maxlength"><a href="#attr-input-maxlength">maxlength</a></code> attribute</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="attr-input-maxlength" title="attr-input-maxlength"><code>maxlength</code></dfn>
+  </div><h6 id="the-maxlength-attribute"><span class="secno">4.10.7.2.7 </span>The <code title="attr-input-maxlength"><a href="#attr-input-maxlength">maxlength</a></code> attribute</h6><p>The <dfn id="attr-input-maxlength" title="attr-input-maxlength"><code>maxlength</code></dfn>
   attribute<span class="impl">, when it applies,</span> is a <a href="association-of-controls-and-forms.html#attr-fe-maxlength" title="attr-fe-maxlength">form control <code title="">maxlength</code> attribute</a><span class="impl">
   controlled by the <code><a href="the-input-element.html#the-input-element">input</a></code> element's <a href="the-input-element.html#concept-input-value-dirty-flag" title="concept-input-value-dirty-flag">dirty value
   flag</a></span>.</p><p>If the <code><a href="the-input-element.html#the-input-element">input</a></code> element has a <a href="association-of-controls-and-forms.html#maximum-allowed-value-length">maximum allowed
@@ -661,12 +671,12 @@
 
    <p>The following extract shows how a messaging client's text entry
    could be arbitrarily restricted to a fixed number of characters,
-   thus forcing any conversion through this medium to be terse and
+   thus forcing any conversation through this medium to be terse and
    discouraging intelligent discourse.</p>
 
    <pre>What are you doing? &lt;input name=status maxlength=140&gt;</pre>
 
-  </div><h6 id="the-pattern-attribute"><span class="secno">4.10.7.2.8 </span>The <code title="attr-input-pattern"><a href="#attr-input-pattern">pattern</a></code> attribute</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="attr-input-pattern" title="attr-input-pattern"><code>pattern</code></dfn>
+  </div><h6 id="the-pattern-attribute"><span class="secno">4.10.7.2.8 </span>The <code title="attr-input-pattern"><a href="#attr-input-pattern">pattern</a></code> attribute</h6><p>The <dfn id="attr-input-pattern" title="attr-input-pattern"><code>pattern</code></dfn>
   attribute specifies a regular expression against which the control's
   <a href="association-of-controls-and-forms.html#concept-fe-value" title="concept-fe-value">value</a> is to be checked.</p><p>If specified, the attribute's value must match the JavaScript <i title="">Pattern</i> production. <a href="references.html#refsECMA262">[ECMA262]</a></p><div class="impl">
 
@@ -711,7 +721,7 @@
   required pattern. Birthday</samp>, which is not useful.</p><p>UAs may still show the <code><a href="semantics.html#the-title-element-0">title</a></code> in non-error situations
   (for example, as a tooltip when hovering over the control), so
   authors should be careful not to word <code><a href="semantics.html#the-title-element-0">title</a></code>s as if an
-  error has necessarily occurred.</p><h6 id="the-min-and-max-attributes"><span class="secno">4.10.7.2.9 </span>The <code title="attr-input-min"><a href="#attr-input-min">min</a></code> and <code title="attr-input-max"><a href="#attr-input-max">max</a></code> attributes</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="attr-input-min" title="attr-input-min"><code>min</code></dfn> and <dfn id="attr-input-max" title="attr-input-max"><code>max</code></dfn> attributes indicate
+  error has necessarily occurred.</p><h6 id="the-min-and-max-attributes"><span class="secno">4.10.7.2.9 </span>The <code title="attr-input-min"><a href="#attr-input-min">min</a></code> and <code title="attr-input-max"><a href="#attr-input-max">max</a></code> attributes</h6><p>The <dfn id="attr-input-min" title="attr-input-min"><code>min</code></dfn> and <dfn id="attr-input-max" title="attr-input-max"><code>max</code></dfn> attributes indicate
   the allowed range of values for the element.</p><div class="impl">
 
   <p>Their syntax is defined by the section that defines the <code title="attr-input-type"><a href="the-input-element.html#attr-input-type">type</a></code> attribute's current state.</p>
@@ -774,7 +784,7 @@
 
    <pre>&lt;input name=quantity required type=number min=1 value=1&gt;</pre>
 
-  </div><h6 id="the-step-attribute"><span class="secno">4.10.7.2.10 </span>The <code title="attr-input-step"><a href="#attr-input-step">step</a></code> attribute</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="attr-input-step" title="attr-input-step"><code>step</code></dfn>
+  </div><h6 id="the-step-attribute"><span class="secno">4.10.7.2.10 </span>The <code title="attr-input-step"><a href="#attr-input-step">step</a></code> attribute</h6><p>The <dfn id="attr-input-step" title="attr-input-step"><code>step</code></dfn>
   attribute indicates the granularity that is expected (and required)
   of the <a href="association-of-controls-and-forms.html#concept-fe-value" title="concept-fe-value">value</a>, by limiting the
   allowed values. <span class="impl">The section that defines the
@@ -845,7 +855,7 @@
    <p>Normally, time controls are limited to an accuracy of one
    minute.</p>
 
-  </div><h6 id="the-placeholder-attribute"><span class="secno">4.10.7.2.11 </span>The <code title="attr-input-placeholder"><a href="#attr-input-placeholder">placeholder</a></code> attribute</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><!-- similar text in the <textarea> section --><p>The <dfn id="attr-input-placeholder" title="attr-input-placeholder"><code>placeholder</code></dfn>
+  </div><h6 id="the-placeholder-attribute"><span class="secno">4.10.7.2.11 </span>The <code title="attr-input-placeholder"><a href="#attr-input-placeholder">placeholder</a></code> attribute</h6><!-- similar text in the <textarea> section --><p>The <dfn id="attr-input-placeholder" title="attr-input-placeholder"><code>placeholder</code></dfn>
   attribute represents a <em>short</em> hint (a word or short phrase)
   intended to aid the user with data entry. A hint could be a sample
   value or a brief description of the expected format. The attribute,
@@ -874,7 +884,7 @@
  &lt;p&gt;&lt;label&gt;Description: &lt;input type="text" name="desc" placeholder="My Email Account"&gt;&lt;/label&gt;&lt;/p&gt;
 &lt;/fieldset&gt;</pre>
 
-  </div><h5 id="common-input-element-apis"><span class="secno">4.10.7.3 </span>Common <code><a href="the-input-element.html#the-input-element">input</a></code> element APIs</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="domintro"><dt><var title="">input</var> . <code title="dom-input-value"><a href="#dom-input-value">value</a></code> [ = <var title="">value</var> ]</dt>
+  </div><h5 id="common-input-element-apis"><span class="secno">4.10.7.3 </span>Common <code><a href="the-input-element.html#the-input-element">input</a></code> element APIs</h5><dl class="domintro"><dt><var title="">input</var> . <code title="dom-input-value"><a href="#dom-input-value">value</a></code> [ = <var title="">value</var> ]</dt>
 
    <dd>
 
@@ -1139,7 +1149,7 @@
 
   </div><div class="impl">
 
-  <h5 id="common-event-behaviors"><span class="secno">4.10.7.4 </span>Common event behaviors</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="common-event-behaviors"><span class="secno">4.10.7.4 </span>Common event behaviors</h5>
 
   <p>When the <dfn id="event-input-input" title="event-input-input"><code>input</code></dfn>
   event applies, any time the user causes the element's <a href="association-of-controls-and-forms.html#concept-fe-value" title="concept-fe-value">value</a> to change, the user agent must

Index: dom.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/dom.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- dom.html	28 Aug 2010 23:52:52 -0000	1.1
+++ dom.html	19 Oct 2010 17:38:07 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -309,17 +319,17 @@
        document.getElementsByTagName('h2')[0].textContent += '; load: ' + (new Date() - loadTimer) + 'ms';
      fixBrokenLink();
    }
-  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="namespaces.html" title="2.8 Namespaces" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="elements.html" title="3.2 Elements" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
+  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="namespaces.html" title="2.9 Namespaces" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="elements.html" title="3.2 Elements" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
    <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"/></a></p>
 
    <h1>HTML5</h1>
    </div><div>
-   <a href="namespaces.html">&#x2190; 2.8 Namespaces</a> &#x2013;
+   <a href="namespaces.html">&#x2190; 2.9 Namespaces</a> &#x2013;
    <a href="spec.html#contents">Table of contents</a> &#x2013;
    <a href="elements.html">3.2 Elements &#x2192;</a>
   <ol class="toc"><li><a href="dom.html#dom"><span class="secno">3 </span>Semantics, structure, and APIs of HTML documents</a>
   <ol><li><a href="dom.html#documents"><span class="secno">3.1 </span>Documents</a>
-    <ol><li><a href="dom.html#documents-in-the-dom"><span class="secno">3.1.1 </span>Documents in the DOM</a></li><li><a href="dom.html#security-document"><span class="secno">3.1.2 </span>Security</a></li><li><a href="dom.html#resource-metadata-management"><span class="secno">3.1.3 </span>Resource metadata management</a></li><li><a href="dom.html#dom-tree-accessors"><span class="secno">3.1.4 </span>DOM tree accessors</a></li><li><a href="dom.html#creating-documents"><span class="secno">3.1.5 </span>Creating documents</a></li><li><a href="dom.html#loading-xml-documents"><span class="secno">3.1.6 </span>Loading XML documents</a></li></ol></li></ol></li></ol></div><h2 id="dom"><span class="secno">3 </span>Semantics, structure, and APIs of HTML documents</h2><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><h3 id="documents"><span class="secno">3.1 </span>Documents</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>Every XML and HTML document in an HTML UA is represented by a
+    <ol><li><a href="dom.html#documents-in-the-dom"><span class="secno">3.1.1 </span>Documents in the DOM</a></li><li><a href="dom.html#security-document"><span class="secno">3.1.2 </span>Security</a></li><li><a href="dom.html#resource-metadata-management"><span class="secno">3.1.3 </span>Resource metadata management</a></li><li><a href="dom.html#dom-tree-accessors"><span class="secno">3.1.4 </span>DOM tree accessors</a></li><li><a href="dom.html#creating-documents"><span class="secno">3.1.5 </span>Creating documents</a></li><li><a href="dom.html#loading-xml-documents"><span class="secno">3.1.6 </span>Loading XML documents</a></li></ol></li></ol></li></ol></div><h2 id="dom"><span class="secno">3 </span>Semantics, structure, and APIs of HTML documents</h2><h3 id="documents"><span class="secno">3.1 </span>Documents</h3><p>Every XML and HTML document in an HTML UA is represented by a
   <code><a href="infrastructure.html#document">Document</a></code> object. <a href="references.html#refsDOMCORE">[DOMCORE]</a></p><p><dfn id="the-document-s-address">The document's address</dfn> is an <a href="urls.html#absolute-url">absolute URL</a>
   that is set when the <code><a href="infrastructure.html#document">Document</a></code> is created. <dfn id="the-document-s-current-address">The
   document's current address</dfn> is an <a href="urls.html#absolute-url">absolute URL</a>
@@ -337,7 +347,7 @@
   documents</dfn> unless they are flagged as being <dfn id="html-documents">HTML
   documents</dfn> when they are created. Whether a document is an
   <a href="#html-documents" title="HTML documents">HTML document</a> or an <a href="#xml-documents" title="XML documents">XML document</a> affects the behavior of
-  certain APIs and the case-sensitivity of some selectors.</p><h4 id="documents-in-the-dom"><span class="secno">3.1.1 </span>Documents in the DOM</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>All <code><a href="infrastructure.html#document">Document</a></code> objects (in user agents implementing
+  certain APIs and the case-sensitivity of some selectors.</p><h4 id="documents-in-the-dom"><span class="secno">3.1.1 </span>Documents in the DOM</h4><p>All <code><a href="infrastructure.html#document">Document</a></code> objects (in user agents implementing
   this specification) <span class="impl">must</span> also implement
   the <code><a href="#htmldocument">HTMLDocument</a></code> interface, available using
   binding-specific methods. (This is the case whether or not the
@@ -389,7 +399,6 @@
 
   // <a href="editing.html#editing">user interaction</a>
   readonly attribute <a href="browsers.html#windowproxy">WindowProxy</a> <a href="browsers.html#dom-document-defaultview" title="dom-document-defaultView">defaultView</a>;
-  <a href="editing.html#selection-0">Selection</a> <a href="editing.html#dom-document-getselection" title="dom-document-getSelection">getSelection</a>();
   readonly attribute <a href="infrastructure.html#element">Element</a> <a href="editing.html#dom-document-activeelement" title="dom-document-activeElement">activeElement</a>;
   boolean <a href="editing.html#dom-document-hasfocus" title="dom-document-hasFocus">hasFocus</a>();
            attribute DOMString <a href="editing.html#designMode" title="dom-document-designMode">designMode</a>;
@@ -411,6 +420,9 @@
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onchange" title="handler-onchange">onchange</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onclick" title="handler-onclick">onclick</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-oncontextmenu" title="handler-oncontextmenu">oncontextmenu</a>;
+<!--KEEP-END w3c-html--><!--TT-->
+           attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-oncuechange" title="handler-oncuechange">oncuechange</a>;
+<!--KEEP-START w3c-html--><!--TT-->
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-ondblclick" title="handler-ondblclick">ondblclick</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-ondrag" title="handler-ondrag">ondrag</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-ondragend" title="handler-ondragend">ondragend</a>;
@@ -447,6 +459,7 @@
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onprogress" title="handler-onprogress">onprogress</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onratechange" title="handler-onratechange">onratechange</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onreadystatechange" title="handler-onreadystatechange">onreadystatechange</a>;
+           attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onreset" title="handler-onreset">onreset</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onscroll" title="handler-onscroll">onscroll</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onseeked" title="handler-onseeked">onseeked</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onseeking" title="handler-onseeking">onseeking</a>;
@@ -465,7 +478,7 @@
   <code><a href="common-dom-interfaces.html#security_err">SECURITY_ERR</a></code> exception whenever any of the members of
   an <code><a href="#htmldocument">HTMLDocument</a></code> object are accessed by scripts whose
   <a href="origin-0.html#effective-script-origin">effective script origin</a> is not the <a href="origin-0.html#same-origin" title="same&#10;  origin">same</a> as the <code><a href="infrastructure.html#document">Document</a></code>'s <a href="origin-0.html#effective-script-origin">effective
-  script origin</a>.</p><h4 id="resource-metadata-management"><span class="secno">3.1.3 </span><dfn>Resource metadata management</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="domintro"><dt><var title="">document</var> . <code title="dom-document-URL"><a href="#dom-document-url">URL</a></code></dt>
+  script origin</a>.</p><h4 id="resource-metadata-management"><span class="secno">3.1.3 </span><dfn>Resource metadata management</dfn></h4><dl class="domintro"><dt><var title="">document</var> . <code title="dom-document-URL"><a href="#dom-document-url">URL</a></code></dt>
    <dd>
     <p>Returns <a href="#the-document-s-address">the document's address</a>.</p>
    </dd>
@@ -537,9 +550,8 @@
   <code><a href="common-dom-interfaces.html#security_err">SECURITY_ERR</a></code> exception. Otherwise, the user agent must
   first <a href="webappapis.html#obtain-the-storage-mutex">obtain the storage mutex</a> and then return the
   cookie-string for <a href="#the-document-s-address">the document's address</a> for a
-  "non-HTTP" API, decoded as UTF-8, with bytes or sequences of bytes
-  that are not valid UTF-8 sequences interpreted as U+FFFD REPLACEMENT
-  CHARACTERs. <a href="references.html#refsCOOKIES">[COOKIES]</a> <a href="references.html#refsRFC3629">[RFC3629]</a></p>
+  "non-HTTP" API, <a href="infrastructure.html#decoded-as-utf-8-with-error-handling">decoded as UTF-8, with error handling</a>.
+  <a href="references.html#refsCOOKIES">[COOKIES]</a></p>
 
   <p>On setting, if the document is a <a href="#cookie-free-document-object">cookie-free
   <code>Document</code> object</a>, then the user agent must do
@@ -679,8 +691,8 @@
 
   <hr/></div><dl class="domintro"><dt><var title="">document</var> . <code title="dom-document-readyState"><a href="#dom-document-readystate">readyState</a></code></dt>
    <dd>
-    <p>Returns "loading" while the <code><a href="infrastructure.html#document">Document</a></code> is loading, and "complete" once it has loaded.</p>
-    <p>The <code title="event-readystatechange">readystatechange</code> event fires on the <code><a href="infrastructure.html#document">Document</a></code> object when this value changes.</p>
+    <p>Returns "loading" while the <code><a href="infrastructure.html#document">Document</a></code> is loading, "interactive" once it is finished parsing but still loading sub-resources, and "complete" once it has loaded.</p>
+    <p>The <code title="event-readystatechange"><a href="#event-readystatechange">readystatechange</a></code> event fires on the <code><a href="infrastructure.html#document">Document</a></code> object when this value changes.</p>
    </dd>
 
   </dl><div class="impl">
@@ -689,11 +701,11 @@
   <code><a href="infrastructure.html#document">Document</a></code> object is created, it must have its
   <a href="#current-document-readiness">current document readiness</a> set to the string "loading"
   if the document is associated with an <a href="parsing.html#html-parser">HTML parser</a> or an
-  <a href="the-xhtml-syntax.html#xml-parser">XML parser</a>, or to the string "complete"
-  otherwise. Various algorithms during page loading affect this
-  value. When the value is set, the user agent must <a href="webappapis.html#fire-a-simple-event">fire a
-  simple event</a> named <code title="event-readystatechange">readystatechange</code> at the
-  <code><a href="infrastructure.html#document">Document</a></code> object.</p>
+  <a href="the-xhtml-syntax.html#xml-parser">XML parser</a>, or to the string "complete" otherwise.
+  Various algorithms during page loading affect this value. When the
+  value is set, the user agent must <a href="webappapis.html#fire-a-simple-event">fire a simple event</a>
+  named <dfn id="event-readystatechange" title="event-readystatechange"><code>readystatechange</code></dfn>
+  at the <code><a href="infrastructure.html#document">Document</a></code> object.</p>
 
   <p>A <code><a href="infrastructure.html#document">Document</a></code> is said to have an <dfn id="active-parser">active
   parser</dfn> if it is associated with an <a href="parsing.html#html-parser">HTML parser</a> or
@@ -703,7 +715,7 @@
   attribute must, on getting, return the <a href="#current-document-readiness">current document
   readiness</a>.</p>
 
-  </div><h4 id="dom-tree-accessors"><span class="secno">3.1.4 </span><dfn>DOM tree accessors</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p><dfn id="the-html-element">The <code>html</code> element</dfn> of a document is the
+  </div><h4 id="dom-tree-accessors"><span class="secno">3.1.4 </span><dfn>DOM tree accessors</dfn></h4><p><dfn id="the-html-element">The <code>html</code> element</dfn> of a document is the
   document's root element, if there is one and it's an
   <code><a href="semantics.html#the-html-element-0">html</a></code> element, or null otherwise.</p><hr/><dl class="domintro"><dt><var title="">document</var> . <code title="dom-document-head"><a href="#dom-document-head">head</a></code></dt>
    <dd>
@@ -982,10 +994,10 @@
 > optional tag name.
 --><div class="impl">
 
-  <hr/><p>The <code><a href="#htmldocument">HTMLDocument</a></code> interface <span title="support&#10;  named properties">supports named properties</span>. The <span>names
-  of the supported named properties</span> at any moment consist of
-  the values of the <code title="attr-name">name</code> content
-  attributes of all the <code><a href="obsolete.html#the-applet-element">applet</a></code>, <code><a href="the-iframe-element.html#the-embed-element">embed</a></code>,
+  <hr/><p>The <code><a href="#htmldocument">HTMLDocument</a></code> interface <span title="support&#10;  named properties">supports named properties</span>. The
+  <a href="infrastructure.html#supported-property-names">supported property names</a> at any moment consist of the
+  values of the <code title="attr-name">name</code> content attributes
+  of all the <code><a href="obsolete.html#the-applet-element">applet</a></code>, <code><a href="the-iframe-element.html#the-embed-element">embed</a></code>,
   <code><a href="forms.html#the-form-element">form</a></code>, <code><a href="the-iframe-element.html#the-iframe-element">iframe</a></code>, <code><a href="embedded-content-1.html#the-img-element">img</a></code>, and
   <a href="#fallback-free">fallback-free</a> <code><a href="the-iframe-element.html#the-object-element">object</a></code> elements in the
   <code><a href="infrastructure.html#document">Document</a></code> that have <code title="attr-name">name</code>
@@ -1068,7 +1080,7 @@
   </div><hr/><p class="note">The <code title="dom-document-dir"><a href="elements.html#dom-document-dir">dir</a></code>
   attribute on the <code><a href="#htmldocument">HTMLDocument</a></code> interface is defined
   along with the <code title="attr-dir"><a href="elements.html#the-dir-attribute">dir</a></code> content
-  attribute.</p><h4 id="creating-documents"><span class="secno">3.1.5 </span>Creating documents</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p><a href="#xml-documents">XML documents</a> can be created from script using the
+  attribute.</p><h4 id="creating-documents"><span class="secno">3.1.5 </span>Creating documents</h4><p><a href="#xml-documents">XML documents</a> can be created from script using the
   <code title="dom-DOMImplementation-createDocument"><a href="infrastructure.html#dom-domimplementation-createdocument">createDocument()</a></code>
   method on the <code><a href="infrastructure.html#domimplementation">DOMImplementation</a></code> interface.</p><p><a href="#html-documents">HTML documents</a> can be created using the <code title="dom-DOMHTMLImplementation-createHTMLDocument"><a href="#dom-domhtmlimplementation-createhtmldocument">createHTMLDocument()</a></code>
   method:</p><pre class="idl">[Supplemental, NoInterfaceObject]
@@ -1151,9 +1163,15 @@
 --><li><p>Let <var title="">document</var> be the <code><a href="infrastructure.html#document">Document</a></code>
    object on which the method was invoked.</p></li>
 
+   <li><p><a href="urls.html#resolve-a-url" title="resolve a url">Resolve</a> the method's
+   first argument, relative to the <a href="browsers.html#entry-script">entry script</a>'s <a href="webappapis.html#script-s-base-url" title="script's base URL">base URL</a>. If this is not
+   successful, throw a <code><a href="common-dom-interfaces.html#syntax_err">SYNTAX_ERR</a></code> exception and abort
+   these steps. Otherwise, let <var title="">url</var> be the
+   resulting <a href="urls.html#absolute-url">absolute URL</a>.</p></li>
+
    <li><p>If the <a href="origin-0.html#origin">origin</a> of <var title="">url</var> is not
    the same as the <a href="origin-0.html#origin">origin</a> of <var title="">document</var>, throw a <code><a href="common-dom-interfaces.html#security_err">SECURITY_ERR</a></code>
-   exception.</p></li>
+   exception and abort these steps.</p></li>
 <!--SYNCLOAD
    <li><p>If <code title="dom-XMLDocumentLoader-async">async</code> is
    set to false, let <var title="">document</var> be

Index: embedded-content-1.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/embedded-content-1.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- embedded-content-1.html	28 Aug 2010 23:52:53 -0000	1.1
+++ embedded-content-1.html	19 Oct 2010 17:38:07 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -320,12 +330,12 @@
   <ol class="toc"><li><ol><li><a href="embedded-content-1.html#embedded-content-1"><span class="secno">4.8 </span>Embedded content</a>
     <ol><li><a href="embedded-content-1.html#the-img-element"><span class="secno">4.8.1 </span>The <code>img</code> element</a>
       <ol><li><a href="embedded-content-1.html#alt"><span class="secno">4.8.1.1 </span>Requirements for providing text to act as an alternative for images</a>
-        <ol><li><a href="embedded-content-1.html#a-link-or-button-containing-nothing-but-the-image"><span class="secno">4.8.1.1.1 </span>A link or button containing nothing but the image</a></li><li><a href="embedded-content-1.html#a-phrase-or-paragraph-with-an-alternative-graphical-representation:-charts-diagrams-graphs-maps-illustrations"><span class="secno">4.8.1.1.2 </span>A phrase or paragraph with an alternative graphical representation: charts, diagrams, graphs, maps, illustrations</a></li><li><a href="embedded-content-1.html#a-short-phrase-or-label-with-an-alternative-graphical-representation:-icons-logos"><span class="secno">4.8.1.1.3 </span>A short phrase or label with an alternative graphical representation: icons, logos</a></li><li><a href="embedded-content-1.html#text-that-has-been-rendered-to-a-graphic-for-typographical-effect"><span class="secno">4.8.1.1.4 </span>Text that has been rendered to a graphic for typographical effect</a></li><li><a href="embedded-content-1.html#a-graphical-representation-of-some-of-the-surrounding-text"><span class="secno">4.8.1.1.5 </span>A graphical representation of some of the surrounding text</a></li><li><a href="embedded-content-1.html#a-purely-decorative-image-that-doesn-t-add-any-information"><span class="secno">4.8.1.1.6 </span>A purely decorative image that doesn't add any information</a></li><li><a href="embedded-content-1.html#a-group-of-images-that-form-a-single-larger-picture-with-no-links"><span class="secno">4.8.1.1.7 </span>A group of images that form a single larger picture with no links</a></li><li><a href="embedded-content-1.html#a-group-of-images-that-form-a-single-larger-picture-with-links"><span class="secno">4.8.1.1.8 </span>A group of images that form a single larger picture with links</a></li><li><a href="embedded-content-1.html#a-key-part-of-the-content"><span class="secno">4.8.1.1.9 </span>A key part of the content</a></li><li><a href="embedded-content-1.html#an-image-not-intended-for-the-user"><span class="secno">4.8.1.1.10 </span>An image not intended for the user</a></li><li><a href="embedded-content-1.html#an-image-in-an-e-mail-or-private-document-intended-for-a-specific-person-who-is-known-to-be-able-to-view-images"><span class="secno">4.8.1.1.11 </span>An image in an e-mail or private document intended for a specific person who is known to be able to view images</a></li><li><a href="embedded-content-1.html#general-guidelines"><span class="secno">4.8.1.1.12 </span>General guidelines</a></li><li><a href="embedded-content-1.html#guidance-for-markup-generators"><span class="secno">4.8.1.1.13 </span>Guidance for markup generators</a></li><li><a href="embedded-content-1.html#guidance-for-conformance-checkers"><span class="secno">4.8.1.1.14 </span>Guidance for conformance checkers</a></li></ol></li></ol></li></ol></li></ol></li></ol></div><h3 id="embedded-content-1"><span class="secno">4.8 </span>Embedded content</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><h4 id="the-img-element"><span class="secno">4.8.1 </span>The <dfn><code>img</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+        <ol><li><a href="embedded-content-1.html#general-guidelines"><span class="secno">4.8.1.1.1 </span>General guidelines</a></li><li><a href="embedded-content-1.html#a-link-or-button-containing-nothing-but-the-image"><span class="secno">4.8.1.1.2 </span>A link or button containing nothing but the image</a></li><li><a href="embedded-content-1.html#a-phrase-or-paragraph-with-an-alternative-graphical-representation:-charts-diagrams-graphs-maps-illustrations"><span class="secno">4.8.1.1.3 </span>A phrase or paragraph with an alternative graphical representation: charts, diagrams, graphs, maps, illustrations</a></li><li><a href="embedded-content-1.html#a-short-phrase-or-label-with-an-alternative-graphical-representation:-icons-logos"><span class="secno">4.8.1.1.4 </span>A short phrase or label with an alternative graphical representation: icons, logos</a></li><li><a href="embedded-content-1.html#text-that-has-been-rendered-to-a-graphic-for-typographical-effect"><span class="secno">4.8.1.1.5 </span>Text that has been rendered to a graphic for typographical effect</a></li><li><a href="embedded-content-1.html#a-graphical-representation-of-some-of-the-surrounding-text"><span class="secno">4.8.1.1.6 </span>A graphical representation of some of the surrounding text</a></li><li><a href="embedded-content-1.html#a-purely-decorative-image-that-doesn-t-add-any-information"><span class="secno">4.8.1.1.7 </span>A purely decorative image that doesn't add any information</a></li><li><a href="embedded-content-1.html#a-group-of-images-that-form-a-single-larger-picture-with-no-links"><span class="secno">4.8.1.1.8 </span>A group of images that form a single larger picture with no links</a></li><li><a href="embedded-content-1.html#a-group-of-images-that-form-a-single-larger-picture-with-links"><span class="secno">4.8.1.1.9 </span>A group of images that form a single larger picture with links</a></li><li><a href="embedded-content-1.html#a-key-part-of-the-content"><span class="secno">4.8.1.1.10 </span>A key part of the content</a></li><li><a href="embedded-content-1.html#an-image-not-intended-for-the-user"><span class="secno">4.8.1.1.11 </span>An image not intended for the user</a></li><li><a href="embedded-content-1.html#an-image-in-an-e-mail-or-private-document-intended-for-a-specific-person-who-is-known-to-be-able-to-view-images"><span class="secno">4.8.1.1.12 </span>An image in an e-mail or private document intended for a specific person who is known to be able to view images</a></li><li><a href="embedded-content-1.html#guidance-for-markup-generators"><span class="secno">4.8.1.1.13 </span>Guidance for markup generators</a></li><li><a href="embedded-content-1.html#guidance-for-conformance-checkers"><span class="secno">4.8.1.1.14 </span>Guidance for conformance checkers</a></li></ol></li></ol></li></ol></li></ol></li></ol></div><h3 id="embedded-content-1"><span class="secno">4.8 </span>Embedded content</h3><h4 id="the-img-element"><span class="secno">4.8.1 </span>The <dfn><code>img</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
    <dd><a href="content-models.html#embedded-content">Embedded content</a>.</dd>
    <dd>If the element has a <code title="attr-hyperlink-usemap"><a href="the-map-element.html#attr-hyperlink-usemap">usemap</a></code> attribute: <a href="content-models.html#interactive-content">Interactive content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#embedded-content">embedded content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd>Empty.</dd>
@@ -383,29 +393,84 @@
   precludes SVG files with script, multipage PDF files, interactive
   MNG files, HTML documents, plain text documents, and so forth.</p><p>The requirements on the <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code>
   attribute's value are described <a href="#alt">in the next
-  section</a>.
-  </p><p>The <code><a href="#the-img-element">img</a></code> must not be used as a layout tool. In
+  section</a>.</p><p>The <code><a href="#the-img-element">img</a></code> must not be used as a layout tool. In
   particular, <code><a href="#the-img-element">img</a></code> elements should not be used to display
   transparent images, as they rarely convey meaning and rarely add
   anything useful to the document.</p><div class="impl">
 
-  <hr/><p>Unless the user agent cannot support images, or its support for
-  images has been disabled, or the user agent only fetches elements on
-  demand, then, when an <code><a href="#the-img-element">img</a></code> is created with a <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute, and whenever the <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute is set subsequently, the
-  user agent must run the following steps:</p> <!-- Note how this does
-  NOT happen when the base URL changes. -->
+  <hr/><p>An <code><a href="#the-img-element">img</a></code> is always in one of the following states:</p>
 
-  <ol><li><p>If the element's <code title="attr-img-src"><a href="#attr-img-src">src</a></code>
-   attribute's value is the empty string, then <a href="webappapis.html#queue-a-task">queue a
+  <dl><dt><dfn id="img-none" title="img-none">Unavailable</dfn></dt>
+   <dd>The user agent hasn't obtained any image data.</dd>
+
+   <dt><dfn id="img-inc" title="img-inc">Partially available</dfn></dt>
+   <dd>The user agent has obtained some of the image data.</dd>
+
+   <dt><dfn id="img-all" title="img-all">Completely available</dfn></dt>
+   <dd>The user agent has obtained all of the image data.</dd>
+
+   <dt><dfn id="img-error" title="img-error">Broken</dfn></dt>
+   <dd>The user agent has obtained all of the image data that it can,
+   but it cannot decode the image (e.g. the image is corrupted, or the
+   format is not supported, or no data could be obtained).</dd>
+
+  </dl><p>When an <code><a href="#the-img-element">img</a></code> element is either in the <a href="#img-inc" title="img-inc">partially available</a> state or in the <a href="#img-all" title="img-all">completely available</a> state, it is said to be
+  <dfn id="img-yes" title="img-yes">available</dfn>.</p>
+
+  <p>An <code><a href="#the-img-element">img</a></code> element is initially <a href="#img-none" title="img-none">unavailable</a>.</p>
+
+  <p>User agents may obtain images immediately or on demand.</p>
+
+  <p>A user agent that obtains images immediately must synchronously
+  <a href="#update-the-image-data">update the image data</a> of an <code><a href="#the-img-element">img</a></code> element
+  whenever that element is either created with a <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute, or has its <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute set, changed, or
+  removed.</p> <!-- Note how this does NOT happen when the base URL
+  changes. -->
+
+  <p>A user agent that obtains images on demand must <a href="#update-the-image-data">update the
+  image data</a> of an <code><a href="#the-img-element">img</a></code> element whenever it needs
+  the image data (i.e. on demand), but only if the <code><a href="#the-img-element">img</a></code>
+  element has a <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute, and
+  if it has not <a href="#update-the-image-data" title="update the image data">updated the image
+  data</a> since the last time the <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute was set. When an
+  <code><a href="#the-img-element">img</a></code> element's <code title="attr-img-src"><a href="#attr-img-src">src</a></code>
+  attribute is changed or removed, if the user agent only obtains
+  images on demand, the <code><a href="#the-img-element">img</a></code> element must return to the
+  <a href="#img-none" title="img-none">unavailable</a> state.</p> <!-- Note how
+  this does NOT happen when the base URL changes. -->
+
+  <p>When the user agent is to <dfn id="update-the-image-data">update the image data</dfn> of an
+  <code><a href="#the-img-element">img</a></code> element, it must run the following steps:</p>
+
+  <ol><li><p>Return the <code><a href="#the-img-element">img</a></code> element to the <a href="#img-none" title="img-none">unavailable</a> state.</p>
+
+   </li><li><p>If an instance of the <a href="fetching-resources.html#fetch" title="fetch">fetching</a>
+   algorithm is still running for this element, then abort that
+   algorithm, discarding any pending <a href="webappapis.html#concept-task" title="concept-task">tasks</a> generated by that
+   algorithm.</p></li>
+
+   <li><p>Forget the <code><a href="#the-img-element">img</a></code> element's current image data, if
+   any.</p></li>
+
+   <li><p>If the user agent cannot support images, or its support for
+   images has been disabled, then abort these steps.</p></li>
+
+   <li><p>If the element's <code title="attr-img-src"><a href="#attr-img-src">src</a></code>
+   attribute's value is the empty string, then set the element to the
+   <a href="#img-error" title="img-error">broken</a> state, <a href="webappapis.html#queue-a-task">queue a
    task</a> to <a href="webappapis.html#fire-a-simple-event">fire a simple event</a> named <code title="event-error">error</code> at the <code><a href="#the-img-element">img</a></code> element,
    and abort these steps.</p></li>
 
    <li>
 
     <p>Otherwise, <a href="urls.html#resolve-a-url" title="resolve a url">resolve</a> the value
-    of that attribute, relative to the element, and if that is
-    successful must then <a href="fetching-resources.html#fetch">fetch</a> that resource.</p> <!--
-    http-origin privacy sensitive -->
+    of the element's <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute,
+    relative to the element, and, if that is successful,
+    <a href="fetching-resources.html#fetch">fetch</a> that resource.</p> <!-- http-origin privacy
+    sensitive -->
+
+    <p>The resouce obtained in this fashion is the <code><a href="#the-img-element">img</a></code>
+    element's image data.</p>
 
     <!-- same text in <input type=image> section and similar text
     elsewhere --> <p>Fetching the image must <a href="the-end.html#delay-the-load-event">delay the load
@@ -417,24 +482,48 @@
     conjunction with scripting, though scripting isn't actually
     necessary to carry out such an attack). User agents may implement
     <a href="origin-0.html#origin" title="origin">cross-origin</a> access control policies
-    that mitigate this attack.</p>
+    that mitigate this attack, but unfortunately such policies are
+    typically not compatible with existing Web content.</p>
 
    </li>
 
-  </ol><p>If the image is in a supported image type and its dimensions are
-  known, then the image is said to be <dfn id="img-available" title="img-available"><i>available</i></dfn> (this affects exactly
-  what the element represents, as defined below). This can be true
-  even before the image is completely downloaded, if the user agent
-  supports incremental rendering of images; in such cases, each <a href="webappapis.html#concept-task" title="concept-task">task</a> that is <a href="webappapis.html#queue-a-task" title="queue a&#10;  task">queued</a> by the <a href="webappapis.html#networking-task-source">networking task source</a> while
-  the image is being <a href="fetching-resources.html#fetch" title="fetch">fetched</a> must update
-  the presentation of the image appropriately. It can also stop being
-  true, e.g. if the user agent finds, after obtaining the image's
-  dimensions, that the image data is actually fatally corrupted.</p>
+  </ol><p>Each <a href="webappapis.html#concept-task" title="concept-task">task</a> that is <a href="webappapis.html#queue-a-task" title="queue a task">queued</a> by the <a href="webappapis.html#networking-task-source">networking task
+  source</a> while the image is being <a href="fetching-resources.html#fetch" title="fetch">fetched</a> must set the <code><a href="#the-img-element">img</a></code> element's
+  state to <a href="#img-inc" title="img-inc">partially available</a> and update
+  the presentation of the image appropriately.</p>
 
-  <p>If the image was not fetched (e.g. because the UA's image support
-  is disabled, or because the <code title="attr-img-src"><a href="#attr-img-src">src</a></code>
-  attribute's value is the empty string, or if the conditions in the
-  previous paragraph are not met), then the image is <em>not</em> <i title="img-available"><a href="#img-available">available</a></i>.</p>
+  <p id="img-load">The <a href="webappapis.html#concept-task" title="concept-task">task</a> that is
+  <a href="webappapis.html#queue-a-task" title="queue a task">queued</a> by the <a href="webappapis.html#networking-task-source">networking
+  task source</a> once the resource has been <a href="fetching-resources.html#fetch" title="fetch">fetched</a> must act as appropriate given the
+  following alternatives:</p>
+
+  <dl class="switch"><dt>If the download was successful</dt>
+
+   <dd>Set the <code><a href="#the-img-element">img</a></code> element to the <a href="#img-all" title="img-all">completely available</a> state, update the
+   presentation of the image appropriately, and <a href="webappapis.html#queue-a-task">queue a
+   task</a> to <a href="webappapis.html#fire-a-simple-event">fire a simple event</a> named <code title="event-load">load</code> at the <code><a href="#the-img-element">img</a></code>
+   element.</dd>
+
+   <dt>Otherwise</dt>
+
+   <dd>Set the <code><a href="#the-img-element">img</a></code> element to the <a href="#img-error" title="img-error">broken</a> state, and <a href="webappapis.html#queue-a-task">queue a
+   task</a> to <a href="webappapis.html#fire-a-simple-event">fire a simple event</a> named <code title="event-error">error</code> at the <code><a href="#the-img-element">img</a></code>
+   element.</dd>
+
+  </dl><p>If at any point the user agent discovers that the image data is
+  corrupted in some fatal way, or that the image is not in a supported
+  file format, then the user agent must set the <code><a href="#the-img-element">img</a></code>
+  element to the <a href="#img-error" title="img-error">broken</a> state. If the
+  <a href="fetching-resources.html#fetch" title="fetch">fetching</a> algorithm is still running for
+  this element, then the user agent must also abort that algorithm,
+  discarding any pending <a href="webappapis.html#concept-task" title="concept-task">tasks</a>
+  generated by that algorithm, and then <a href="webappapis.html#queue-a-task">queue a task</a> to
+  <a href="webappapis.html#fire-a-simple-event">fire a simple event</a> named <code title="event-error">error</code> at the <code><a href="#the-img-element">img</a></code>
+  element.</p>
+
+  <p>When an <code><a href="#the-img-element">img</a></code> element is in the <a href="#img-all" title="img-all">completely available</a> state <em>and</em> the
+  user agent can completely decode the media data without errors, then
+  the <code><a href="#the-img-element">img</a></code> element is said to be <dfn id="img-good" title="img-good">fully decodable</dfn>.</p>
 
   <p>Whether the image is fetched successfully or not (e.g. whether
   the response code was a 2xx code <a href="fetching-resources.html#concept-http-equivalent-codes" title="concept-http-equivalent-codes">or equivalent</a>) must be
@@ -462,27 +551,7 @@
   <p>This specification does not specify which image types are to be
   supported.</p>
 
-  <p id="img-load">The <a href="webappapis.html#concept-task" title="concept-task">task</a> that is
-  <a href="webappapis.html#queue-a-task" title="queue a task">queued</a> by the <a href="webappapis.html#networking-task-source">networking
-  task source</a> once the resource has been <a href="fetching-resources.html#fetch" title="fetch">fetched</a>, must act as appropriate given the
-  following alternatives:</p>
-
-  <dl class="switch"><dt>If the download was successful and the image is <i title="img-available"><a href="#img-available">available</a></i></dt>
-
-   <dd><a href="webappapis.html#queue-a-task">Queue a task</a> to <a href="webappapis.html#fire-a-simple-event">fire a simple event</a>
-   named <code title="event-load">load</code> at the <code><a href="#the-img-element">img</a></code>
-   element (this happens after <code title="dom-img-complete"><a href="#dom-img-complete">complete</a></code> starts returning
-   true).</dd>
-
-   <dt>Otherwise (the fetching process failed without a response from
-   the remote server, or completed but the image is not a supported
-   image)</dt>
-
-   <dd><a href="webappapis.html#queue-a-task">Queue a task</a> to <a href="webappapis.html#fire-a-simple-event">fire a simple event</a>
-   named <code title="event-error">error</code> on the
-   <code><a href="#the-img-element">img</a></code> element.</dd>
-
-  </dl><p>The <a href="webappapis.html#task-source">task source</a> for these <a href="webappapis.html#concept-task" title="concept-task">tasks</a> is the <a href="webappapis.html#dom-manipulation-task-source">DOM manipulation
+  <p>The <a href="webappapis.html#task-source">task source</a> for these <a href="webappapis.html#concept-task" title="concept-task">tasks</a> is the <a href="webappapis.html#dom-manipulation-task-source">DOM manipulation
   task source</a>.</p>
 
   <hr/><p>What an <code><a href="#the-img-element">img</a></code> element represents depends on the <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute and the <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code> attribute.</p>
@@ -497,9 +566,9 @@
     the content, redundant with some other information in the
     document.</p>
 
-    <p>If the image is <i title="img-available"><a href="#img-available">available</a></i> and the
+    <p>If the image is <a href="#img-yes" title="img-yes">available</a> and the
     user agent is configured to display that image, then the element
-    <a href="rendering.html#represents">represents</a> the image specified by the <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute.</p>
+    <a href="rendering.html#represents">represents</a> the element's image data.</p>
 
     <p>Otherwise, the element <a href="rendering.html#represents">represents</a> nothing, and may
     be omitted completely from the rendering. User agents may provide
@@ -517,9 +586,9 @@
     <p>The image is a key part of the content; the <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code> attribute gives a textual
     equivalent or replacement for the image.</p>
 
-    <p>If the image is <i title="img-available"><a href="#img-available">available</a></i> and the
+    <p>If the image is <a href="#img-yes" title="img-yes">available</a> and the
     user agent is configured to display that image, then the element
-    <a href="rendering.html#represents">represents</a> the image specified by the <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute.</p>
+    <a href="rendering.html#represents">represents</a> the element's image data.</p>
 
     <p>Otherwise, the element <a href="rendering.html#represents">represents</a> the text given
     by the <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code> attribute. User
@@ -540,16 +609,15 @@
     is a key part of the content but that a textual replacement for
     the image was not available when the image was generated.</p>
 
-    <p>If the image is <i title="img-available"><a href="#img-available">available</a></i>, the
-    element <a href="rendering.html#represents">represents</a> the image specified by the <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute.</p>
+    <p>If the image is <a href="#img-yes" title="img-yes">available</a> and the
+    user agent is configured to display that image, then the element
+    <a href="rendering.html#represents">represents</a> the element's image data.</p>
 
-    <p>If the image is not <i title="img-available"><a href="#img-available">available</a></i> or
-    if the user agent is not configured to display the image, then the
-    user agent should display some sort of indicator that there is an
-    image that is not being rendered, and may, if requested by the
-    user, or if so configured, or when required to provide contextual
-    information in response to navigation, provide caption information
-    for the image, derived as follows:</p>
+    <p>Otherwise, the user agent should display some sort of indicator
+    that there is an image that is not being rendered, and may, if
+    requested by the user, or if so configured, or when required to
+    provide contextual information in response to navigation, provide
+    caption information for the image, derived as follows:</p>
 
     <ol><!-- when editing this list, search for the two other occurrences
      of 'critical-no-alt' --><li><p>If the image has a <code title="attr-title"><a href="elements.html#the-title-attribute">title</a></code>
@@ -557,10 +625,15 @@
      that attribute is the caption information; abort these
      steps.</p></li>
 
-     <li><p>If the image is the child of a <code><a href="grouping-content.html#the-figure-element">figure</a></code> element
-     that has a child <code><a href="grouping-content.html#the-figcaption-element">figcaption</a></code> element, then the
-     contents of the first such <code><a href="grouping-content.html#the-figcaption-element">figcaption</a></code> element are
-     the caption information; abort these steps.</p></li>
+     <li><p>If the image is a descendant of a <code><a href="grouping-content.html#the-figure-element">figure</a></code>
+     element that has a child <code><a href="grouping-content.html#the-figcaption-element">figcaption</a></code> element, and,
+     ignoring the <code><a href="grouping-content.html#the-figcaption-element">figcaption</a></code> element and its descendants,
+     the <code><a href="grouping-content.html#the-figure-element">figure</a></code> element has no text node descendants
+     other than <a href="content-models.html#inter-element-whitespace">inter-element whitespace</a>, and no
+     <a href="content-models.html#embedded-content">embedded content</a> descendant other than the
+     <code><a href="#the-img-element">img</a></code> element, then the contents of the first such
+     <code><a href="grouping-content.html#the-figcaption-element">figcaption</a></code> element are the caption information;
+     abort these steps.</p></li>
 
     </ol></dd>
 
@@ -648,9 +721,8 @@
 
    <dd>
 
-    <p>Returns true if the image has been downloaded, decoded, and
-    found to be valid, or if no image is specified; otherwise, returns
-    false.</p>
+    <p>Returns true if the image has been completely downloaded or if
+    no image is specified; otherwise, returns false.</p>
 
    </dd>
 
@@ -669,9 +741,9 @@
   rendered width and height of the image, in CSS pixels, if the image
   is <a href="rendering.html#being-rendered">being rendered</a>, and is being rendered to a visual
   medium; or else the intrinsic width and height of the image, in CSS
-  pixels, if the image is <i title="img-available"><a href="#img-available">available</a></i> but
+  pixels, if the image is <i title="img-available">available</i> but
   not being rendered to a visual medium; or else 0, if the image is
-  not <i title="img-available"><a href="#img-available">available</a></i>. <a href="references.html#refsCSS">[CSS]</a></p>
+  not <i title="img-available">available</i>. <a href="references.html#refsCSS">[CSS]</a></p>
 
   <p>On setting, they must act as if they <a href="common-dom-interfaces.html#reflect" title="reflect">reflected</a> the respective content attributes
   of the same name.</p>
@@ -679,17 +751,16 @@
   <p>The IDL attributes <dfn id="dom-img-naturalwidth" title="dom-img-naturalWidth"><code>naturalWidth</code></dfn> and
   <dfn id="dom-img-naturalheight" title="dom-img-naturalHeight"><code>naturalHeight</code></dfn>
   must return the intrinsic width and height of the image, in CSS
-  pixels, if the image is <i title="img-available"><a href="#img-available">available</a></i>, or
+  pixels, if the image is <i title="img-available">available</i>, or
   else 0. <a href="references.html#refsCSS">[CSS]</a></p>
 
   <p>The IDL attribute <dfn id="dom-img-complete" title="dom-img-complete"><code>complete</code></dfn> must return
-  true if either the <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute
-  is omitted, or its value is the empty string, or if the user agent
-  has fetched the image specified in the <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute and it is in a supported
-  image type (i.e. it was decoded without fatal errors), even if the
-  final <a href="webappapis.html#concept-task" title="concept-task">task</a> queued by the
-  <a href="webappapis.html#networking-task-source">networking task source</a> for the <a href="fetching-resources.html#fetch" title="fetch">fetching</a> of the image resource has not yet been
-  processed. Otherwise, the attribute must return false.</p>
+  true if any of the following conditions is true:</p>
+  <ul class="brief"><li>The <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute is omitted.
+   </li><li>The <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute's value is the empty string.
+   </li><li>The final <a href="webappapis.html#concept-task" title="concept-task">task</a> that is <a href="webappapis.html#queue-a-task" title="queue a task">queued</a> by the <a href="webappapis.html#networking-task-source">networking task source</a> once the resource has been <a href="fetching-resources.html#fetch" title="fetch">fetched</a> has been <a href="webappapis.html#queue-a-task" title="queue a task">queued</a>, but has not yet been run, and the <code><a href="#the-img-element">img</a></code> element is not in the <a href="#img-error" title="img-error">broken</a> state.
+   </li><li>The <code><a href="#the-img-element">img</a></code> element is <a href="#img-all" title="img-all">completely available</a>.
+  </li></ul><p>Otherwise, the attribute must return false.</p>
 
   <p class="note">The value of <code title="dom-img-complete"><a href="#dom-img-complete">complete</a></code> can thus change while a
   <a href="webappapis.html#concept-script" title="concept-script">script</a> is executing.</p>
@@ -809,11 +880,25 @@
  &lt;p&gt;He would play in the morning, he would play in the evening.&lt;/p&gt;
 &lt;/article&gt;</pre>
 
-  </div><h5 id="alt"><span class="secno">4.8.1.1 </span>Requirements for providing text to act as an alternative for images</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>Except where otherwise specified, the <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code> attribute must be specified and its
+  </div><h5 id="alt"><span class="secno">4.8.1.1 </span>Requirements for providing text to act as an alternative for images</h5><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><h6 id="general-guidelines"><span class="secno">4.8.1.1.1 </span>General guidelines</h6><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>Except where otherwise specified, the <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code> attribute must be specified and its
   value must not be empty; the value must be an appropriate
   replacement for the image. The specific requirements for the <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code> attribute depend on what the image
   is intended to represent, as described in the following
-  sections.</p><h6 id="a-link-or-button-containing-nothing-but-the-image"><span class="secno">4.8.1.1.1 </span>A link or button containing nothing but the image</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>When an <a href="text-level-semantics.html#the-a-element">a</a> element that creates a
+  sections.</p><p>The most general rule to consider when writing alternative text
+  is the following: <strong>the intent is that replacing every image
+  with the text of its <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code> attribute
+  not change the meaning of the page</strong>.</p><p>So, in general, alternative text can be written by considering
+  what one would have written had one not been able to include the
+  image.</p><p>A corollary to this is that the <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code> attribute's value should never
+  contain text that could be considered the image's <em>caption</em>,
+  <em>title</em>, or <em>legend</em>. It is supposed to contain
+  replacement text that could be used by users <em>instead</em> of the
+  image; it is not meant to supplement the image. The <code title="attr-title"><a href="elements.html#the-title-attribute">title</a></code> attribute can be used for
+  supplemental information.</p><p class="note">One way to think of alternative text is to think
+  about how you would read the page containing the image to someone
+  over the phone, without mentioning that there is an image
+  present. Whatever you say instead of the image is typically a good
+  start for writing the alternative text.</p><h6 id="a-link-or-button-containing-nothing-but-the-image"><span class="secno">4.8.1.1.2 </span>A link or button containing nothing but the image</h6><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>When an <a href="text-level-semantics.html#the-a-element">a</a> element that creates a
   <a href="links.html#hyperlink">hyperlink</a>, or a <code><a href="the-button-element.html#the-button-element">button</a></code> element, has no
   textual content but contains one or more images, the <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code> attributes must contain text that
   together convey the purpose of the link or button.</p><div class="example">
@@ -852,7 +937,7 @@
    <pre>&lt;button name="rgb"&gt;<strong>&lt;img src="red" alt="sRGB profile"&gt;&lt;img src="green" alt=""&gt;&lt;img src="blue" alt=""&gt;</strong>&lt;/button&gt;
 &lt;button name="cmyk"&gt;<strong>&lt;img src="cyan" alt="CMYK profile"&gt;&lt;img src="magenta" alt=""&gt;&lt;img src="yellow" alt=""&gt;&lt;img src="black" alt=""&gt;</strong>&lt;/button&gt;</pre>
 
-  </div><h6 id="a-phrase-or-paragraph-with-an-alternative-graphical-representation:-charts-diagrams-graphs-maps-illustrations"><span class="secno">4.8.1.1.2 </span>A phrase or paragraph with an alternative graphical representation: charts, diagrams, graphs, maps, illustrations</h6><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>Sometimes something can be more clearly stated in graphical
+  </div><h6 id="a-phrase-or-paragraph-with-an-alternative-graphical-representation:-charts-diagrams-graphs-maps-illustrations"><span class="secno">4.8.1.1.3 </span>A phrase or paragraph with an alternative graphical representation: charts, diagrams, graphs, maps, illustrations</h6><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>Sometimes something can be more clearly stated in graphical
   form, for example as a flowchart, a diagram, a graph, or a simple
   map showing directions. In such cases, an image can be given using
   the <code><a href="#the-img-element">img</a></code> element, but the lesser textual version must
@@ -914,7 +999,7 @@
    <code><a href="grouping-content.html#the-figcaption-element">figcaption</a></code> element of a <code><a href="grouping-content.html#the-figure-element">figure</a></code> with this
    image).</p>
 
-  </div><h6 id="a-short-phrase-or-label-with-an-alternative-graphical-representation:-icons-logos"><span class="secno">4.8.1.1.3 </span>A short phrase or label with an alternative graphical representation: icons, logos</h6><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>A document can contain information in iconic form. The icon is
+  </div><h6 id="a-short-phrase-or-label-with-an-alternative-graphical-representation:-icons-logos"><span class="secno">4.8.1.1.4 </span>A short phrase or label with an alternative graphical representation: icons, logos</h6><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>A document can contain information in iconic form. The icon is
   intended to help users of visual browsers to recognize features at
   a glance.</p><p>In some cases, the icon is supplemental to a text label
   conveying the same meaning. In those cases, the <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code> attribute must be present but must
@@ -1016,11 +1101,11 @@
 at least that would look good on the cover of a blue book.&lt;/p&gt;</pre>
 
    <p>This example shows how the alternative text should be written
-   such that if the image isn't <i title="img-available"><a href="#img-available">available</a></i>, and the text is used instead,
+   such that if the image isn't <i title="img-available">available</i>, and the text is used instead,
    the text flows seamlessly into the surrounding text, as if the
    image had never been there in the first place.</p>
 
-  </div><h6 id="text-that-has-been-rendered-to-a-graphic-for-typographical-effect"><span class="secno">4.8.1.1.4 </span>Text that has been rendered to a graphic for typographical effect</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>Sometimes, an image just consists of text, and the purpose of the
+  </div><h6 id="text-that-has-been-rendered-to-a-graphic-for-typographical-effect"><span class="secno">4.8.1.1.5 </span>Text that has been rendered to a graphic for typographical effect</h6><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>Sometimes, an image just consists of text, and the purpose of the
   image is not to highlight the actual typographic effects used to
   render the text, but just to convey the text itself.</p><p>In such cases, the <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code>
   attribute must be present but must consist of the same text as
@@ -1034,7 +1119,7 @@
 
    <pre>&lt;h1&gt;<strong>&lt;img src="earthdayheading.png" alt="Earth Day"&gt;</strong>&lt;/h1&gt;</pre>
 
-  </div><h6 id="a-graphical-representation-of-some-of-the-surrounding-text"><span class="secno">4.8.1.1.5 </span>A graphical representation of some of the surrounding text</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>In many cases, the image is actually just supplementary, and
+  </div><h6 id="a-graphical-representation-of-some-of-the-surrounding-text"><span class="secno">4.8.1.1.6 </span>A graphical representation of some of the surrounding text</h6><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>In many cases, the image is actually just supplementary, and
   its presence merely reinforces the surrounding text. In these
   cases, the <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code> attribute must be
   present but its value must be the empty string.</p><p>In general, an image falls into this category if removing the
@@ -1104,7 +1189,7 @@
 Standards mode, and about 9% triggered the Standards mode.&lt;/p&gt;
 <strong>&lt;p&gt;&lt;img src="rendering-mode-pie-chart.png" alt=""&gt;&lt;/p&gt;</strong></pre>
 
-  </div><h6 id="a-purely-decorative-image-that-doesn-t-add-any-information"><span class="secno">4.8.1.1.6 </span>A purely decorative image that doesn't add any information</h6><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>In general, if an image is decorative but isn't especially
+  </div><h6 id="a-purely-decorative-image-that-doesn-t-add-any-information"><span class="secno">4.8.1.1.7 </span>A purely decorative image that doesn't add any information</h6><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>In general, if an image is decorative but isn't especially
   page-specific, for example an image that forms part of a site-wide
   design scheme, the image should be specified in the site's CSS,
   not in the markup of the document.</p><p>However, a decorative image that isn't discussed by the
@@ -1132,7 +1217,7 @@
 Round an island there below,&lt;br&gt;
 The island of Shalott.&lt;/p&gt;</pre>
 
-  </div><h6 id="a-group-of-images-that-form-a-single-larger-picture-with-no-links"><span class="secno">4.8.1.1.7 </span>A group of images that form a single larger picture with no links</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>When a picture has been sliced into smaller image files that are
+  </div><h6 id="a-group-of-images-that-form-a-single-larger-picture-with-no-links"><span class="secno">4.8.1.1.8 </span>A group of images that form a single larger picture with no links</h6><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>When a picture has been sliced into smaller image files that are
   then displayed together to form the complete picture again, one of
   the images must have its <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code>
   attribute set as per the relevant rules that would be appropriate
@@ -1161,7 +1246,7 @@
   &gt;&lt;img src="1" alt=""&gt;&lt;img src="1" alt=""&gt;&lt;img src="0" alt=""
   &gt;&lt;img src="0" alt=""&gt;</strong>&lt;/meter&gt;&lt;/p&gt;</pre>
 
-  </div><h6 id="a-group-of-images-that-form-a-single-larger-picture-with-links"><span class="secno">4.8.1.1.8 </span>A group of images that form a single larger picture with links</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>Generally, <a href="the-map-element.html#image-map" title="image map">image maps</a> should be
+  </div><h6 id="a-group-of-images-that-form-a-single-larger-picture-with-links"><span class="secno">4.8.1.1.9 </span>A group of images that form a single larger picture with links</h6><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>Generally, <a href="the-map-element.html#image-map" title="image map">image maps</a> should be
   used instead of slicing an image for links.</p><p>However, if an image is indeed sliced and any of the components
   of the sliced picture are the sole contents of links, then one image
   per link must have alternative text in its <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code> attribute representing the purpose
@@ -1179,7 +1264,7 @@
   &gt;&lt;img src="fsm-middle.png" alt=""
   &gt;&lt;a href="?go=right"&gt;&lt;img src="fsm-right.png" alt="Right side."&gt;&lt;/a&gt;&lt;/p&gt;</strong></pre>
 
-  </div><h6 id="a-key-part-of-the-content"><span class="secno">4.8.1.1.9 </span>A key part of the content</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>In some cases, the image is a critical part of the
+  </div><h6 id="a-key-part-of-the-content"><span class="secno">4.8.1.1.10 </span>A key part of the content</h6><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>In some cases, the image is a critical part of the
   content. This could be the case, for instance, on a page that is
   part of a photo gallery. The image is the whole <em>point</em> of
   the page containing it.</p><p>How to provide alternative text for an image that is a key part
@@ -1317,17 +1402,22 @@
     (e.g. a blind photographer sharing an image on his blog).</p>
 
     <p>In such cases, the <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code>
-    attribute's value may be omitted, but one of the following
-    conditions must be met as well:</p>
+    attribute may be omitted, but one of the following conditions must
+    be met as well:</p>
 
     <ul><!-- when editing this list, search for the two other occurrences
      of 'critical-no-alt' --><li>The <code title="attr-title"><a href="elements.html#the-title-attribute">title</a></code> attribute is
      present and has a non-empty value.</li>
 
-     <li>The <code><a href="#the-img-element">img</a></code> element is in a <code><a href="grouping-content.html#the-figure-element">figure</a></code>
-     element that contains a <code><a href="grouping-content.html#the-figcaption-element">figcaption</a></code> element that
-     contains content other than <a href="content-models.html#inter-element-whitespace">inter-element
-     whitespace</a>.</li>
+     <li id="figcaption-as-alt-condition">The <code><a href="#the-img-element">img</a></code> element
+     is in a <code><a href="grouping-content.html#the-figure-element">figure</a></code> element that contains a
+     <code><a href="grouping-content.html#the-figcaption-element">figcaption</a></code> element that contains content other than
+     <a href="content-models.html#inter-element-whitespace">inter-element whitespace</a>, and, ignoring the
+     <code><a href="grouping-content.html#the-figcaption-element">figcaption</a></code> element and its descendants, the
+     <code><a href="grouping-content.html#the-figure-element">figure</a></code> element has no text node descendants other
+     than <a href="content-models.html#inter-element-whitespace">inter-element whitespace</a>, and no <a href="content-models.html#embedded-content">embedded
+     content</a> descendant other than the <code><a href="#the-img-element">img</a></code>
+     element.</li>
 
     </ul><p class="note">Such cases are to be kept to an absolute
     minimum. If there is even the slightest possibility of the author
@@ -1435,13 +1525,13 @@
 
    </dd>
 
-  </dl><h6 id="an-image-not-intended-for-the-user"><span class="secno">4.8.1.1.10 </span>An image not intended for the user</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>Generally authors should avoid using <code><a href="#the-img-element">img</a></code> elements
+  </dl><h6 id="an-image-not-intended-for-the-user"><span class="secno">4.8.1.1.11 </span>An image not intended for the user</h6><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>Generally authors should avoid using <code><a href="#the-img-element">img</a></code> elements
   for purposes other than showing images.</p><p>If an <code><a href="#the-img-element">img</a></code> element is being used for purposes other
   than showing an image, e.g. as part of a service to count page
   views, then the <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code> attribute must
   be the empty string.</p><p>In such cases, the <code title="attr-dim-width"><a href="the-map-element.html#attr-dim-width">width</a></code> and
   <code title="attr-dim-height"><a href="the-map-element.html#attr-dim-height">height</a></code> attributes should both
-  be set to zero.</p><h6 id="an-image-in-an-e-mail-or-private-document-intended-for-a-specific-person-who-is-known-to-be-able-to-view-images"><span class="secno">4.8.1.1.11 </span>An image in an e-mail or private document intended for a specific person who is known to be able to view images</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p><i>This section does not apply to documents that are publicly
+  be set to zero.</p><h6 id="an-image-in-an-e-mail-or-private-document-intended-for-a-specific-person-who-is-known-to-be-able-to-view-images"><span class="secno">4.8.1.1.12 </span>An image in an e-mail or private document intended for a specific person who is known to be able to view images</h6><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p><i>This section does not apply to documents that are publicly
   accessible, or whose target audience is not necessarily personally
   known to the author, such as documents on a Web site, e-mails sent
   to public mailing lists, or software documentation.</i></p><p>When an image is included in a private communication (such as an
@@ -1453,23 +1543,9 @@
   the e-mail is still usable should the user use a mail client that
   does not support images, or should the document be forwarded on to
   other users whose abilities might not include easily seeing
-  images.</p><h6 id="general-guidelines"><span class="secno">4.8.1.1.12 </span>General guidelines</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/31">ISSUE-31</a> (alt-conformance-requirements) blocks progress to Last Call</span></p><p>The most general rule to consider when writing alternative text
-  is the following: <strong>the intent is that replacing every image
-  with the text of its <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code> attribute
-  not change the meaning of the page</strong>.</p><p>So, in general, alternative text can be written by considering
-  what one would have written had one not been able to include the
-  image.</p><p>A corollary to this is that the <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code> attribute's value should never
-  contain text that could be considered the image's <em>caption</em>,
-  <em>title</em>, or <em>legend</em>. It is supposed to contain
-  replacement text that could be used by users <em>instead</em> of the
-  image; it is not meant to supplement the image. The <code title="attr-title"><a href="elements.html#the-title-attribute">title</a></code> attribute can be used for
-  supplemental information.</p><p class="note">One way to think of alternative text is to think
-  about how you would read the page containing the image to someone
-  over the phone, without mentioning that there is an image
-  present. Whatever you say instead of the image is typically a good
-  start for writing the alternative text.</p><div class="impl">
+  images.</p><div class="impl">
 
-  <h6 id="guidance-for-markup-generators"><span class="secno">4.8.1.1.13 </span>Guidance for markup generators</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h6 id="guidance-for-markup-generators"><span class="secno">4.8.1.1.13 </span>Guidance for markup generators</h6>
 
   <p>Markup generators (such as WYSIWYG authoring tools) should,
   wherever possible, obtain alternative text from their
@@ -1502,7 +1578,7 @@
 
   </div><div class="impl">
 
-  <h6 id="guidance-for-conformance-checkers"><span class="secno">4.8.1.1.14 </span>Guidance for conformance checkers</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h6 id="guidance-for-conformance-checkers"><span class="secno">4.8.1.1.14 </span>Guidance for conformance checkers</h6>
 
   <p>A conformance checker must report the lack of an <code title="attr-img-alt"><a href="#attr-img-alt">alt</a></code> attribute as an error unless one of
   the conditions listed below applies:</p>
@@ -1513,9 +1589,8 @@
    above</a>).</li>
 
    <li>The <code><a href="#the-img-element">img</a></code> element is in a <code><a href="grouping-content.html#the-figure-element">figure</a></code>
-   element that contains a <code><a href="grouping-content.html#the-figcaption-element">figcaption</a></code> element that
-   contains content other than <a href="content-models.html#inter-element-whitespace">inter-element whitespace</a>
-   (as <a href="#unknown-images">described above</a>).</li>
+   element that satisfies <a href="#figcaption-as-alt-condition">the
+   conditions described above</a>.</li>
 
    <!-- the following are additional entries not included in the
    aforementioned list, as they apply only to conformance checkers -->

Index: the-input-element.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/the-input-element.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- the-input-element.html	28 Aug 2010 23:52:55 -0000	1.1
+++ the-input-element.html	19 Oct 2010 17:38:08 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -317,12 +327,13 @@
    <a href="forms.html">&#x2190; 4.10 Forms</a> &#x2013;
    <a href="spec.html#contents">Table of contents</a> &#x2013;
    <a href="states-of-the-type-attribute.html">4.10.7.1 States of the type attribute &#x2192;</a>
-  </div><h4 id="the-input-element"><span class="secno">4.10.7 </span>The <dfn><code>input</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-input-element"><span class="secno">4.10.7 </span>The <dfn><code>input</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
    <dd>If the <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute is <em>not</em> in the <a href="states-of-the-type-attribute.html#hidden-state" title="attr-input-type-hidden">Hidden</a> state: <a href="content-models.html#interactive-content">Interactive content</a>.</dd>
-   <dd><a href="forms.html#category-listed" title="category-listed">Listed</a>, <a href="forms.html#category-label" title="category-label">labelable</a>, <a href="forms.html#category-submit" title="category-submit">submittable</a>, and <a href="forms.html#category-reset" title="category-reset">resettable</a> <a href="forms.html#form-associated-element">form-associated element</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dd>If the <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute is <em>not</em> in the <a href="states-of-the-type-attribute.html#hidden-state" title="attr-input-type-hidden">Hidden</a> state:<a href="forms.html#category-listed" title="category-listed">Listed</a>, <a href="forms.html#category-label" title="category-label">labelable</a>, <a href="forms.html#category-submit" title="category-submit">submittable</a>, and <a href="forms.html#category-reset" title="category-reset">resettable</a> <a href="forms.html#form-associated-element">form-associated element</a>.</dd>
+   <dd>If the <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute is in the <a href="states-of-the-type-attribute.html#hidden-state" title="attr-input-type-hidden">Hidden</a> state: <a href="forms.html#category-listed" title="category-listed">Listed</a>, <a href="forms.html#category-submit" title="category-submit">submittable</a>, and <a href="forms.html#category-reset" title="category-reset">resettable</a> <a href="forms.html#form-associated-element">form-associated element</a>.</dd>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd>Empty.</dd>
@@ -408,10 +419,10 @@
 
   readonly attribute <a href="infrastructure.html#nodelist">NodeList</a> <a href="forms.html#dom-lfe-labels" title="dom-lfe-labels">labels</a>;
 
-  void <a href="editing.html#dom-textarea-input-select" title="dom-textarea/input-select">select</a>();
-           attribute unsigned long <a href="editing.html#dom-textarea-input-selectionstart" title="dom-textarea/input-selectionStart">selectionStart</a>;
-           attribute unsigned long <a href="editing.html#dom-textarea-input-selectionend" title="dom-textarea/input-selectionEnd">selectionEnd</a>;
-  void <a href="editing.html#dom-textarea-input-setselectionrange" title="dom-textarea/input-setSelectionRange">setSelectionRange</a>(in unsigned long start, in unsigned long end);
+  void <a href="association-of-controls-and-forms.html#dom-textarea-input-select" title="dom-textarea/input-select">select</a>();
+           attribute unsigned long <a href="association-of-controls-and-forms.html#dom-textarea-input-selectionstart" title="dom-textarea/input-selectionStart">selectionStart</a>;
+           attribute unsigned long <a href="association-of-controls-and-forms.html#dom-textarea-input-selectionend" title="dom-textarea/input-selectionEnd">selectionEnd</a>;
+  void <a href="association-of-controls-and-forms.html#dom-textarea-input-setselectionrange" title="dom-textarea/input-setSelectionRange">setSelectionRange</a>(in unsigned long start, in unsigned long end);
 };</pre>
    </dd>
   </dl><p>The <code><a href="#the-input-element">input</a></code> element <a href="rendering.html#represents">represents</a> a typed data field,
@@ -517,9 +528,9 @@
      </td><td> n/a
      </td><td> A button
   </td></tr></tbody></table><p>The <i>missing value default</i> is the <a href="states-of-the-type-attribute.html#text-state-and-search-state" title="attr-input-type-text">Text</a> state.</p><p>Which of the <code title="attr-input-accept"><a href="number-state.html#attr-input-accept">accept</a></code>, <code title="attr-input-alt"><a href="number-state.html#attr-input-alt">alt</a></code>, <code title="attr-input-autocomplete"><a href="common-input-element-attributes.html#attr-input-autocomplete">autocomplete</a></code>, <code title="attr-input-checked"><a href="#attr-input-checked">checked</a></code>, <code title="attr-fs-formaction"><a href="association-of-controls-and-forms.html#attr-fs-formaction">formaction</a></code>, <code title="attr-fs-formenctype"><a href="association-of-controls-and-forms.html#attr-fs-formenctype">formenctype</a></code>, <code title="attr-fs-formmethod"><a href="association-of-controls-and-forms.html#attr-fs-formmethod">formmethod</a></code>, <code title="attr-fs-formnovalidate"><a href="association-of-controls-and-forms.html#attr-fs-formnovalidate">formnovalidate</a></code>, <code title="attr-fs-formtarget"><a href="association-of-controls-and-forms.html#attr-fs-formtarget">formtarget</a></code>, <code title="attr-dim-height"><a href="the-map-element.html#attr-dim-height">height</a></code>, <code title="attr-input-list"><a href="common-input-element-attributes.html#attr-input-list">list</a></code>, <code title="attr-input-max"><a href="common-input-element-attributes.html#attr-input-max">max</a></code>, <code title="attr-input-maxlength"><a href="common-input-element-attributes.html#attr-input-maxlength">maxlength</a></code>, <code title="attr-input-min"><a href="common-input-element-attributes.html#attr-input-min">min</a></code>, <code title="attr-input-multiple"><a href="common-input-element-attributes.html#attr-input-multiple">multiple</a></code>, <code title="attr-input-pattern"><a href="common-input-element-attributes.html#attr-input-pattern">pattern</a></code>, <code title="attr-input-placeholder"><a href="common-input-element-attributes.html#attr-input-placeholder">placeholder</a></code>, <code title="attr-input-readonly"><a href="common-input-element-attributes.html#attr-input-readonly">readonly</a></code>, <code title="attr-input-required"><a href="common-input-element-attributes.html#attr-input-required">required</a></code>, <code title="attr-input-size"><a href="common-input-element-attributes.html#attr-input-size">size</a></code>, <code title="attr-input-src"><a href="number-state.html#attr-input-src">src</a></code>, <code title="attr-input-step"><a href="common-input-element-attributes.html#attr-input-step">step</a></code>, and <code title="attr-dim-width"><a href="the-map-element.html#attr-dim-width">width</a></code> content attributes, the <code title="dom-input-checked"><a href="common-input-element-attributes.html#dom-input-checked">checked</a></code>, <code title="dom-input-files"><a href="common-input-element-attributes.html#dom-input-files">files</a></code>, <code title="dom-input-valueAsDate"><a href="common-input-element-attributes.html#dom-input-valueasdate">valueAsDate</a></code>, <code title="dom-input-valueAsNumber"><a href="common-input-element-attributes.html#dom-input-valueasnumber">valueAsNumber</a></code>, <code title="dom-input-list"><a href="common-input-element-attributes.html#dom-input-list">list</a></code>, and <code title="dom-input-selectedOption"><a href="common-input-element-attributes.html#dom-input-selectedoption">selectedOption</a></code> IDL
-  attributes, the <code title="dom-textarea/input-select"><a href="editing.html#dom-textarea-input-select">select()</a></code> method, the <code title="dom-textarea/input-selectionStart"><a href="editing.html#dom-textarea-input-selectionstart">selectionStart</a></code> and
-  <code title="dom-textarea/input-selectionEnd"><a href="editing.html#dom-textarea-input-selectionend">selectionEnd</a></code>
-  IDL attributes, the <code title="dom-textarea/input-setSelectionRange"><a href="editing.html#dom-textarea-input-setselectionrange">setSelectionRange()</a></code>
+  attributes, the <code title="dom-textarea/input-select"><a href="association-of-controls-and-forms.html#dom-textarea-input-select">select()</a></code> method, the <code title="dom-textarea/input-selectionStart"><a href="association-of-controls-and-forms.html#dom-textarea-input-selectionstart">selectionStart</a></code> and
+  <code title="dom-textarea/input-selectionEnd"><a href="association-of-controls-and-forms.html#dom-textarea-input-selectionend">selectionEnd</a></code>
+  IDL attributes, the <code title="dom-textarea/input-setSelectionRange"><a href="association-of-controls-and-forms.html#dom-textarea-input-setselectionrange">setSelectionRange()</a></code>
   method, the <code title="dom-input-stepUp"><a href="common-input-element-attributes.html#dom-input-stepup">stepUp()</a></code> and
   <code title="dom-input-stepDown"><a href="common-input-element-attributes.html#dom-input-stepdown">stepDown()</a></code> methods, and the
   <code title="event-input-input"><a href="common-input-element-attributes.html#event-input-input">input</a></code> and <code title="event-input-change"><a href="common-input-element-attributes.html#event-input-change">change</a></code> events apply to an
@@ -1275,7 +1286,7 @@
      </td><td class="no"> &#xB7; <!-- Reset Button -->
 <!-- <td class="no"> &middot;      Button -->
 
-    </td></tr><tr><th> <code title="dom-textarea/input-select"><a href="editing.html#dom-textarea-input-select">select()</a></code>
+    </td></tr><tr><th> <code title="dom-textarea/input-select"><a href="association-of-controls-and-forms.html#dom-textarea-input-select">select()</a></code>
      </th><td class="no"> &#xB7; <!-- Hidden -->
      </td><td class="yes"> Yes     <!-- Text -->
 <!-- <td class="yes"> Yes          Search -->
@@ -1299,7 +1310,7 @@
      </td><td class="no"> &#xB7; <!-- Reset Button -->
 <!-- <td class="no"> &middot;      Button -->
 
-    </td></tr><tr><th> <code title="dom-textarea/input-selectionStart"><a href="editing.html#dom-textarea-input-selectionstart">selectionStart</a></code>
+    </td></tr><tr><th> <code title="dom-textarea/input-selectionStart"><a href="association-of-controls-and-forms.html#dom-textarea-input-selectionstart">selectionStart</a></code>
      </th><td class="no"> &#xB7; <!-- Hidden -->
      </td><td class="yes"> Yes     <!-- Text -->
 <!-- <td class="yes"> Yes          Search -->
@@ -1323,7 +1334,7 @@
      </td><td class="no"> &#xB7; <!-- Reset Button -->
 <!-- <td class="no"> &middot;      Button -->
 
-    </td></tr><tr><th> <code title="dom-textarea/input-selectionEnd"><a href="editing.html#dom-textarea-input-selectionend">selectionEnd</a></code>
+    </td></tr><tr><th> <code title="dom-textarea/input-selectionEnd"><a href="association-of-controls-and-forms.html#dom-textarea-input-selectionend">selectionEnd</a></code>
      </th><td class="no"> &#xB7; <!-- Hidden -->
      </td><td class="yes"> Yes     <!-- Text -->
 <!-- <td class="yes"> Yes          Search -->
@@ -1347,7 +1358,7 @@
      </td><td class="no"> &#xB7; <!-- Reset Button -->
 <!-- <td class="no"> &middot;      Button -->
 
-    </td></tr><tr><th> <code title="dom-textarea/input-setSelectionRange"><a href="editing.html#dom-textarea-input-setselectionrange">setSelectionRange()</a></code>
+    </td></tr><tr><th> <code title="dom-textarea/input-setSelectionRange"><a href="association-of-controls-and-forms.html#dom-textarea-input-setselectionrange">setSelectionRange()</a></code>
      </th><td class="no"> &#xB7; <!-- Hidden -->
      </td><td class="yes"> Yes     <!-- Text -->
 <!-- <td class="yes"> Yes          Search -->
@@ -1533,8 +1544,9 @@
   the <code title="attr-input-value"><a href="#attr-input-value">value</a></code> content attribute,
   if there is one, or the empty string otherwise, set the <a href="association-of-controls-and-forms.html#concept-fe-checked" title="concept-fe-checked">checkedness</a> of the element to true
   if the element has a <code title="attr-input-checked"><a href="#attr-input-checked">checked</a></code>
-  content attribute and false if it does not, and then invoke the
-  <a href="#value-sanitization-algorithm">value sanitization algorithm</a>, if the <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute's current state
+  content attribute and false if it does not, empty the list of <a href="number-state.html#concept-input-type-file-selected" title="concept-input-type-file-selected">selected files</a>, and
+  then invoke the <a href="#value-sanitization-algorithm">value sanitization algorithm</a>, if the
+  <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute's current state
   defines one.</p>
 
   <p>Each <code><a href="#the-input-element">input</a></code> element is either <dfn id="concept-input-mutable" title="concept-input-mutable"><i>mutable</i></dfn> or <dfn id="concept-input-immutable" title="concept-input-immutable"><i>immutable</i></dfn>. Except where
@@ -1624,9 +1636,9 @@
   attributes, and the <code title="dom-cva-checkValidatity"><a href="association-of-controls-and-forms.html#dom-cva-checkvalidatity">checkValidity()</a></code> and <code title="dom-cva-setCustomValidity"><a href="association-of-controls-and-forms.html#dom-cva-setcustomvalidity">setCustomValidity()</a></code>
   methods, are part of the <a href="association-of-controls-and-forms.html#the-constraint-validation-api">constraint validation API</a>. The
   <code title="dom-lfe-labels"><a href="forms.html#dom-lfe-labels">labels</a></code> attribute provides a list
-  of the element's <code><a href="forms.html#the-label-element">label</a></code>s. The <code title="dom-textarea/input-select"><a href="editing.html#dom-textarea-input-select">select()</a></code>, <code title="dom-textarea/input-selectionStart"><a href="editing.html#dom-textarea-input-selectionstart">selectionStart</a></code>,
-  <code title="dom-textarea/input-selectionEnd"><a href="editing.html#dom-textarea-input-selectionend">selectionEnd</a></code>,
-  and <code title="dom-textarea/input-setSelectionRange"><a href="editing.html#dom-textarea-input-setselectionrange">setSelectionRange()</a></code>
+  of the element's <code><a href="forms.html#the-label-element">label</a></code>s. The <code title="dom-textarea/input-select"><a href="association-of-controls-and-forms.html#dom-textarea-input-select">select()</a></code>, <code title="dom-textarea/input-selectionStart"><a href="association-of-controls-and-forms.html#dom-textarea-input-selectionstart">selectionStart</a></code>,
+  <code title="dom-textarea/input-selectionEnd"><a href="association-of-controls-and-forms.html#dom-textarea-input-selectionend">selectionEnd</a></code>,
+  and <code title="dom-textarea/input-setSelectionRange"><a href="association-of-controls-and-forms.html#dom-textarea-input-setselectionrange">setSelectionRange()</a></code>
   methods and attributes expose the element's text selection. The
   <code title="dom-fe-autofocus"><a href="association-of-controls-and-forms.html#dom-fe-autofocus">autofocus</a></code>, <code title="dom-fe-disabled"><a href="association-of-controls-and-forms.html#dom-fe-disabled">disabled</a></code>, <code title="dom-fae-form"><a href="association-of-controls-and-forms.html#dom-fae-form">form</a></code>, and <code title="dom-fe-name"><a href="association-of-controls-and-forms.html#dom-fe-name">name</a></code> IDL attributes are part of the
   element's forms API.</p>

Index: rendering.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/rendering.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- rendering.html	28 Aug 2010 23:52:54 -0000	1.1
+++ rendering.html	19 Oct 2010 17:38:08 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
[...1502 lines suppressed...]
 
+  <h4 id="text-rendered-in-native-user-interfaces"><span class="secno">10.6.4 </span>Text rendered in native user interfaces</h4>
 
-  <h3 id="print-media"><span class="secno">10.7 </span>Print media</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <p>User agents are expected to honor the Unicode semantics of text
+  that is exposed in user interfaces, for example supporting the
+  bidirectional algorithm in text shown in dialogs, title bars, pop-up
+  menus, and tooltips. Text from elements (either attribute values or
+  the contents of elements) is expected to be rendered in a manner
+  that honors <a href="elements.html#the-directionality">the directionality</a> of the element from
+  which the text was obtained. Text from scripts (e.g. the argument to
+  <code title="dom-alert"><a href="timers.html#dom-alert">window.alert()</a></code>) is expected to be
+  rendered as a separate bidirectional algorithm paragraph. <a href="references.html#refsBIDI">[BIDI]</a></p>
+
+
+
+  <h3 id="print-media"><span class="secno">10.7 </span>Print media</h3>
 
   <p>User agents are expected to allow the user to request the
   opportunity to <dfn id="obtain-a-physical-form">obtain a physical form</dfn> (or a

Index: grouping-content.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/grouping-content.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- grouping-content.html	28 Aug 2010 23:52:53 -0000	1.1
+++ grouping-content.html	19 Oct 2010 17:38:07 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -318,10 +328,10 @@
    <a href="spec.html#contents">Table of contents</a> &#x2013;
    <a href="text-level-semantics.html">4.6 Text-level semantics &#x2192;</a>
   <ol class="toc"><li><ol><li><a href="grouping-content.html#grouping-content"><span class="secno">4.5 </span>Grouping content</a>
-    <ol><li><a href="grouping-content.html#the-p-element"><span class="secno">4.5.1 </span>The <code>p</code> element</a></li><li><a href="grouping-content.html#the-hr-element"><span class="secno">4.5.2 </span>The <code>hr</code> element</a></li><li><a href="grouping-content.html#the-pre-element"><span class="secno">4.5.3 </span>The <code>pre</code> element</a></li><li><a href="grouping-content.html#the-blockquote-element"><span class="secno">4.5.4 </span>The <code>blockquote</code> element</a></li><li><a href="grouping-content.html#the-ol-element"><span class="secno">4.5.5 </span>The <code>ol</code> element</a></li><li><a href="grouping-content.html#the-ul-element"><span class="secno">4.5.6 </span>The <code>ul</code> element</a></li><li><a href="grouping-content.html#the-li-element"><span class="secno">4.5.7 </span>The <code>li</code> element</a></li><li><a href="grouping-content.html#the-dl-element"><span class="secno">4.5.8 </span>The <code>dl</code> element</a></li><li><a href="grouping-content.html#the-dt-element"><span class="secno">4.5.9 </span>The <code>dt</code> element</a></li><li><a href="grouping-content.html#the-dd-element"><span class="secno">4.5.10 </span>The <code>dd</code> element</a></li><li><a href="grouping-content.html#the-figure-element"><span class="secno">4.5.11 </span>The <code>figure</code> element</a></li><li><a href="grouping-content.html#the-figcaption-element"><span class="secno">4.5.12 </span>The <code>figcaption</code> element</a></li><li><a href="grouping-content.html#the-div-element"><span class="secno">4.5.13 </span>The <code>div</code> element</a></li></ol></li></ol></li></ol></div><h3 id="grouping-content"><span class="secno">4.5 </span>Grouping content</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><h4 id="the-p-element"><span class="secno">4.5.1 </span>The <dfn><code>p</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+    <ol><li><a href="grouping-content.html#the-p-element"><span class="secno">4.5.1 </span>The <code>p</code> element</a></li><li><a href="grouping-content.html#the-hr-element"><span class="secno">4.5.2 </span>The <code>hr</code> element</a></li><li><a href="grouping-content.html#the-pre-element"><span class="secno">4.5.3 </span>The <code>pre</code> element</a></li><li><a href="grouping-content.html#the-blockquote-element"><span class="secno">4.5.4 </span>The <code>blockquote</code> element</a></li><li><a href="grouping-content.html#the-ol-element"><span class="secno">4.5.5 </span>The <code>ol</code> element</a></li><li><a href="grouping-content.html#the-ul-element"><span class="secno">4.5.6 </span>The <code>ul</code> element</a></li><li><a href="grouping-content.html#the-li-element"><span class="secno">4.5.7 </span>The <code>li</code> element</a></li><li><a href="grouping-content.html#the-dl-element"><span class="secno">4.5.8 </span>The <code>dl</code> element</a></li><li><a href="grouping-content.html#the-dt-element"><span class="secno">4.5.9 </span>The <code>dt</code> element</a></li><li><a href="grouping-content.html#the-dd-element"><span class="secno">4.5.10 </span>The <code>dd</code> element</a></li><li><a href="grouping-content.html#the-figure-element"><span class="secno">4.5.11 </span>The <code>figure</code> element</a></li><li><a href="grouping-content.html#the-figcaption-element"><span class="secno">4.5.12 </span>The <code>figcaption</code> element</a></li><li><a href="grouping-content.html#the-div-element"><span class="secno">4.5.13 </span>The <code>div</code> element</a></li></ol></li></ol></li></ol></div><h3 id="grouping-content"><span class="secno">4.5 </span>Grouping content</h3><h4 id="the-p-element"><span class="secno">4.5.1 </span>The <dfn><code>p</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="dnd.html#formatblock-candidate"><code title="">formatBlock</code> candidate</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#flow-content">flow content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -383,9 +393,9 @@
  &lt;/footer&gt;
 &lt;/section&gt;</pre>
 
-  </div><h4 id="the-hr-element"><span class="secno">4.5.2 </span>The <dfn><code>hr</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-hr-element"><span class="secno">4.5.2 </span>The <dfn><code>hr</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#flow-content">flow content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd>Empty.</dd>
@@ -474,10 +484,10 @@
 of Gralmond's winters.&lt;/p&gt;</pre>
 
   </div><p class="note">The <code><a href="#the-hr-element">hr</a></code> element does not affect the
-  document's <a href="sections.html#outline">outline</a>.</p><h4 id="the-pre-element"><span class="secno">4.5.3 </span>The <dfn><code>pre</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  document's <a href="sections.html#outline">outline</a>.</p><h4 id="the-pre-element"><span class="secno">4.5.3 </span>The <dfn><code>pre</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="dnd.html#formatblock-candidate"><code title="">formatBlock</code> candidate</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#flow-content">flow content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -559,11 +569,11 @@
 
 ~cdr 11dec07&lt;/pre&gt;</pre>
 
-  </div><h4 id="the-blockquote-element"><span class="secno">4.5.4 </span>The <dfn><code>blockquote</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-blockquote-element"><span class="secno">4.5.4 </span>The <dfn><code>blockquote</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="sections.html#sectioning-root">Sectioning root</a>.</dd>
    <dd><a href="dnd.html#formatblock-candidate"><code title="">formatBlock</code> candidate</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#flow-content">flow content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
@@ -650,9 +660,9 @@
   </div><p class="note"><a href="links.html#conversations">Examples of how to
   represent a conversation</a> are shown in a later section; it is not
   appropriate to use the <code><a href="text-level-semantics.html#the-cite-element">cite</a></code> and <code><a href="#the-blockquote-element">blockquote</a></code>
-  elements for this purpose.</p><h4 id="the-ol-element"><span class="secno">4.5.5 </span>The <dfn><code>ol</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  elements for this purpose.</p><h4 id="the-ol-element"><span class="secno">4.5.5 </span>The <dfn><code>ol</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#flow-content">flow content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd>Zero or more <code><a href="#the-li-element">li</a></code> elements.</dd>
@@ -660,11 +670,13 @@
    <dd><a href="elements.html#global-attributes">Global attributes</a></dd>
    <dd><code title="attr-ol-reversed"><a href="#attr-ol-reversed">reversed</a></code></dd>
    <dd><code title="attr-ol-start"><a href="#attr-ol-start">start</a></code></dd>
+   <dd><code title="attr-ol-type"><a href="#attr-ol-type">type</a></code></dd>
    <dt>DOM interface:</dt>
    <dd>
 <pre class="idl">interface <dfn id="htmlolistelement">HTMLOListElement</dfn> : <a href="elements.html#htmlelement">HTMLElement</a> {
            attribute boolean <a href="#dom-ol-reversed" title="dom-ol-reversed">reversed</a>;
            attribute long <a href="#dom-ol-start" title="dom-ol-start">start</a>;
+           attribute DOMString <a href="#dom-ol-type" title="dom-ol-type">type</a>;
 };</pre>
    </dd>
   </dl><p>The <code><a href="#the-ol-element">ol</a></code> element <a href="rendering.html#represents">represents</a> a list of
@@ -698,13 +710,61 @@
   value</a> of the previous item, plus one if the <code title="attr-ol-reversed"><a href="#attr-ol-reversed">reversed</a></code> is absent, or minus one if
   it is present.</p>
 
-  <p>The <dfn id="dom-ol-reversed" title="dom-ol-reversed"><code>reversed</code></dfn> IDL
-  attribute must <a href="common-dom-interfaces.html#reflect">reflect</a> the value of the <code title="attr-ol-reversed"><a href="#attr-ol-reversed">reversed</a></code> content attribute.</p>
+  </div><p>The <dfn id="attr-ol-type" title="attr-ol-type"><code>type</code></dfn> attribute
+  can be used to specify the kind of marker to use in the list, in the
+  cases where that matters (e.g. because items are to be referened by
+  their number/letter). The attribute, if specified, must have a value
+  that is a <a href="infrastructure.html#case-sensitive">case-sensitive</a> match for one of the
+  characters given in the first cell of one of the rows of the
+  following table. <span class="impl">The <code title="attr-ol-type"><a href="#attr-ol-type">type</a></code> attribute represents the state
+  given in the cell in the second column of the row whose first cell
+  matches the attribute's value; if none of the cells match, or if the
+  attribute is omitted, then the attribute represents the <a href="#attr-ol-type-state-decimal" title="attr-ol-type-state-decimal">decimal</a> state.</span></p><table><thead><tr><th>Keyword
+     </th><th>State
+     </th><th>Description
+     </th><th colspan="8">Examples for values 1-3 and 3999-4001
+   </th></tr></thead><tbody><tr><td><dfn id="attr-ol-type-keyword-decimal" title="attr-ol-type-keyword-decimal"><code>1</code></dfn> (U+0031)
+     </td><td><dfn id="attr-ol-type-state-decimal" title="attr-ol-type-state-decimal">decimal</dfn>
+     </td><td>Decimal numbers
+     </td><td class="eg"><samp>1.</samp> </td><td class="eg"><samp>2.</samp> </td><td class="eg"><samp>3.</samp> </td><td class="eg">... </td><td class="eg"><samp>3999.</samp> </td><td class="eg"><samp>4000.</samp> </td><td class="eg"><samp>4001.</samp> </td><td class="eg">...
+    </td></tr><tr><td><dfn id="attr-ol-type-keyword-lower-alpha" title="attr-ol-type-keyword-lower-alpha"><code>a</code></dfn> (U+0061)
+     </td><td><dfn id="attr-ol-type-state-lower-alpha" title="attr-ol-type-state-lower-alpha">lower-alpha</dfn>
+     </td><td>Lowercase latin alphabet
+     </td><td class="eg"><samp>a.</samp> </td><td class="eg"><samp>b.</samp> </td><td class="eg"><samp>c.</samp> </td><td class="eg">... </td><td class="eg"><samp>ewu.</samp> </td><td class="eg"><samp>ewv.</samp> </td><td class="eg"><samp>eww.</samp> </td><td class="eg">...
+    </td></tr><tr><td><dfn id="attr-ol-type-keyword-upper-alpha" title="attr-ol-type-keyword-upper-alpha"><code>A</code></dfn> (U+0041)
+     </td><td><dfn id="attr-ol-type-state-upper-alpha" title="attr-ol-type-state-upper-alpha">upper-alpha</dfn>
+     </td><td>Uppercase latin alphabet
+     </td><td class="eg"><samp>A.</samp> </td><td class="eg"><samp>B.</samp> </td><td class="eg"><samp>C.</samp> </td><td class="eg">... </td><td class="eg"><samp>EWU.</samp> </td><td class="eg"><samp>EWV.</samp> </td><td class="eg"><samp>EWW.</samp> </td><td class="eg">...
+    </td></tr><tr><td><dfn id="attr-ol-type-keyword-lower-roman" title="attr-ol-type-keyword-lower-roman"><code>i</code></dfn> (U+0069)
+     </td><td><dfn id="attr-ol-type-state-lower-roman" title="attr-ol-type-state-lower-roman">lower-roman</dfn>
+     </td><td>Lowercase roman numerals
+     </td><td class="eg"><samp>i.</samp> </td><td class="eg"><samp>ii.</samp> </td><td class="eg"><samp>iii.</samp> </td><td class="eg">... </td><td class="eg"><samp>mmmcmxcix.</samp> </td><td class="eg"><samp>i&#x305;v&#x305;.</samp> </td><td class="eg"><samp>i&#x305;v&#x305;i.</samp> </td><td class="eg">...
+    </td></tr><tr><td><dfn id="attr-ol-type-keyword-upper-roman" title="attr-ol-type-keyword-upper-roman"><code>I</code></dfn> (U+0049)
+     </td><td><dfn id="attr-ol-type-state-upper-roman" title="attr-ol-type-state-upper-roman">upper-roman</dfn>
+     </td><td>Uppercase roman numerals
+     </td><td class="eg"><samp>I.</samp> </td><td class="eg"><samp>II.</samp> </td><td class="eg"><samp>III.</samp> </td><td class="eg">... </td><td class="eg"><samp>MMMCMXCIX.</samp> </td><td class="eg"><samp>I&#x305;V&#x305;.</samp> </td><td class="eg"><samp>I&#x305;V&#x305;I.</samp> </td><td class="eg">...
+  </td></tr></tbody></table><div class="impl">
 
-  <p>The <dfn id="dom-ol-start" title="dom-ol-start"><code>start</code></dfn> IDL
-  attribute must <a href="common-dom-interfaces.html#reflect">reflect</a> the value of the <code title="attr-ol-start"><a href="#attr-ol-start">start</a></code> content attribute.</p>
+  <p>User agents should render the items of the list in a manner
+  consistent with the state of the <code title="attr-ol-type"><a href="#attr-ol-type">type</a></code> attribute of the <code><a href="#the-ol-element">ol</a></code>
+  element. Numbers less than or equal to zero should always use the
+  decimal system regardless of the <code title="attr-ol-type"><a href="#attr-ol-type">type</a></code> attribute.</p>
 
-  </div><!-- v2: resuming numbering of lists from previous lists? --><div class="example">
+  <p class="note">For CSS user agents, a mapping for this attribute to
+  the 'list-style-type' CSS property is given <a href="rendering.html#decohints">in
+  the rendering section</a> (the mapping is straightforward: the
+  states above have the same names as their corresponding CSS
+  values).</p>
+
+  </div><!-- v2: resuming numbering of lists from previous lists? --><div class="impl">
+
+  <p>The <dfn id="dom-ol-reversed" title="dom-ol-reversed"><code>reversed</code></dfn>,
+  <dfn id="dom-ol-start" title="dom-ol-start"><code>start</code></dfn>, and <dfn id="dom-ol-type" title="dom-ol-type"><code>type</code></dfn> IDL attributes must
+  <a href="common-dom-interfaces.html#reflect">reflect</a> the respective content attributes of the same
+  name. The <code title="dom-ol-start"><a href="#dom-ol-start">start</a></code> IDL attribute has
+  the same default as its content attribute.</p>
+
+  </div><div class="example">
 
    <p>The following markup shows a list where the order matters, and
    where the <code><a href="#the-ol-element">ol</a></code> element is therefore appropriate. Compare
@@ -735,9 +795,9 @@
  &lt;li&gt;Norway
 &lt;/ol&gt;</pre>
 
-  </div><h4 id="the-ul-element"><span class="secno">4.5.6 </span>The <dfn><code>ul</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-ul-element"><span class="secno">4.5.6 </span>The <dfn><code>ul</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#flow-content">flow content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd>Zero or more <code><a href="#the-li-element">li</a></code> elements.</dd>
@@ -781,9 +841,9 @@
  &lt;li&gt;United States
 &lt;/ul&gt;</pre>
 
-  </div><h4 id="the-li-element"><span class="secno">4.5.7 </span>The <dfn><code>li</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-li-element"><span class="secno">4.5.7 </span>The <dfn><code>li</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Inside <code><a href="#the-ol-element">ol</a></code> elements.</dd>
    <dd>Inside <code><a href="#the-ul-element">ul</a></code> elements.</dd>
    <dd>Inside <code><a href="interactive-elements.html#menus">menu</a></code> elements.</dd>
@@ -865,9 +925,9 @@
   <code><a href="interactive-elements.html#menus">menu</a></code> element and itself has a child that defines a
   <a href="commands.html#concept-command" title="concept-command">command</a>, then the
   <code><a href="#the-li-element">li</a></code> element will match the <code title="selector-enabled"><a href="links.html#selector-enabled">:enabled</a></code> and <code title="selector-disabled"><a href="links.html#selector-disabled">:disabled</a></code> pseudo-classes in the
-  same way as the first such child element does.</p><h4 id="the-dl-element"><span class="secno">4.5.8 </span>The <dfn><code>dl</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  same way as the first such child element does.</p><h4 id="the-dl-element"><span class="secno">4.5.8 </span>The <dfn><code>dl</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#flow-content">flow content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd>Zero or more groups each consisting of one or more
@@ -886,7 +946,8 @@
   (<code><a href="#the-dd-element">dd</a></code> elements). Within a single <code><a href="#the-dl-element">dl</a></code> element,
   there should not be more than one <code><a href="#the-dt-element">dt</a></code> element for each
   name.</p><p>Name-value groups may be terms and definitions, metadata topics
-  and values, or any other groups of name-value data.</p><p>The values within a group are alternatives; multiple paragraphs
+  and values, questions and answers, or any other groups of name-value
+  data.</p><p>The values within a group are alternatives; multiple paragraphs
   forming part of the same value must all be given within the same
   <code><a href="#the-dd-element">dd</a></code> element.</p><p>The order of the list of groups, and of the names and values
   within each group, may be significant.</p><div class="impl">
@@ -989,9 +1050,9 @@
 &lt;/dl&gt;</pre>
   </div><p class="note">The <code><a href="#the-dl-element">dl</a></code> element is inappropriate for
   marking up dialogue. <a href="links.html#conversations">Examples of how to
-  mark up dialogue</a> are shown below.</p><h4 id="the-dt-element"><span class="secno">4.5.9 </span>The <dfn><code>dt</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  mark up dialogue</a> are shown below.</p><h4 id="the-dt-element"><span class="secno">4.5.9 </span>The <dfn><code>dt</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Before <code><a href="#the-dd-element">dd</a></code> or <code><a href="#the-dt-element">dt</a></code> elements inside <code><a href="#the-dl-element">dl</a></code> elements.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -1022,9 +1083,9 @@
  &lt;/dl&gt;
 &lt;/article&gt;</pre>
 
-  </div><h4 id="the-dd-element"><span class="secno">4.5.10 </span>The <dfn><code>dd</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-dd-element"><span class="secno">4.5.10 </span>The <dfn><code>dd</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>After <code><a href="#the-dt-element">dt</a></code> or <code><a href="#the-dd-element">dd</a></code> elements inside <code><a href="#the-dl-element">dl</a></code> elements.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
@@ -1053,10 +1114,10 @@
  &lt;dd&gt;&lt;i class="part-of-speech"&gt;&lt;abbr&gt;v.intr.&lt;/abbr&gt;&lt;/i&gt; To be delighted oneself.&lt;/dd&gt;
  &lt;dd&gt;&lt;i class="part-of-speech"&gt;&lt;abbr&gt;v.tr.&lt;/abbr&gt;&lt;/i&gt; To cause one to be delighted.&lt;/dd&gt;
 &lt;/dl&gt;</pre>
-  </div><h4 id="the-figure-element"><span class="secno">4.5.11 </span>The <dfn><code>figure</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-figure-element"><span class="secno">4.5.11 </span>The <dfn><code>figure</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="sections.html#sectioning-root">Sectioning root</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#flow-content">flow content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd>Either: One <code><a href="#the-figcaption-element">figcaption</a></code> element followed by <a href="content-models.html#flow-content">flow content</a>.</dd>
@@ -1166,7 +1227,7 @@
 
   </div><h4 id="the-figcaption-element"><span class="secno">4.5.12 </span>The <dfn><code>figcaption</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>As the first or last child of a <code><a href="#the-figure-element">figure</a></code> element.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
@@ -1177,10 +1238,10 @@
   </dl><p>The <code><a href="#the-figcaption-element">figcaption</a></code> element <a href="rendering.html#represents">represents</a> a
   caption or legend for the rest of the contents of the
   <code><a href="#the-figcaption-element">figcaption</a></code> element's parent <code><a href="#the-figure-element">figure</a></code>
-  element<span class="impl">, if any</span>.</p><h4 id="the-div-element"><span class="secno">4.5.13 </span>The <dfn><code>div</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  element<span class="impl">, if any</span>.</p><h4 id="the-div-element"><span class="secno">4.5.13 </span>The <dfn><code>div</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="dnd.html#formatblock-candidate"><code title="">formatBlock</code> candidate</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#flow-content">flow content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>

Index: timers.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/timers.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- timers.html	28 Aug 2010 23:52:56 -0000	1.1
+++ timers.html	19 Oct 2010 17:38:08 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -318,9 +328,9 @@
    <a href="spec.html#contents">Table of contents</a> &#x2013;
    <a href="editing.html">7 User interaction &#x2192;</a>
   <ol class="toc"><li><ol><li><a href="timers.html#timers"><span class="secno">6.2 </span>Timers</a></li><li><a href="timers.html#user-prompts"><span class="secno">6.3 </span>User prompts</a>
-    <ol><li><a href="timers.html#simple-dialogs"><span class="secno">6.3.1 </span>Simple dialogs</a></li><li><a href="timers.html#printing"><span class="secno">6.3.2 </span>Printing</a></li><li><a href="timers.html#dialogs-implemented-using-separate-documents"><span class="secno">6.3.3 </span>Dialogs implemented using separate documents</a></li></ol></li><li><a href="timers.html#system-state-and-capabilities"><span class="secno">6.4 </span>System state and capabilities</a>
+    <ol><li><a href="timers.html#simple-dialogs"><span class="secno">6.3.1 </span>Simple dialogs</a></li><li><a href="timers.html#printing"><span class="secno">6.3.2 </span>Printing</a></li><li><a href="timers.html#dialogs-implemented-using-separate-documents"><span class="secno">6.3.3 </span>Dialogs implemented using separate documents</a></li></ol></li><li><a href="timers.html#system-state-and-capabilities:-the-navigator-object"><span class="secno">6.4 </span>System state and capabilities: the <code>Navigator</code> object</a>
     <ol><li><a href="timers.html#client-identification"><span class="secno">6.4.1 </span>Client identification</a></li><li><a href="timers.html#custom-handlers"><span class="secno">6.4.2 </span>Custom scheme and content handlers</a>
-      <ol><li><a href="timers.html#security-and-privacy"><span class="secno">6.4.2.1 </span>Security and privacy</a></li><li><a href="timers.html#sample-handler-impl"><span class="secno">6.4.2.2 </span>Sample user interface</a></li></ol></li><li><a href="timers.html#manually-releasing-the-storage-mutex"><span class="secno">6.4.3 </span>Manually releasing the storage mutex</a></li></ol></li></ol></li></ol></div><h3 id="timers"><span class="secno">6.2 </span>Timers</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code title="dom-windowtimers-setTimeout"><a href="#dom-windowtimers-settimeout">setTimeout()</a></code>
+      <ol><li><a href="timers.html#security-and-privacy"><span class="secno">6.4.2.1 </span>Security and privacy</a></li><li><a href="timers.html#sample-handler-impl"><span class="secno">6.4.2.2 </span>Sample user interface</a></li></ol></li><li><a href="timers.html#manually-releasing-the-storage-mutex"><span class="secno">6.4.3 </span>Manually releasing the storage mutex</a></li></ol></li></ol></li></ol></div><h3 id="timers"><span class="secno">6.2 </span>Timers</h3><p>The <code title="dom-windowtimers-setTimeout"><a href="#dom-windowtimers-settimeout">setTimeout()</a></code>
   and <code title="dom-windowtimers-setInterval"><a href="#dom-windowtimers-setinterval">setInterval()</a></code>
   methods allow authors to schedule timer-based callbacks.</p><pre class="idl">[Supplemental, NoInterfaceObject]
 interface <dfn id="windowtimers">WindowTimers</dfn> {
@@ -441,6 +451,21 @@
    this one whose <var title="">timeout</var> is equal to or less than
    this one's have completed.</p></li>
 
+   <li>
+
+    <p>Optionally, wait a further user-agent defined length of
+    time.</p>
+
+    <p class="note">This is intended to allow user agents to pad
+    timeouts as needed to optimise the power usage of the device. For
+    example, some processors have a low-power mode where the
+    granularity of timers is reduced; on such platforms, user agents
+    can slow timers down to fit this schedule instead of requiring the
+    processor to use the more accurate mode with its associated higher
+    power usage.</p>
+
+   </li>
+
    <li><p><a href="webappapis.html#queue-a-task" title="queue a task">Queue</a> the <var title="">task</var> <a href="webappapis.html#concept-task" title="concept-task">task</a>.</p></li>
 
   </ol><p>The <dfn id="dom-windowtimers-cleartimeout" title="dom-windowtimers-clearTimeout"><code>clearTimeout()</code></dfn>
@@ -496,6 +521,21 @@
 
    </li>
 
+   <li>
+
+    <p>Optionally, wait a further user-agent defined length of
+    time.</p>
+
+    <p class="note">This is intended to allow user agents to pad
+    timeouts as needed to optimise the power usage of the device. For
+    example, some processors have a low-power mode where the
+    granularity of timers is reduced; on such platforms, user agents
+    can slow timers down to fit this schedule instead of requiring the
+    processor to use the more accurate mode with its associated higher
+    power usage.</p>
+
+   </li>
+
    <li><p><a href="webappapis.html#queue-a-task" title="queue a task">Queue</a> the <var title="">task</var> <a href="webappapis.html#concept-task" title="concept-task">task</a>.</p></li>
 
    <li><p>Return to the step labeled <i>wait</i>.</p></li>
@@ -596,14 +636,14 @@
   </ol><hr/><p>The <a href="webappapis.html#task-source">task source</a> for these <a href="webappapis.html#concept-task" title="concept-task">tasks</a> is the <dfn id="timer-task-source">timer task
   source</dfn>.</p>
 
-  </div><h3 id="user-prompts"><span class="secno">6.3 </span>User prompts</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><!--
+  </div><h3 id="user-prompts"><span class="secno">6.3 </span>User prompts</h3><!--
    v2 ideas:
     * in-window modal dialogs
        - escape/enter handling
        - dragging the window out of the tab
     * in-window non-modal palettes
        - with a solution for the mobile space
-  --><h4 id="simple-dialogs"><span class="secno">6.3.1 </span>Simple dialogs</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="domintro"><dt><var title="">window</var> . <code title="dom-alert"><a href="#dom-alert">alert</a></code>(<var title="">message</var>)</dt>
+  --><h4 id="simple-dialogs"><span class="secno">6.3.1 </span>Simple dialogs</h4><dl class="domintro"><dt><var title="">window</var> . <code title="dom-alert"><a href="#dom-alert">alert</a></code>(<var title="">message</var>)</dt>
    <dd>
 
     <p>Displays a modal alert with the given message, and waits for the user to dismiss it.</p>
@@ -665,7 +705,7 @@
   user aborts, then the method must return null; otherwise, the method
   must return the string that the user responded with.</p>
 
-  </div><h4 id="printing"><span class="secno">6.3.2 </span>Printing</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="domintro"><dt><var title="">window</var> . <code title="dom-print"><a href="#dom-print">print</a></code>()</dt>
+  </div><h4 id="printing"><span class="secno">6.3.2 </span>Printing</h4><dl class="domintro"><dt><var title="">window</var> . <code title="dom-print"><a href="#dom-print">print</a></code>()</dt>
 
    <dd>
 
@@ -752,7 +792,7 @@
 
    </li>
 
-  </ol></div><h4 id="dialogs-implemented-using-separate-documents"><span class="secno">6.3.3 </span>Dialogs implemented using separate documents</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="domintro"><dt><var title="">result</var> = <var title="">window</var> . <code title="dom-showModalDialog"><a href="#dom-showmodaldialog">showModalDialog</a></code>(<var title="">url</var> [, <var title="">argument</var>] )</dt>
+  </ol></div><h4 id="dialogs-implemented-using-separate-documents"><span class="secno">6.3.3 </span>Dialogs implemented using separate documents</h4><dl class="domintro"><dt><var title="">result</var> = <var title="">window</var> . <code title="dom-showModalDialog"><a href="#dom-showmodaldialog">showModalDialog</a></code>(<var title="">url</var> [, <var title="">argument</var>] )</dt>
 
    <dd>
 
@@ -956,7 +996,7 @@
   value</a> to the given new value.</p>
 
   </div><p class="note">The <code title="dom-window-close"><a href="browsers.html#dom-window-close">window.close()</a></code> method can be used to
-  close the browsing context.</p><h3 id="system-state-and-capabilities"><span class="secno">6.4 </span>System state and capabilities</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><div class="impl">
+  close the browsing context.</p><h3 id="system-state-and-capabilities:-the-navigator-object"><span class="secno">6.4 </span>System state and capabilities: the <code><a href="#navigator">Navigator</a></code> object</h3><div class="impl">
 
   <p>The <dfn id="dom-navigator" title="dom-navigator"><code>navigator</code></dfn>
   attribute of the <code><a href="browsers.html#window">Window</a></code> interface must return an
@@ -1012,7 +1052,7 @@
    <dd><p>Must return either null or a language tag representing the user's preferred language.</p></dd>
    -->
 
-  </div><h4 id="client-identification"><span class="secno">6.4.1 </span>Client identification</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>In certain cases, despite the best efforts of the entire
+  </div><h4 id="client-identification"><span class="secno">6.4.1 </span>Client identification</h4><p>In certain cases, despite the best efforts of the entire
   industry, Web browsers have bugs and limitations that Web authors
   are forced to work around.</p><p>This section defines a collection of attributes that can be used
   to determine, from script, the kind of user agent in use, in order
@@ -1071,7 +1111,13 @@
 
    <!-- vendorSub: Mozilla and Safari only; always returns "" -->
 
-  </dl></div><h4 id="custom-handlers"><span class="secno">6.4.2 </span>Custom scheme and content handlers</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="dom-navigator-registerprotocolhandler" title="dom-navigator-registerProtocolHandler"><code>registerProtocolHandler()</code></dfn>
+  </dl><p class="warning">Any information in this API that varies from user
+  to user can be used to profile the user. In fact, if enough such
+  information is available, a user can actually be uniquely
+  identified. For this reason, user agent implementors are strongly
+  urged to include as little information in this API as possible.</p>
+
+  </div><h4 id="custom-handlers"><span class="secno">6.4.2 </span>Custom scheme and content handlers</h4><p>The <dfn id="dom-navigator-registerprotocolhandler" title="dom-navigator-registerProtocolHandler"><code>registerProtocolHandler()</code></dfn>
   method allows Web sites to register themselves as possible handlers
   for particular schemes. For example, an online telephone messaging
   service could register itself as a handler of the <code>sms:</code>
@@ -1258,7 +1304,7 @@
 
   </div><div class="impl">
 
-  <h5 id="security-and-privacy"><span class="secno">6.4.2.1 </span>Security and privacy</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="security-and-privacy"><span class="secno">6.4.2.1 </span>Security and privacy</h5>
 
   <p>These mechanisms can introduce a number of concerns, in
   particular privacy concerns.</p>
@@ -1339,7 +1385,7 @@
 
   </div><div class="impl">
 
-  <h5 id="sample-handler-impl"><span class="secno">6.4.2.2 </span>Sample user interface</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="sample-handler-impl"><span class="secno">6.4.2.2 </span>Sample user interface</h5>
 
   <p><i>This section is non-normative.</i></p>
 
@@ -1349,7 +1395,7 @@
   <p>The <code title="dom-navigator-registerContentHandler"><a href="#dom-navigator-registercontenthandler">registerContentHandler()</a></code>
   method could display a modal dialog box:</p>
 
-  <p><img alt="The modal dialog box could have the title 'Content Handler Registration', and could say 'This Web page: Kittens at work http://kittens.example.org/ ...would like permission to handle files of type: application/x-meowmeow using the following Web-based application: Kittens-at-work displayer http://kittens.example.org/?show=%s Do you trust the administrators of the &quot;kittens.example.org&quot; domain?' with two buttons, 'Trust kittens.example.org' and 'Cancel'." src="http://dev.w3.org/html5/spec/images/sample-content-handler-registration.png"/></p>
+  <p><img alt="The modal dialog box could have the title 'Content Handler Registration', and could say 'This Web page: Kittens at work http://kittens.example.org/ ...would like permission to handle files of type: application/x-meowmeow using the following Web-based application: Kittens-at-work displayer http://kittens.example.org/?show=%s Do you trust the administrators of the &quot;kittens.example.org&quot; domain?' with two buttons, 'Trust kittens.example.org' and 'Cancel'." height="374" src="http://dev.w3.org/html5/spec/images/sample-content-handler-registration.png" width="534"/></p>
 
   <p>In this dialog box, "Kittens at work" is the title of the page
   that invoked the method, "http://kittens.example.org/" is the URL of
@@ -1367,7 +1413,7 @@
   "application/x-meowmeow" <a href="infrastructure.html#mime-type">MIME type</a>, then it might
   display a dialog as follows:</p>
 
-  <p><img alt="The dialog box could have the title 'Unknown File Type' and could say 'You have attempted to access:' followed by a URL, followed by a prompt such as 'How would you like FerretBrowser to handle this resource?' with three radio buttons, one saying 'Contact the FerretBrowser plugin registry to see if there is an official way to handle this resource.', one saying 'Pass this URL to a local application' with an application selector, and one saying 'Pass this URL to the &quot;Kittens-at-work displayer&quot; application at &quot;kittens.example.org&quot;', with a checkbox labeld 'Always do this for resources using the &quot;application/x-meowmeow&quot; type in future.', and with two buttons, 'Ok' and 'Cancel'." src="http://dev.w3.org/html5/spec/images/sample-content-handler.png"/></p>
+  <p><img alt="The dialog box could have the title 'Unknown File Type' and could say 'You have attempted to access:' followed by a URL, followed by a prompt such as 'How would you like FerretBrowser to handle this resource?' with three radio buttons, one saying 'Contact the FerretBrowser plugin registry to see if there is an official way to handle this resource.', one saying 'Pass this URL to a local application' with an application selector, and one saying 'Pass this URL to the &quot;Kittens-at-work displayer&quot; application at &quot;kittens.example.org&quot;', with a checkbox labeld 'Always do this for resources using the &quot;application/x-meowmeow&quot; type in future.', and with two buttons, 'Ok' and 'Cancel'." height="428" src="http://dev.w3.org/html5/spec/images/sample-content-handler.png" width="577"/></p>
 
   <p>In this dialog, the third option is the one that was primed by
   the site registering itself earlier.</p>
@@ -1381,7 +1427,7 @@
   method would work equivalently, but for schemes instead of unknown
   content types.</p>
 
-  </div><h4 id="manually-releasing-the-storage-mutex"><span class="secno">6.4.3 </span>Manually releasing the storage mutex</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="domintro"><dt><var title="">window</var> . <code title="dom-navigator"><a href="#dom-navigator">navigator</a></code> . <code title="dom-navigator-yieldForStorageUpdates"><a href="#dom-navigator-yieldforstorageupdates">yieldForStorageUpdates</a></code>()</dt>
+  </div><h4 id="manually-releasing-the-storage-mutex"><span class="secno">6.4.3 </span>Manually releasing the storage mutex</h4><dl class="domintro"><dt><var title="">window</var> . <code title="dom-navigator"><a href="#dom-navigator">navigator</a></code> . <code title="dom-navigator-yieldForStorageUpdates"><a href="#dom-navigator-yieldforstorageupdates">yieldForStorageUpdates</a></code>()</dt>
 
    <dd>
 

Index: elements.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/elements.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- elements.html	28 Aug 2010 23:52:52 -0000	1.1
+++ elements.html	19 Oct 2010 17:38:07 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -320,8 +330,8 @@
   <ol class="toc"><li><ol><li><a href="elements.html#elements"><span class="secno">3.2 </span>Elements</a>
     <ol><li><a href="elements.html#semantics-0"><span class="secno">3.2.1 </span>Semantics</a></li><li><a href="elements.html#elements-in-the-dom"><span class="secno">3.2.2 </span>Elements in the DOM</a></li><li><a href="elements.html#global-attributes"><span class="secno">3.2.3 </span>Global attributes</a>
       <ol><li><a href="elements.html#the-id-attribute"><span class="secno">3.2.3.1 </span>The <code>id</code> attribute</a></li><li><a href="elements.html#the-title-attribute"><span class="secno">3.2.3.2 </span>The <code>title</code> attribute</a></li><li><a href="elements.html#the-lang-and-xml:lang-attributes"><span class="secno">3.2.3.3 </span>The <code title="attr-lang">lang</code> and <code title="attr-xml-lang">xml:lang</code> attributes</a></li><li><a href="elements.html#the-xml:base-attribute-xml-only"><span class="secno">3.2.3.4 </span>The <code>xml:base</code>
-  attribute (XML only)</a></li><li><a href="elements.html#the-dir-attribute"><span class="secno">3.2.3.5 </span>The <code>dir</code> attribute</a></li><li><a href="elements.html#classes"><span class="secno">3.2.3.6 </span>The <code>class</code> attribute</a></li><li><a href="elements.html#the-style-attribute"><span class="secno">3.2.3.7 </span>The <code>style</code> attribute</a></li><li><a href="elements.html#embedding-custom-non-visible-data"><span class="secno">3.2.3.8 </span>Embedding custom non-visible data</a></li></ol></li><li><a href="elements.html#element-definitions"><span class="secno">3.2.4 </span>Element definitions</a>
-      <ol><li><a href="elements.html#attributes"><span class="secno">3.2.4.1 </span>Attributes</a></li></ol></li></ol></li></ol></li></ol></div><h3 id="elements"><span class="secno">3.2 </span>Elements</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><h4 id="semantics-0"><span class="secno">3.2.1 </span>Semantics</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/41">ISSUE-41</a> (Decentralized-extensibility) blocks progress to Last Call</span></p><p>Elements, attributes, and attribute values in HTML are defined
+  attribute (XML only)</a></li><li><a href="elements.html#the-dir-attribute"><span class="secno">3.2.3.5 </span>The <code>dir</code> attribute</a></li><li><a href="elements.html#classes"><span class="secno">3.2.3.6 </span>The <code>class</code> attribute</a></li><li><a href="elements.html#the-style-attribute"><span class="secno">3.2.3.7 </span>The <code>style</code> attribute</a></li><li><a href="elements.html#embedding-custom-non-visible-data-with-the-data-attributes"><span class="secno">3.2.3.8 </span>Embedding custom non-visible data with the <code title="attr-data-*">data-*</code> attributes</a></li></ol></li><li><a href="elements.html#element-definitions"><span class="secno">3.2.4 </span>Element definitions</a>
+      <ol><li><a href="elements.html#attributes"><span class="secno">3.2.4.1 </span>Attributes</a></li></ol></li></ol></li></ol></li></ol></div><h3 id="elements"><span class="secno">3.2 </span>Elements</h3><h4 id="semantics-0"><span class="secno">3.2.1 </span>Semantics</h4><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/41">ISSUE-41</a> (Decentralized-extensibility) blocks progress to Last Call</span></p><p>Elements, attributes, and attribute values in HTML are defined
   (by this specification) to have certain meanings (semantics). For
   example, the <code><a href="grouping-content.html#the-ol-element">ol</a></code> element represents an ordered list, and
   the <code title="attr-lang"><a href="#attr-lang">lang</a></code> attribute represents the
@@ -408,7 +418,7 @@
   document as this occurs.</p><p class="example">HTML has a <code><a href="the-button-element.html#the-progress-element">progress</a></code> element that
   describes a progress bar. If its "value" attribute is dynamically
   updated by a script, the UA would update the rendering to show the
-  progress changing.</p><h4 id="elements-in-the-dom"><span class="secno">3.2.2 </span>Elements in the DOM</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The nodes representing <a href="infrastructure.html#html-elements">HTML elements</a> in the DOM
+  progress changing.</p><h4 id="elements-in-the-dom"><span class="secno">3.2.2 </span>Elements in the DOM</h4><p>The nodes representing <a href="infrastructure.html#html-elements">HTML elements</a> in the DOM
   <span class="impl">must</span> implement, and expose to scripts, the
   interfaces listed for them in the relevant sections of this
   specification. This includes <a href="infrastructure.html#html-elements">HTML elements</a> in <a href="dom.html#xml-documents">XML
@@ -440,8 +450,6 @@
   // <a href="editing.html#editing">user interaction</a>
            attribute boolean <a href="editing.html#dom-hidden" title="dom-hidden">hidden</a>;
   void <a href="editing.html#dom-click" title="dom-click">click</a>();
-  void <a href="editing.html#dom-scrollintoview" title="dom-scrollIntoView">scrollIntoView</a>();
-  void <a href="editing.html#dom-scrollintoview" title="dom-scrollIntoView">scrollIntoView</a>(in boolean top);
            attribute long <a href="editing.html#dom-tabindex" title="dom-tabindex">tabIndex</a>;
   void <a href="editing.html#dom-focus" title="dom-focus">focus</a>();
   void <a href="editing.html#dom-blur" title="dom-blur">blur</a>();
@@ -472,6 +480,9 @@
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onchange" title="handler-onchange">onchange</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onclick" title="handler-onclick">onclick</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-oncontextmenu" title="handler-oncontextmenu">oncontextmenu</a>;
+<!--KEEP-END w3c-html--><!--TT-->
+           attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-oncuechange" title="handler-oncuechange">oncuechange</a>;
+<!--KEEP-START w3c-html--><!--TT-->
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-ondblclick" title="handler-ondblclick">ondblclick</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-ondrag" title="handler-ondrag">ondrag</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-ondragend" title="handler-ondragend">ondragend</a>;
@@ -508,6 +519,7 @@
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onprogress" title="handler-onprogress">onprogress</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onratechange" title="handler-onratechange">onratechange</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onreadystatechange" title="handler-onreadystatechange">onreadystatechange</a>;
+           attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onreset" title="handler-onreset">onreset</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onscroll" title="handler-onscroll">onscroll</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onseeked" title="handler-onseeked">onseeked</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onseeking" title="handler-onseeking">onseeking</a>;
@@ -530,7 +542,7 @@
   <a href="infrastructure.html#html-elements">HTML elements</a> that are not defined by this
   specification (or <a href="infrastructure.html#other-applicable-specifications">other applicable specifications</a>).</p>
 
-  </div><h4 id="global-attributes"><span class="secno">3.2.3 </span><dfn>Global attributes</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The following attributes are common to and may be specified on
+  </div><h4 id="global-attributes"><span class="secno">3.2.3 </span><dfn>Global attributes</dfn></h4><p>The following attributes are common to and may be specified on
   all <a href="infrastructure.html#html-elements">HTML elements</a><span class="impl"> (even those not
   defined in this specification)</span>:</p><ul class="brief"><li><code title="attr-accesskey"><a href="editing.html#the-accesskey-attribute">accesskey</a></code></li>
    <li><code title="attr-class"><a href="#classes">class</a></code></li>
@@ -554,6 +566,9 @@
    <li><code title="handler-onchange"><a href="webappapis.html#handler-onchange">onchange</a></code></li>
    <li><code title="handler-onclick"><a href="webappapis.html#handler-onclick">onclick</a></code></li>
    <li><code title="handler-oncontextmenu"><a href="webappapis.html#handler-oncontextmenu">oncontextmenu</a></code></li>
+<!--KEEP-END w3c-html--><!--TT-->
+   <li><code title="handler-oncuechange"><a href="webappapis.html#handler-oncuechange">oncuechange</a></code></li>
+<!--KEEP-START w3c-html--><!--TT-->
    <li><code title="handler-ondblclick"><a href="webappapis.html#handler-ondblclick">ondblclick</a></code></li>
    <li><code title="handler-ondrag"><a href="webappapis.html#handler-ondrag">ondrag</a></code></li>
    <li><code title="handler-ondragend"><a href="webappapis.html#handler-ondragend">ondragend</a></code></li>
@@ -590,7 +605,8 @@
    <li><code title="handler-onprogress"><a href="webappapis.html#handler-onprogress">onprogress</a></code></li>
    <li><code title="handler-onratechange"><a href="webappapis.html#handler-onratechange">onratechange</a></code></li>
    <li><code title="handler-onreadystatechange"><a href="webappapis.html#handler-onreadystatechange">onreadystatechange</a></code></li>
-   <li><code title="handler-onscroll"><a href="webappapis.html#handler-onscroll">onscroll</a></code></li>
+   <li><code title="handler-onreset"><a href="webappapis.html#handler-onreset">onreset</a></code></li>
+   <li><code title="handler-onscroll"><a href="webappapis.html#handler-onscroll">onscroll</a></code>*</li>
    <li><code title="handler-onseeked"><a href="webappapis.html#handler-onseeked">onseeked</a></code></li>
    <li><code title="handler-onseeking"><a href="webappapis.html#handler-onseeking">onseeking</a></code></li>
    <li><code title="handler-onselect"><a href="webappapis.html#handler-onselect">onselect</a></code></li>
@@ -620,10 +636,14 @@
   namespace like namespace declaration attributes in XML do.</p><p class="note">In XML, an <code title="">xmlns</code> attribute is
   part of the namespace declaration mechanism, and an element cannot
   actually have an <code title="">xmlns</code> attribute in no
-  namespace specified.</p><hr/><p>To enable assistive technology products to expose a more
+  namespace specified.</p><hr/><p>The XML specification also allows the use of the <code title="attr-xml-space">xml:space</code> attribute in the <a href="namespaces.html#xml-namespace">XML
+  namespace</a> on any element in an <a href="dom.html#xml-documents" title="XML&#10;  documents">XML document</a>. This attribute has no effect on
+  <a href="infrastructure.html#html-elements">HTML elements</a>, as the default behavior in HTML is to
+  preserve whitespace. <a href="references.html#refsXML">[XML]</a></p><p class="note">There is no way to serialize the <code title="attr-xml-space">xml:space</code> attribute on <a href="infrastructure.html#html-elements">HTML
+  elements</a> in the <code><a href="iana.html#text-html">text/html</a></code> syntax.</p><hr/><p>To enable assistive technology products to expose a more
   fine-grained interface than is otherwise possible with HTML elements
   and attributes, a set of <a href="content-models.html#annotations-for-assistive-technology-products-aria">annotations for assistive technology
-  products</a> can be specified (the ARIA <code title="attr-aria-role">role</code> and <code title="attr-aria-*">aria-*</code> attributes).</p><h5 id="the-id-attribute"><span class="secno">3.2.3.1 </span>The <dfn title="attr-id"><code>id</code></dfn> attribute</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code title="attr-id"><a href="#the-id-attribute">id</a></code> attribute specifies its
+  products</a> can be specified (the ARIA <code title="attr-aria-role">role</code> and <code title="attr-aria-*">aria-*</code> attributes).</p><h5 id="the-id-attribute"><span class="secno">3.2.3.1 </span>The <dfn title="attr-id"><code>id</code></dfn> attribute</h5><p>The <code title="attr-id"><a href="#the-id-attribute">id</a></code> attribute specifies its
   element's <dfn id="concept-id" title="concept-id">unique identifier (ID)</dfn>. The
   value must be unique amongst all the IDs in the element's <a href="infrastructure.html#home-subtree">home
   subtree</a> and must contain at least one character. The value
@@ -654,7 +674,7 @@
   <a href="common-dom-interfaces.html#reflect">reflect</a> the <code title="attr-id"><a href="#the-id-attribute">id</a></code> content
   attribute.</p>
 
-  </div><h5 id="the-title-attribute"><span class="secno">3.2.3.2 </span>The <dfn title="attr-title"><code>title</code></dfn> attribute</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code title="attr-title"><a href="#the-title-attribute">title</a></code> attribute
+  </div><h5 id="the-title-attribute"><span class="secno">3.2.3.2 </span>The <dfn title="attr-title"><code>title</code></dfn> attribute</h5><p>The <code title="attr-title"><a href="#the-title-attribute">title</a></code> attribute
   <a href="rendering.html#represents">represents</a> advisory information for the element, such
   as would be appropriate for a tooltip. On a link, this could be the
   title or a description of the target resource; on an image, it could
@@ -689,7 +709,7 @@
   must <a href="common-dom-interfaces.html#reflect">reflect</a> the <code title="attr-title"><a href="#the-title-attribute">title</a></code>
   content attribute.</p>
 
-  </div><h5 id="the-lang-and-xml:lang-attributes"><span class="secno">3.2.3.3 </span>The <code title="attr-lang"><a href="#attr-lang">lang</a></code> and <code title="attr-xml-lang"><a href="#attr-xml-lang">xml:lang</a></code> attributes</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="attr-lang" title="attr-lang"><code>lang</code></dfn> attribute (in
+  </div><h5 id="the-lang-and-xml:lang-attributes"><span class="secno">3.2.3.3 </span>The <code title="attr-lang"><a href="#attr-lang">lang</a></code> and <code title="attr-xml-lang"><a href="#attr-xml-lang">xml:lang</a></code> attributes</h5><p>The <dfn id="attr-lang" title="attr-lang"><code>lang</code></dfn> attribute (in
   no namespace) specifies the primary language for the element's
   contents and for any of the element's attributes that contain
   text. Its value must be a valid BCP 47 language tag, or the empty
@@ -784,7 +804,7 @@
   defined in XML Base. <a href="references.html#refsXMLBASE">[XMLBASE]</a></p><p>The <code title="attr-xml-base"><a href="#the-xml:base-attribute-xml-only">xml:base</a></code> attribute may be
   used on elements of <a href="dom.html#xml-documents">XML documents</a>. Authors must not
   use the <code title="attr-xml-base"><a href="#the-xml:base-attribute-xml-only">xml:base</a></code> attribute in
-  <a href="dom.html#html-documents">HTML documents</a>.</p><h5 id="the-dir-attribute"><span class="secno">3.2.3.5 </span>The <dfn title="attr-dir"><code>dir</code></dfn> attribute</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code title="attr-dir"><a href="#the-dir-attribute">dir</a></code> attribute specifies the
+  <a href="dom.html#html-documents">HTML documents</a>.</p><h5 id="the-dir-attribute"><span class="secno">3.2.3.5 </span>The <dfn title="attr-dir"><code>dir</code></dfn> attribute</h5><p>The <code title="attr-dir"><a href="#the-dir-attribute">dir</a></code> attribute specifies the
   element's text directionality. The attribute is an <a href="common-microsyntaxes.html#enumerated-attribute">enumerated
   attribute</a> with the keyword <code title="">ltr</code> mapping
   to the state <i>ltr</i>, and the keyword <code title="">rtl</code>
@@ -835,7 +855,7 @@
   </div><p class="note">Authors are strongly encouraged to use the <code title="attr-dir"><a href="#the-dir-attribute">dir</a></code> attribute to indicate text direction
   rather than using CSS, since that way their documents will continue
   to render correctly even in the absence of CSS (e.g. as interpreted
-  by search engines).</p><h5 id="classes"><span class="secno">3.2.3.6 </span>The <dfn title="attr-class"><code>class</code></dfn> attribute</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>Every <a href="infrastructure.html#html-elements" title="HTML elements">HTML element</a> may have a
+  by search engines).</p><h5 id="classes"><span class="secno">3.2.3.6 </span>The <dfn title="attr-class"><code>class</code></dfn> attribute</h5><p>Every <a href="infrastructure.html#html-elements" title="HTML elements">HTML element</a> may have a
   <code title="attr-class"><a href="#classes">class</a></code> attribute specified.</p><p>The attribute, if specified, must have a value that is a
   <a href="common-microsyntaxes.html#set-of-space-separated-tokens">set of space-separated tokens</a> representing the various
   classes that the element belongs to.</p><div class="impl">
@@ -858,7 +878,7 @@
   <dfn id="dom-classlist" title="dom-classList"><code>classList</code></dfn> IDL
   attributes must both <a href="common-dom-interfaces.html#reflect">reflect</a> the <code title="attr-class"><a href="#classes">class</a></code> content attribute.</p>
 
-  </div><h5 id="the-style-attribute"><span class="secno">3.2.3.7 </span>The <dfn title="attr-style"><code>style</code></dfn> attribute</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>All <a href="infrastructure.html#html-elements">HTML elements</a> may have the <code title="attr-style"><a href="#the-style-attribute">style</a></code> content attribute set. This is a
+  </div><h5 id="the-style-attribute"><span class="secno">3.2.3.7 </span>The <dfn title="attr-style"><code>style</code></dfn> attribute</h5><p>All <a href="infrastructure.html#html-elements">HTML elements</a> may have the <code title="attr-style"><a href="#the-style-attribute">style</a></code> content attribute set. This is a
   <span>CSS styling attribute</span> as defined by the CSS Styling
   Attribute Syntax specification. <a href="references.html#refsCSSATTR">[CSSATTR]</a></p><div class="impl">
 
@@ -898,7 +918,7 @@
 transparent"&gt;green&lt;/span&gt; and my eyes are &lt;span style="color: blue;
 background: transparent"&gt;blue&lt;/span&gt;.&lt;/p&gt;</pre>
 
-  </div><h5 id="embedding-custom-non-visible-data"><span class="secno">3.2.3.8 </span><dfn>Embedding custom non-visible data</dfn></h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>A <dfn id="custom-data-attribute">custom data attribute</dfn> is an attribute in no
+  </div><h5 id="embedding-custom-non-visible-data-with-the-data-attributes"><span class="secno">3.2.3.8 </span><dfn>Embedding custom non-visible data</dfn> with the <code title="attr-data-*"><a href="#attr-data">data-*</a></code> attributes</h5><p>A <dfn id="custom-data-attribute">custom data attribute</dfn> is an attribute in no
   namespace whose name starts with the string "<dfn id="attr-data" title="attr-data-*"><code>data-</code></dfn>", has at least one
   character after the hyphen, is <a href="infrastructure.html#xml-compatible">XML-compatible</a>, and
   contains no characters in the range U+0041 to U+005A (LATIN CAPITAL
@@ -1011,13 +1031,13 @@
    <dd>
     <ol><li>Let <var title="">name</var> be the name passed to the
      algorithm.</li>
-
+<!--(can't happen while the DOMStringMap deleter has no name)
      <li>If <var title="">name</var> contains a U+002D HYPHEN-MINUS
      character (-) followed by a character in the range U+0061 to
      U+007A (U+0061 LATIN SMALL LETTER A to U+007A LATIN SMALL LETTER
-     Z), throw a <code><a href="common-dom-interfaces.html#syntax_err">SYNTAX_ERR</a></code> exception and abort these
+     Z), throw a <code>SYNTAX_ERR</code> exception and abort these
      steps.</li>
-
+-->
      <li>For each character in the range U+0041 to U+005A (U+0041
      LATIN CAPITAL LETTER A to U+005A LATIN CAPITAL LETTER Z) in <var title="">name</var>, insert a U+002D HYPHEN-MINUS character (-)
      before the character and replace the character with the same
@@ -1047,7 +1067,7 @@
  &lt;/button&gt;
 &lt;/div&gt;</pre>
 
-   <p>Notice how the hyphenated attribute name becomes capitalized in
+   <p>Notice how the hyphenated attribute name becomes camel-cased in
    the API.</p>
 
   </div><p>Authors should carefully design such extensions so that when the
@@ -1061,49 +1081,71 @@
   </div><p>JavaScript libraries may use the <a href="#custom-data-attribute" title="custom data&#10;  attribute">custom data attributes</a>, as they are considered to
   be part of the page on which they are used. Authors of libraries
   that are reused by many authors are encouraged to include their name
-  in the attribute names, to reduce the risk of clashes.</p><div class="example">
+  in the attribute names, to reduce the risk of clashes. Where it
+  makes sense, library authors are also encouraged to make the exact
+  name used in the attribute names customizable, so that libraries
+  whose authors unknowingly picked the same name can be used on the
+  same page, and so that multiple versions of a particular library can
+  be used on the same page even when those versions are not mutually
+  compatible.</p><div class="example">
 
    <p>For example, a library called "DoQuery" could use attribute
    names like <code title="">data-doquery-range</code>, and a library
-   called "jJo" could use attributes names like <code title="">data-jjo-range</code>.</p>
+   called "jJo" could use attributes names like <code title="">data-jjo-range</code>. The jJo library could also provide
+   an API to set which prefix to use (e.g. <code title="">J.setDataPrefix('j2')</code>, making the attributes have
+   names like <code title="">data-j2-range</code>).</p>
 
-  </div><h4 id="element-definitions"><span class="secno">3.2.4 </span>Element definitions</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>Each element in this specification has a definition that includes
+  </div><h4 id="element-definitions"><span class="secno">3.2.4 </span>Element definitions</h4><p>Each element in this specification has a definition that includes
   the following information:</p><dl><dt>Categories</dt>
 
-   <dd>A list of <a href="content-models.html#content-categories" title="content categories">categories</a> to
-   which the element belongs. These are used when defining the
-   <a href="content-models.html#content-models">content models</a> for each element.</dd>
+   <dd><p>A list of <a href="content-models.html#content-categories" title="content categories">categories</a>
+   to which the element belongs. These are used when defining the
+   <a href="content-models.html#content-models">content models</a> for each element.</p></dd>
 
 
-   <dt>Contexts in which this element may be used</dt>
+   <dt>Contexts in which this element can be used</dt>
 
-   <dd>A <em>non-normative</em> description of where the element can
-   be used. This information is redundant with the content models of
-   elements that allow this one as a child, and is provided only as a
-   convenience.</dd>
+   <dd>
+
+    <p>A <em>non-normative</em> description of where the element can
+    be used. This information is redundant with the content models of
+    elements that allow this one as a child, and is provided only as a
+    convenience.</p>
+
+    <p class="note">For simplicity, only the most specific
+    expectations are listed. For example, an element that is both
+    <a href="content-models.html#flow-content">flow content</a> and <a href="content-models.html#phrasing-content">phrasing content</a> can be
+    used anywhere that either <a href="content-models.html#flow-content">flow content</a> or
+    <a href="content-models.html#phrasing-content">phrasing content</a> is expected, but since anywhere that
+    <a href="content-models.html#flow-content">flow content</a> is expected, <a href="content-models.html#phrasing-content">phrasing
+    content</a> is also expected (since all <a href="content-models.html#phrasing-content">phrasing
+    content</a> is <a href="content-models.html#flow-content">flow content</a>), only "where
+    <a href="content-models.html#phrasing-content">phrasing content</a> is expected" will be listed.</p>
+
+   </dd>
 
 
    <dt>Content model</dt>
 
-   <dd>A normative description of what content must be included as
-   children and descendants of the element.</dd>
+   <dd><p>A normative description of what content must be included as
+   children and descendants of the element.</p></dd>
 
 
    <dt>Content attributes</dt>
 
-   <dd>A normative list of attributes that may be specified on the
-   element (except where otherwise disallowed).</dd>
+   <dd><p>A normative list of attributes that may be specified on the
+   element (except where otherwise disallowed).</p></dd>
 
 
    <dt>DOM interface</dt>
 
-   <dd>A normative definition of a DOM interface that such elements
-   must implement.</dd>
+   <dd><p>A normative definition of a DOM interface that such elements
+   must implement.</p></dd>
 
   </dl><p>This is then followed by a description of what the element
   <a href="rendering.html#represents">represents</a>, along with any additional normative
   conformance criteria that may apply to authors<span class="impl" title=""> and implementations</span>. Examples are sometimes
-  also included.</p><h5 id="attributes"><span class="secno">3.2.4.1 </span>Attributes</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p id="attribute-text">Except where otherwise specified, attributes
+  also included.</p><h5 id="attributes"><span class="secno">3.2.4.1 </span>Attributes</h5><p id="attribute-text">Except where otherwise specified, attributes
   on <a href="infrastructure.html#html-elements">HTML elements</a> may have any string value, including
   the empty string. Except where explicitly stated, there is no
   restriction on what text can be specified in such attributes.</p></body></html>

Index: urls.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/urls.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- urls.html	28 Aug 2010 23:52:56 -0000	1.1
+++ urls.html	19 Oct 2010 17:38:08 -0000	1.2
@@ -1,7 +1,7 @@
 <?xml version="1.0" standalone="yes"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "">
 <!-- when publishing, change bits marked ZZZ -->
-<html lang="en-US-x-Hixie" class="split chapter"><head><title>2.5 URLs &#x2014; HTML5 </title><style type="text/css"><![CDATA[
+<html lang="en-US-x-Hixie" class="split chapter"><head><title>2.6 URLs &#x2014; HTML5 </title><style type="text/css"><![CDATA[
    pre { margin-left: 2em; white-space: pre-wrap; }
    h2 { margin: 3em 0 1em 0; }
    h3 { margin: 2.5em 0 1em 0; }
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -309,16 +319,16 @@
        document.getElementsByTagName('h2')[0].textContent += '; load: ' + (new Date() - loadTimer) + 'ms';
      fixBrokenLink();
    }
-  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="common-microsyntaxes.html" title="2.4 Common microsyntaxes" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="fetching-resources.html" title="2.6 Fetching resources" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
+  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="common-microsyntaxes.html" title="2.5 Common microsyntaxes" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="fetching-resources.html" title="2.7 Fetching resources" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
    <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"/></a></p>
 
    <h1>HTML5</h1>
    </div><div>
-   <a href="common-microsyntaxes.html">&#x2190; 2.4 Common microsyntaxes</a> &#x2013;
+   <a href="common-microsyntaxes.html">&#x2190; 2.5 Common microsyntaxes</a> &#x2013;
    <a href="spec.html#contents">Table of contents</a> &#x2013;
-   <a href="fetching-resources.html">2.6 Fetching resources &#x2192;</a>
-  <ol class="toc"><li><ol><li><a href="urls.html#urls"><span class="secno">2.5 </span>URLs</a>
-    <ol><li><a href="urls.html#terminology-0"><span class="secno">2.5.1 </span>Terminology</a></li><li><a href="urls.html#dynamic-changes-to-base-urls"><span class="secno">2.5.2 </span>Dynamic changes to base URLs</a></li><li><a href="urls.html#interfaces-for-url-manipulation"><span class="secno">2.5.3 </span>Interfaces for URL manipulation</a></li></ol></li></ol></li></ol></div><h3 id="urls"><span class="secno">2.5 </span>URLs</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments. </i><span><a href="http://www.w3.org/html/wg/tracker/issues/56">ISSUE-56</a> (urls-webarch) blocks progress to Last Call</span></p><h4 id="terminology-0"><span class="secno">2.5.1 </span>Terminology</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><!-- see also: svn diff -r3244:3245 source --><p>A <dfn id="url">URL</dfn> is a string used to identify a resource.</p><p>A <a href="#url">URL</a> is a <dfn id="valid-url">valid URL</dfn> if at least one of
+   <a href="fetching-resources.html">2.7 Fetching resources &#x2192;</a>
+  <ol class="toc"><li><ol><li><a href="urls.html#urls"><span class="secno">2.6 </span>URLs</a>
+    <ol><li><a href="urls.html#terminology-0"><span class="secno">2.6.1 </span>Terminology</a></li><li><a href="urls.html#dynamic-changes-to-base-urls"><span class="secno">2.6.2 </span>Dynamic changes to base URLs</a></li><li><a href="urls.html#interfaces-for-url-manipulation"><span class="secno">2.6.3 </span>Interfaces for URL manipulation</a></li></ol></li></ol></li></ol></div><h3 id="urls"><span class="secno">2.6 </span>URLs</h3><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/56">ISSUE-56</a> (urls-webarch) blocks progress to Last Call</span></p><h4 id="terminology-0"><span class="secno">2.6.1 </span>Terminology</h4><!-- see also: svn diff -r3244:3245 source --><p>A <dfn id="url">URL</dfn> is a string used to identify a resource.</p><p>A <a href="#url">URL</a> is a <dfn id="valid-url">valid URL</dfn> if at least one of
   the following conditions holds:</p><ul><li><p>The <a href="#url">URL</a> is a valid URI reference <a href="references.html#refsRFC3986">[RFC3986]</a>.</p></li>
 
    <li><p>The <a href="#url">URL</a> is a valid IRI reference and it has no
@@ -476,7 +486,7 @@
   herein is really called something else altogether. This is a
   <a href="introduction.html#willful-violation">willful violation</a> of RFC 3986. <a href="references.html#refsRFC3986">[RFC3986]</a></p><div class="impl">
 
-  <h4 id="dynamic-changes-to-base-urls"><span class="secno">2.5.2 </span>Dynamic changes to base URLs</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="dynamic-changes-to-base-urls"><span class="secno">2.6.2 </span>Dynamic changes to base URLs</h4>
 
   <p>When an <code title="attr-xml-base"><a href="elements.html#the-xml:base-attribute-xml-only">xml:base</a></code> attribute
   changes, the attribute's element, and all descendant elements, are
@@ -537,7 +547,7 @@
 
    </dd>
 
-  </dl></div><h4 id="interfaces-for-url-manipulation"><span class="secno">2.5.3 </span>Interfaces for URL manipulation</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>An interface that has a complement of <dfn id="url-decomposition-idl-attributes">URL decomposition IDL
+  </dl></div><h4 id="interfaces-for-url-manipulation"><span class="secno">2.6.3 </span>Interfaces for URL manipulation</h4><p>An interface that has a complement of <dfn id="url-decomposition-idl-attributes">URL decomposition IDL
   attributes</dfn> will have seven attributes with the following
   definitions:</p><pre class="idl extract">           attribute DOMString <a href="#dom-uda-protocol" title="dom-uda-protocol">protocol</a>;
            attribute DOMString <a href="#dom-uda-host" title="dom-uda-host">host</a>;
@@ -725,4 +735,34 @@
      </td></tr><tr><td> <code title="">http://example.com/?test#</code>
       </td><td> <code title="">?test</code>
       </td><td> The (empty) <a href="#url-fragment" title="url-fragment">&lt;fragment&gt;</a> component is not part of the <a href="#url-query" title="url-query">&lt;query&gt;</a> component.
+   </td></tr></tbody></table></div><div class="example">
+
+   <p>The following table is similar; it provides a list of what each
+   of the <a href="#url-decomposition-idl-attributes">URL decomposition IDL attributes</a> returns for a
+   given <var title="">input</var> URL.</p>
+
+   <table><thead><tr><th>Input
+      </th><th><code title="dom-uda-protocol"><a href="#dom-uda-protocol">protocol</a></code>
+      </th><th><code title="dom-uda-host"><a href="#dom-uda-host">host</a></code>
+      </th><th><code title="dom-uda-hostname"><a href="#dom-uda-hostname">hostname</a></code>
+      </th><th><code title="dom-uda-port"><a href="#dom-uda-port">port</a></code>
+      </th><th><code title="dom-uda-pathname"><a href="#dom-uda-pathname">pathname</a></code>
+      </th><th><code title="dom-uda-search"><a href="#dom-uda-search">search</a></code>
+      </th><th><code title="dom-uda-hash"><a href="#dom-uda-hash">hash</a></code>
+    </th></tr></thead><tbody><tr><td><code title="">http://example.com/carrot#question%3f</code>
+      </td><td><code title="">http:</code>
+      </td><td><code title="">example.com</code>
+      </td><td><code title="">example.com</code>
+      </td><td>(empty string)
+      </td><td><code title="">/carrot</code>
+      </td><td>(empty string)
+      </td><td><code title="">#question%3f</code>
+     </td></tr><tr><td><code title="">https://www.example.com:4443?</code>
+      </td><td><code title="">https:</code>
+      </td><td><code title="">www.example.com:4443</code>
+      </td><td><code title="">www.example.com</code>
+      </td><td><code title="">4443</code>
+      </td><td><code title="">/</code>
+      </td><td><code title="">?</code>
+      </td><td>(empty string)
    </td></tr></tbody></table></div></body></html>

Index: tokenization.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/tokenization.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- tokenization.html	28 Aug 2010 23:52:56 -0000	1.1
+++ tokenization.html	19 Oct 2010 17:38:08 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
[...1419 lines suppressed...]
   <p>When the <a href="parsing.html#insertion-mode">insertion mode</a> is "<a href="#parsing-main-afterframeset" title="insertion&#10;  mode: after frameset">after frameset</a>", tokens must be handled as follows:</p>
 
@@ -5944,7 +5950,7 @@
     <p><a href="parsing.html#parse-error">Parse error</a>. Ignore the token.</p>
    </dd>
 
-  </dl><h5 id="the-after-after-body-insertion-mode"><span class="secno">8.2.5.25 </span>The "<dfn title="insertion mode: after after body">after after body</dfn>" insertion mode</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  </dl><h5 id="the-after-after-body-insertion-mode"><span class="secno">8.2.5.25 </span>The "<dfn title="insertion mode: after after body">after after body</dfn>" insertion mode</h5>
 
   <p>When the <a href="parsing.html#insertion-mode">insertion mode</a> is "<a href="#the-after-after-body-insertion-mode" title="insertion&#10;  mode: after after body">after after body</a>", tokens must be handled as follows:</p>
 
@@ -5977,7 +5983,7 @@
     reprocess the token.</p>
    </dd>
 
-  </dl><h5 id="the-after-after-frameset-insertion-mode"><span class="secno">8.2.5.26 </span>The "<dfn title="insertion mode: after after frameset">after after frameset</dfn>" insertion mode</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  </dl><h5 id="the-after-after-frameset-insertion-mode"><span class="secno">8.2.5.26 </span>The "<dfn title="insertion mode: after after frameset">after after frameset</dfn>" insertion mode</h5>
 
   <p>When the <a href="parsing.html#insertion-mode">insertion mode</a> is "<a href="#the-after-after-frameset-insertion-mode" title="insertion&#10;  mode: after after frameset">after after frameset</a>", tokens must be handled as follows:</p>
 

Index: association-of-controls-and-forms.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/association-of-controls-and-forms.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- association-of-controls-and-forms.html	28 Aug 2010 23:52:52 -0000	1.1
+++ association-of-controls-and-forms.html	19 Oct 2010 17:38:06 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -318,9 +328,9 @@
    <a href="spec.html#contents">Table of contents</a> &#x2013;
    <a href="interactive-elements.html">4.11 Interactive elements &#x2192;</a>
   <ol class="toc"><li><ol><li><ol><li><a href="association-of-controls-and-forms.html#association-of-controls-and-forms"><span class="secno">4.10.18 </span>Association of controls and forms</a></li><li><a href="association-of-controls-and-forms.html#attributes-common-to-form-controls"><span class="secno">4.10.19 </span>Attributes common to form controls</a>
-      <ol><li><a href="association-of-controls-and-forms.html#naming-form-controls"><span class="secno">4.10.19.1 </span>Naming form controls</a></li><li><a href="association-of-controls-and-forms.html#enabling-and-disabling-form-controls"><span class="secno">4.10.19.2 </span>Enabling and disabling form controls</a></li><li><a href="association-of-controls-and-forms.html#a-form-control-s-value"><span class="secno">4.10.19.3 </span>A form control's value</a></li><li><a href="association-of-controls-and-forms.html#autofocusing-a-form-control"><span class="secno">4.10.19.4 </span>Autofocusing a form control</a></li><li><a href="association-of-controls-and-forms.html#limiting-user-input-length"><span class="secno">4.10.19.5 </span>Limiting user input length</a></li><li><a href="association-of-controls-and-forms.html#form-submission-0"><span class="secno">4.10.19.6 </span>Form submission</a></li></ol></li><li><a href="association-of-controls-and-forms.html#constraints"><span class="secno">4.10.20 </span>Constraints</a>
-      <ol><li><a href="association-of-controls-and-forms.html#definitions"><span class="secno">4.10.20.1 </span>Definitions</a></li><li><a href="association-of-controls-and-forms.html#constraint-validation"><span class="secno">4.10.20.2 </span>Constraint validation</a></li><li><a href="association-of-controls-and-forms.html#the-constraint-validation-api"><span class="secno">4.10.20.3 </span>The constraint validation API</a></li><li><a href="association-of-controls-and-forms.html#security-forms"><span class="secno">4.10.20.4 </span>Security</a></li></ol></li><li><a href="association-of-controls-and-forms.html#form-submission"><span class="secno">4.10.21 </span>Form submission</a>
-      <ol><li><a href="association-of-controls-and-forms.html#introduction-1"><span class="secno">4.10.21.1 </span>Introduction</a></li><li><a href="association-of-controls-and-forms.html#implicit-submission"><span class="secno">4.10.21.2 </span>Implicit submission</a></li><li><a href="association-of-controls-and-forms.html#form-submission-algorithm"><span class="secno">4.10.21.3 </span>Form submission algorithm</a></li><li><a href="association-of-controls-and-forms.html#url-encoded-form-data"><span class="secno">4.10.21.4 </span>URL-encoded form data</a></li><li><a href="association-of-controls-and-forms.html#multipart-form-data"><span class="secno">4.10.21.5 </span>Multipart form data</a></li><li><a href="association-of-controls-and-forms.html#plain-text-form-data"><span class="secno">4.10.21.6 </span>Plain text form data</a></li></ol></li><li><a href="association-of-controls-and-forms.html#resetting-a-form"><span class="secno">4.10.22 </span>Resetting a form</a></li><li><a href="association-of-controls-and-forms.html#event-dispatch"><span class="secno">4.10.23 </span>Event dispatch</a></li></ol></li></ol></li></ol></div><h4 id="association-of-controls-and-forms"><span class="secno">4.10.18 </span>Association of controls and forms</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>A <a href="forms.html#form-associated-element">form-associated element</a> can have a relationship
+      <ol><li><a href="association-of-controls-and-forms.html#naming-form-controls"><span class="secno">4.10.19.1 </span>Naming form controls</a></li><li><a href="association-of-controls-and-forms.html#enabling-and-disabling-form-controls"><span class="secno">4.10.19.2 </span>Enabling and disabling form controls</a></li><li><a href="association-of-controls-and-forms.html#a-form-control-s-value"><span class="secno">4.10.19.3 </span>A form control's value</a></li><li><a href="association-of-controls-and-forms.html#autofocusing-a-form-control"><span class="secno">4.10.19.4 </span>Autofocusing a form control</a></li><li><a href="association-of-controls-and-forms.html#limiting-user-input-length"><span class="secno">4.10.19.5 </span>Limiting user input length</a></li><li><a href="association-of-controls-and-forms.html#form-submission-0"><span class="secno">4.10.19.6 </span>Form submission</a></li></ol></li><li><a href="association-of-controls-and-forms.html#textFieldSelection"><span class="secno">4.10.20 </span>APIs for the text field selections</a></li><li><a href="association-of-controls-and-forms.html#constraints"><span class="secno">4.10.21 </span>Constraints</a>
+      <ol><li><a href="association-of-controls-and-forms.html#definitions"><span class="secno">4.10.21.1 </span>Definitions</a></li><li><a href="association-of-controls-and-forms.html#constraint-validation"><span class="secno">4.10.21.2 </span>Constraint validation</a></li><li><a href="association-of-controls-and-forms.html#the-constraint-validation-api"><span class="secno">4.10.21.3 </span>The constraint validation API</a></li><li><a href="association-of-controls-and-forms.html#security-forms"><span class="secno">4.10.21.4 </span>Security</a></li></ol></li><li><a href="association-of-controls-and-forms.html#form-submission"><span class="secno">4.10.22 </span>Form submission</a>
+      <ol><li><a href="association-of-controls-and-forms.html#introduction-1"><span class="secno">4.10.22.1 </span>Introduction</a></li><li><a href="association-of-controls-and-forms.html#implicit-submission"><span class="secno">4.10.22.2 </span>Implicit submission</a></li><li><a href="association-of-controls-and-forms.html#form-submission-algorithm"><span class="secno">4.10.22.3 </span>Form submission algorithm</a></li><li><a href="association-of-controls-and-forms.html#url-encoded-form-data"><span class="secno">4.10.22.4 </span>URL-encoded form data</a></li><li><a href="association-of-controls-and-forms.html#multipart-form-data"><span class="secno">4.10.22.5 </span>Multipart form data</a></li><li><a href="association-of-controls-and-forms.html#plain-text-form-data"><span class="secno">4.10.22.6 </span>Plain text form data</a></li></ol></li><li><a href="association-of-controls-and-forms.html#resetting-a-form"><span class="secno">4.10.23 </span>Resetting a form</a></li><li><a href="association-of-controls-and-forms.html#event-dispatch"><span class="secno">4.10.24 </span>Event dispatch</a></li></ol></li></ol></li></ol></div><h4 id="association-of-controls-and-forms"><span class="secno">4.10.18 </span>Association of controls and forms</h4><p>A <a href="forms.html#form-associated-element">form-associated element</a> can have a relationship
   with a <code><a href="forms.html#the-form-element">form</a></code> element, which is called the element's
   <dfn id="form-owner">form owner</dfn>. If a <a href="forms.html#form-associated-element">form-associated element</a> is
   not associated with a <code><a href="forms.html#the-form-element">form</a></code> element, its <a href="#form-owner">form
@@ -351,7 +361,9 @@
   <p>When a <a href="forms.html#form-associated-element">form-associated element</a>'s ancestor chain
   changes, e.g. because it or one of its ancestors was <a href="infrastructure.html#insert-an-element-into-a-document" title="insert an element into a document">inserted</a> or <a href="infrastructure.html#remove-an-element-from-a-document" title="remove an element from a document">removed</a> from a
   <code><a href="infrastructure.html#document">Document</a></code>, then the user agent must <a href="#reset-the-form-owner">reset the form
-  owner</a> of that element.</p>
+  owner</a> of that element. <span class="note">The <a href="parsing.html#html-parser">HTML
+  parser</a> overrides this requirement when inserting form
+  controls.</span></p>
 
   <p>When a <a href="forms.html#form-associated-element">form-associated element</a>'s <code title="attr-fae-form"><a href="#attr-fae-form">form</a></code> attribute is added, removed, or
   has its value changed, then the user agent must <a href="#reset-the-form-owner">reset the form
@@ -454,7 +466,7 @@
   on getting, must return the element's <a href="#form-owner">form owner</a>, or
   null if there isn't one.</p>
 
-  </div><h4 id="attributes-common-to-form-controls"><span class="secno">4.10.19 </span><dfn>Attributes common to form controls</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><h5 id="naming-form-controls"><span class="secno">4.10.19.1 </span>Naming form controls</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="attr-fe-name" title="attr-fe-name"><code>name</code></dfn> content
+  </div><h4 id="attributes-common-to-form-controls"><span class="secno">4.10.19 </span><dfn>Attributes common to form controls</dfn></h4><h5 id="naming-form-controls"><span class="secno">4.10.19.1 </span>Naming form controls</h5><p>The <dfn id="attr-fe-name" title="attr-fe-name"><code>name</code></dfn> content
   attribute gives the name of the form control, as used in <a href="#form-submission">form
   submission</a> and in the <code><a href="forms.html#the-form-element">form</a></code> element's <code title="dom-form-elements"><a href="forms.html#dom-form-elements">elements</a></code> object. If the attribute
   is specified, its value must not be the empty string.</p><p>Any non-empty value for <code title="attr-form-name"><a href="forms.html#attr-form-name">name</a></code>
@@ -478,7 +490,7 @@
   <p>The <dfn id="dom-fe-name" title="dom-fe-name"><code>name</code></dfn> IDL
   attribute must <a href="common-dom-interfaces.html#reflect">reflect</a> the <code title="attr-fe-name"><a href="#attr-fe-name">name</a></code> content attribute.</p>
 
-  </div><h5 id="enabling-and-disabling-form-controls"><span class="secno">4.10.19.2 </span>Enabling and disabling form controls</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="attr-fe-disabled" title="attr-fe-disabled"><code>disabled</code></dfn>
+  </div><h5 id="enabling-and-disabling-form-controls"><span class="secno">4.10.19.2 </span>Enabling and disabling form controls</h5><p>The <dfn id="attr-fe-disabled" title="attr-fe-disabled"><code>disabled</code></dfn>
   content attribute is a <a href="common-microsyntaxes.html#boolean-attribute">boolean attribute</a>.</p><p>A form control is <dfn id="concept-fe-disabled" title="concept-fe-disabled">disabled</dfn>
   if its <code title="attr-fe-disabled"><a href="#attr-fe-disabled">disabled</a></code> attribute is
   set, or if it is a descendant of a <code><a href="forms.html#the-fieldset-element">fieldset</a></code> element
@@ -505,7 +517,7 @@
   is only used by <code><a href="the-input-element.html#the-input-element">input</a></code> elements.) These are used to
   describe how the user interacts with the control.</p>
 
-  </div><h5 id="autofocusing-a-form-control"><span class="secno">4.10.19.4 </span>Autofocusing a form control</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><!-- v2: Apply this to contentEditable elements --><p>The <dfn id="attr-fe-autofocus" title="attr-fe-autofocus"><code>autofocus</code></dfn>
+  </div><h5 id="autofocusing-a-form-control"><span class="secno">4.10.19.4 </span>Autofocusing a form control</h5><!-- v2: Apply this to contentEditable elements --><p>The <dfn id="attr-fe-autofocus" title="attr-fe-autofocus"><code>autofocus</code></dfn>
   content attribute allows the author to indicate that a control is to
   be focused as soon as the page is loaded, allowing the user to just
   start typing without having to manually focus the main control.</p><p>The <code title="attr-fe-autofocus"><a href="#attr-fe-autofocus">autofocus</a></code> attribute is
@@ -517,14 +529,30 @@
   <a href="infrastructure.html#insert-an-element-into-a-document" title="insert an element into a document">inserted into a
   document</a>, user agents should run the following steps:</p>
 
-  <ol><li><p>If the <code><a href="infrastructure.html#document">Document</a></code>'s <a href="browsers.html#browsing-context">browsing context</a>
-   had the <a href="the-iframe-element.html#sandboxed-automatic-features-browsing-context-flag">sandboxed automatic features browsing context
-   flag</a> set when the <code><a href="infrastructure.html#document">Document</a></code> was created, abort
-   these steps.</p></li>
+  <ol><li><p>Let <var title="">target</var> be the element's
+   <code><a href="infrastructure.html#document">Document</a></code>.</p></li>
+
+   <li><p>If <var title="">target</var>'s <a href="browsers.html#browsing-context">browsing
+   context</a> had the <a href="the-iframe-element.html#sandboxed-automatic-features-browsing-context-flag">sandboxed automatic features browsing
+   context flag</a> set when <var title="">target</var> was
+   created, abort these steps.</p></li>
+
+   <li><p>If <var title="">target</var>'s <a href="origin-0.html#origin">origin</a> is not
+   the <a href="origin-0.html#same-origin" title="same origin">same</a> as the
+   <a href="origin-0.html#origin">origin</a> of the <code><a href="infrastructure.html#document">Document</a></code> of the currently
+   focused element in <var title="">target</var>'s <a href="browsers.html#top-level-browsing-context">top-level
+   browsing context</a>, abort these steps.</p></li>
+
+   <li><p>If <var title="">target</var>'s <a href="origin-0.html#origin">origin</a> is not
+   the <a href="origin-0.html#same-origin" title="same origin">same</a> as the
+   <a href="origin-0.html#origin">origin</a> of the <a href="browsers.html#active-document">active document</a> of <var title="">target</var>'s <a href="browsers.html#top-level-browsing-context">top-level browsing context</a>,
+   abort these steps.</p></li>
 
    <li><p>If the user agent has already reached the last step of this
-   list of steps in response to an element being <a href="infrastructure.html#insert-an-element-into-a-document" title="insert&#10;   an element into a document">inserted</a> into this
-   <code><a href="infrastructure.html#document">Document</a></code>, abort these steps.</p></li>
+   list of steps in response to an element being <a href="infrastructure.html#insert-an-element-into-a-document" title="insert&#10;   an element into a document">inserted</a> into a
+   <code><a href="infrastructure.html#document">Document</a></code> whose <a href="browsers.html#top-level-browsing-context">top-level browsing
+   context</a>'s <a href="browsers.html#active-document">active document</a> is the same as <var title="">target</var>'s <a href="browsers.html#top-level-browsing-context">top-level browsing context</a>'s
+   <a href="browsers.html#active-document">active document</a>, abort these steps.</p></li>
 
    <li><p>If the user has indicated (for example, by starting to type
    in a form control) that he does not wish focus to be changed, then
@@ -550,7 +578,7 @@
    the document was loaded.</p>
    <pre>&lt;input maxlength="256" name="q" value="" autofocus&gt;
 &lt;input type="submit" value="Search"&gt;</pre>
-  </div><h5 id="limiting-user-input-length"><span class="secno">4.10.19.5 </span>Limiting user input length</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>A <dfn id="attr-fe-maxlength" title="attr-fe-maxlength">form control <code title="">maxlength</code> attribute</dfn>, controlled by a <var title="">dirty value flag</var> declares a limit on the number of
+  </div><h5 id="limiting-user-input-length"><span class="secno">4.10.19.5 </span>Limiting user input length</h5><p>A <dfn id="attr-fe-maxlength" title="attr-fe-maxlength">form control <code title="">maxlength</code> attribute</dfn>, controlled by a <var title="">dirty value flag</var> declares a limit on the number of
   characters a user can input.</p><p>If an element has its <a href="#attr-fe-maxlength" title="attr-fe-maxlength">form
   control <code title="">maxlength</code> attribute</a> specified,
   the attribute's value must be a <a href="common-microsyntaxes.html#valid-non-negative-integer">valid non-negative
@@ -571,7 +599,7 @@
   <a href="common-microsyntaxes.html#code-point-length">code-point length</a> is greater than the element's
   <a href="#maximum-allowed-value-length">maximum allowed value length</a>.</p>
 
-  </div><h5 id="form-submission-0"><span class="secno">4.10.19.6 </span>Form submission</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p><dfn id="attributes-for-form-submission">Attributes for form submission</dfn> can be specified both
+  </div><h5 id="form-submission-0"><span class="secno">4.10.19.6 </span>Form submission</h5><p><dfn id="attributes-for-form-submission">Attributes for form submission</dfn> can be specified both
   on <code><a href="forms.html#the-form-element">form</a></code> elements and on <a href="forms.html#concept-submit-button" title="concept-submit-button">submit buttons</a> (elements that
   represent buttons that submit forms, e.g. an <code><a href="the-input-element.html#the-input-element">input</a></code>
   element whose <code title="attr-input-type"><a href="the-input-element.html#attr-input-type">type</a></code> attribute is
@@ -594,25 +622,17 @@
   attribute, if <em>it</em> has one, or else the empty string.</p><hr/><p>The <dfn id="attr-fs-method" title="attr-fs-method"><code>method</code></dfn> and
   <dfn id="attr-fs-formmethod" title="attr-fs-formmethod"><code>formmethod</code></dfn>
   content attributes are <a href="common-microsyntaxes.html#enumerated-attribute" title="enumerated attribute">enumerated
-  attributes</a> with the following keywords and states:</p><ul><li>The keyword <dfn id="attr-fs-method-get-keyword" title="attr-fs-method-GET-keyword"><code>GET</code></dfn>, mapping
+  attributes</a> with the following keywords and states:</p><ul><li>The keyword <dfn id="attr-fs-method-get-keyword" title="attr-fs-method-GET-keyword"><code>get</code></dfn>, mapping
    to the state <dfn id="attr-fs-method-get" title="attr-fs-method-GET">GET</dfn>, indicating
    the HTTP GET method.</li>
 
-   <li>The keyword <dfn id="attr-fs-method-post-keyword" title="attr-fs-method-POST-keyword"><code>POST</code></dfn>, mapping
+   <li>The keyword <dfn id="attr-fs-method-post-keyword" title="attr-fs-method-POST-keyword"><code>post</code></dfn>, mapping
    to the state <dfn id="attr-fs-method-post" title="attr-fs-method-POST">POST</dfn>, indicating
    the HTTP POST method.</li>
 
-   <li>The keyword <dfn id="attr-fs-method-put-keyword" title="attr-fs-method-PUT-keyword"><code>PUT</code></dfn>, mapping
-   to the state <dfn id="attr-fs-method-put" title="attr-fs-method-PUT">PUT</dfn>, indicating
-   the HTTP PUT method.</li>
-
-   <li>The keyword <dfn id="attr-fs-method-delete-keyword" title="attr-fs-method-DELETE-keyword"><code>DELETE</code></dfn>, mapping
-   to the state <dfn id="attr-fs-method-delete" title="attr-fs-method-DELETE">DELETE</dfn>, indicating
-   the HTTP DELETE method.</li>
-
   </ul><p>The <i>missing value default</i> for these attributes is the
   <a href="#attr-fs-method-get" title="attr-fs-method-GET">GET</a> state.</p><p>The <dfn id="concept-fs-method" title="concept-fs-method">method</dfn> of an element is
-  one of those four states. If the element is a <a href="forms.html#concept-submit-button" title="concept-submit-button">submit button</a> and has a <code title="attr-fs-formmethod"><a href="#attr-fs-formmethod">formmethod</a></code> attribute, then the
+  one of those states. If the element is a <a href="forms.html#concept-submit-button" title="concept-submit-button">submit button</a> and has a <code title="attr-fs-formmethod"><a href="#attr-fs-formmethod">formmethod</a></code> attribute, then the
   element's <a href="#concept-fs-method" title="concept-fs-method">method</a> is that
   attribute's state; otherwise, it is the <a href="#form-owner">form owner</a>'s
   <code title="attr-fs-method"><a href="#attr-fs-method">method</a></code> attribute's state.</p><hr/><p>The <dfn id="attr-fs-enctype" title="attr-fs-enctype"><code>enctype</code></dfn> and
@@ -675,20 +695,127 @@
   <dfn id="dom-fs-enctype" title="dom-fs-enctype"><code>enctype</code></dfn> IDL
   attributes must <a href="common-dom-interfaces.html#reflect">reflect</a> the respective content
   attributes of the same name, <a href="common-dom-interfaces.html#limited-to-only-known-values">limited to only known
-  values</a>. The <dfn id="dom-fs-novalidate" title="dom-fs-noValidate"><code>noValidate</code></dfn> IDL
-  attribute must reflect the <code title="attr-fs-novalidate"><a href="#attr-fs-novalidate">novalidate</a></code> content attribute.  The
+  values</a>. The <dfn id="dom-fs-encoding" title="dom-fs-encoding"><code>encoding</code></dfn> IDL attribute
+  must <a href="common-dom-interfaces.html#reflect">reflect</a> the <code title="attr-fs-enctype"><a href="#attr-fs-enctype">enctype</a></code> content attribute,
+  <a href="common-dom-interfaces.html#limited-to-only-known-values">limited to only known values</a>. The <dfn id="dom-fs-novalidate" title="dom-fs-noValidate"><code>noValidate</code></dfn> IDL
+  attribute must reflect the <code title="attr-fs-novalidate"><a href="#attr-fs-novalidate">novalidate</a></code> content attribute. The
   <dfn id="dom-fs-formaction" title="dom-fs-formAction"><code>formAction</code></dfn> IDL
   attribute must reflect the <code title="attr-fs-formaction"><a href="#attr-fs-formaction">formaction</a></code> content attribute. The
   <dfn id="dom-fs-formenctype" title="dom-fs-formEnctype"><code>formEnctype</code></dfn> IDL
   attribute must reflect the <code title="attr-fs-formenctype"><a href="#attr-fs-formenctype">formenctype</a></code> content attribute,
-  <a href="common-dom-interfaces.html#limited-to-only-known-values">limited to only known values</a>.  The <dfn id="dom-fs-formmethod" title="dom-fs-formMethod"><code>formMethod</code></dfn> IDL
+  <a href="common-dom-interfaces.html#limited-to-only-known-values">limited to only known values</a>. The <dfn id="dom-fs-formmethod" title="dom-fs-formMethod"><code>formMethod</code></dfn> IDL
   attribute must reflect the <code title="attr-fs-formmethod"><a href="#attr-fs-formmethod">formmethod</a></code> content attribute,
   <a href="common-dom-interfaces.html#limited-to-only-known-values">limited to only known values</a>. The <dfn id="dom-fs-formnovalidate" title="dom-fs-formNoValidate"><code>formNoValidate</code></dfn> IDL
   attribute must reflect the <code title="attr-fs-formnovalidate"><a href="#attr-fs-formnovalidate">formnovalidate</a></code> content
   attribute. The <dfn id="dom-fs-formtarget" title="dom-fs-formTarget"><code>formTarget</code></dfn> IDL
   attribute must reflect the <code title="attr-fs-formtarget"><a href="#attr-fs-formtarget">formtarget</a></code> content attribute.
 
-  </p></div><h4 id="constraints"><span class="secno">4.10.20 </span>Constraints</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><h5 id="definitions"><span class="secno">4.10.20.1 </span>Definitions</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><div class="impl">
+  </p></div><h4 id="textFieldSelection"><span class="secno">4.10.20 </span>APIs for the text field selections</h4><!-- v2 idea: DOM Range APIs to expose the textarea/input edited
+  value (ack martijnw) --><p>The <code><a href="the-input-element.html#the-input-element">input</a></code> and <code><a href="the-button-element.html#the-textarea-element">textarea</a></code> elements define
+  the following members in their DOM interfaces for handling their
+  selection:</p><pre class="idl extract">  void <a href="#dom-textarea-input-select" title="dom-textarea/input-select">select</a>();
+           attribute unsigned long <a href="#dom-textarea-input-selectionstart" title="dom-textarea/input-selectionStart">selectionStart</a>;
+           attribute unsigned long <a href="#dom-textarea-input-selectionend" title="dom-textarea/input-selectionEnd">selectionEnd</a>;
+  void <a href="#dom-textarea-input-setselectionrange" title="dom-textarea/input-setSelectionRange">setSelectionRange</a>(in unsigned long start, in unsigned long end);</pre><!-- v2: also add textLength? it seems to be widely used --><p>These methods and attributes expose and control the selection of
+  <code><a href="the-input-element.html#the-input-element">input</a></code> and <code><a href="the-button-element.html#the-textarea-element">textarea</a></code> text fields.</p><dl class="domintro"><dt><var title="">element</var> . <code title="dom-textarea/input-select"><a href="#dom-textarea-input-select">select</a></code>()</dt>
+
+   <dd>
+
+    <p>Selects everything in the text field.</p>
+
+   </dd>
+
+   <dt><var title="">element</var> . <code title="dom-textarea/input-selecionStart">selectionStart</code> [ = <var title="">value</var> ]</dt>
+
+   <dd>
+
+    <p>Returns the offset to the start of the selection.</p>
+
+    <p>Can be set, to change the start of the selection.</p>
+
+   </dd>
+
+   <dt><var title="">element</var> . <code title="dom-textarea/input-selecionEnd">selectionEnd</code> [ = <var title="">value</var> ]</dt>
+
+   <dd>
+
+    <p>Returns the offset to the end of the selection.</p>
+
+    <p>Can be set, to change the end of the selection.</p>
+
+   </dd>
+
+   <dt><var title="">element</var> . <code title="dom-textarea/input-setSelectionRange"><a href="#dom-textarea-input-setselectionrange">setSelectionRange</a></code>(<var title="">start</var>, <var title="">end</var>)</dt>
+
+   <dd>
+
+    <p>Changes the selection to cover the given substring.</p>
+
+   </dd>
+
+  </dl><div class="impl">
+
+  <p>When these methods and attributes are used with
+  <code><a href="the-input-element.html#the-input-element">input</a></code> elements while they don't apply, they must raise
+  an <code><a href="common-dom-interfaces.html#invalid_state_err">INVALID_STATE_ERR</a></code> exception. Otherwise, they must
+  act as described below.</p>
+
+  <p>The <dfn id="dom-textarea-input-select" title="dom-textarea/input-select"><code>select()</code></dfn> method
+  must cause the contents of the text field to be fully selected.</p>
+
+  <p>The <dfn id="dom-textarea-input-selectionstart" title="dom-textarea/input-selectionStart"><code>selectionStart</code></dfn>
+  attribute must, on getting, return the offset (in logical order) to
+  the character that immediately follows the start of the
+  selection. If there is no selection, then it must return the offset
+  (in logical order) to the character that immediately follows the
+  text entry cursor.</p>
+
+  <p>On setting, it must act as if the <code title="dom-textarea/input-setSelectionRange"><a href="#dom-textarea-input-setselectionrange">setSelectionRange()</a></code>
+  method had been called, with the new value as the first argument,
+  and the current value of the <code title="dom-textarea/input-selectionEnd"><a href="#dom-textarea-input-selectionend">selectionEnd</a></code>
+  attribute as the second argument, unless the current value of the
+  <code title="dom-textarea/input-selectionEnd"><a href="#dom-textarea-input-selectionend">selectionEnd</a></code> is
+  less than the new value, in which case the second argument must also
+  be the new value.</p>
+
+  <p>The <dfn id="dom-textarea-input-selectionend" title="dom-textarea/input-selectionEnd"><code>selectionEnd</code></dfn>
+  attribute must, on getting, return the offset (in logical order) to
+  the character that immediately follows the end of the selection. If
+  there is no selection, then it must return the offset (in logical
+  order) to the character that immediately follows the text entry
+  cursor.</p>
+
+  <p>On setting, it must act as if the <code title="dom-textarea/input-setSelectionRange"><a href="#dom-textarea-input-setselectionrange">setSelectionRange()</a></code>
+  method had been called, with the current value of the <code title="dom-textarea/input-selectionStart"><a href="#dom-textarea-input-selectionstart">selectionStart</a></code>
+  attribute as the first argument, and new value as the second
+  argument.</p>
+
+  <p>The <dfn id="dom-textarea-input-setselectionrange" title="dom-textarea/input-setSelectionRange"><code>setSelectionRange(<var title="">start</var>, <var title="">end</var>)</code></dfn> method
+  must set the selection of the text field to the sequence of
+  characters starting with the character at the <var title="">start</var>th position (in logical order) and ending with
+  the character at the <span title="">(<var title="">end</var>-1)</span>th position. Arguments greater than the
+  length of the value in the text field must be treated as pointing at
+  the end of the text field. If <var title="">end</var> is less than
+  or equal to <var title="">start</var> then the start of the
+  selection and the end of the selection must both be placed
+  immediately before the character with offset <var title="">end</var>. In UAs where there is no concept of an empty
+  selection, this must set the cursor to be just before the character
+  with offset <var title="">end</var>.</p>
+
+  </div><div class="example">
+
+   <p>To obtain the currently selected text, the following JavaScript
+   suffices:</p>
+
+   <pre>var selectionText = control.value.substring(control.selectionStart, control.selectionEnd);</pre>
+
+   <p>...where <var title="">control</var> is the <code><a href="the-input-element.html#the-input-element">input</a></code>
+   or <code><a href="the-button-element.html#the-textarea-element">textarea</a></code> element.</p>
+
+  </div><p>Characters with no visible rendering, such as U+200D ZERO WIDTH
+  JOINER, still count as characters. Thus, for instance, the selection
+  can include just an invisible character, and the text insertion
+  cursor can be placed to one side or another of such a character.</p><h4 id="constraints"><span class="secno">4.10.21 </span>Constraints</h4><h5 id="definitions"><span class="secno">4.10.21.1 </span>Definitions</h5><div class="impl">
 
   <p>A <a href="forms.html#category-listed" title="category-listed">listed form-associated
   element</a> is a <dfn id="candidate-for-constraint-validation">candidate for constraint validation</dfn>
@@ -769,7 +896,7 @@
 
   </div><div class="impl">
 
-  <h5 id="constraint-validation"><span class="secno">4.10.20.2 </span>Constraint validation</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="constraint-validation"><span class="secno">4.10.21.2 </span>Constraint validation</h5>
 
   <p>When the user agent is required to <dfn id="statically-validate-the-constraints">statically validate the
   constraints</dfn> of <code><a href="forms.html#the-form-element">form</a></code> element <var title="">form</var>, it must run the following steps, which return
@@ -849,7 +976,7 @@
 
    <li><p>Return a <i>negative</i> result.</p></li>
 
-  </ol></div><h5 id="the-constraint-validation-api"><span class="secno">4.10.20.3 </span>The <dfn>constraint validation API</dfn></h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="domintro"><dt><var title="">element</var> . <code title="dom-cva-willValidate"><a href="#dom-cva-willvalidate">willValidate</a></code></dt>
+  </ol></div><h5 id="the-constraint-validation-api"><span class="secno">4.10.21.3 </span>The <dfn>constraint validation API</dfn></h5><dl class="domintro"><dt><var title="">element</var> . <code title="dom-cva-willValidate"><a href="#dom-cva-willvalidate">willValidate</a></code></dt>
 
    <dd>
 
@@ -1070,14 +1197,14 @@
   validity error message</a> should be present in the return
   value.</p>
 
-  </div><h5 id="security-forms"><span class="secno">4.10.20.4 </span>Security</h5><p id="security-0">Servers should not rely on client-side
+  </div><h5 id="security-forms"><span class="secno">4.10.21.4 </span>Security</h5><p id="security-0">Servers should not rely on client-side
   validation. Client-side validation can be intentionally bypassed by
   hostile users, and unintentionally bypassed by users of older user
   agents or automated tools that do not implement these features. The
   constraint validation features are only intended to improve the user
-  experience, not to provide any kind of security mechanism.</p><h4 id="form-submission"><span class="secno">4.10.21 </span><dfn>Form submission</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><div class="impl">
+  experience, not to provide any kind of security mechanism.</p><h4 id="form-submission"><span class="secno">4.10.22 </span><dfn>Form submission</dfn></h4><div class="impl">
 
-  <h5 id="introduction-1"><span class="secno">4.10.21.1 </span>Introduction</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="introduction-1"><span class="secno">4.10.22.1 </span>Introduction</h5>
 
   </div><p><i>This section is non-normative.</i></p><p>When a form is submitted, the data in the form is converted into
   the structure specified by the <a href="#concept-fs-enctype" title="concept-fs-enctype">enctype</a>, and then sent to the
@@ -1103,7 +1230,7 @@
 fur
 ------kYFrd4jNJEgCervE--</pre><div class="impl">
 
-  <h5 id="implicit-submission"><span class="secno">4.10.21.2 </span>Implicit submission</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="implicit-submission"><span class="secno">4.10.22.2 </span>Implicit submission</h5>
 
   <p>User agents may establish a <a href="forms.html#concept-button" title="concept-button">button</a> in each form as being the
   form's <dfn id="default-button">default button</dfn>. This should be the first <a href="forms.html#concept-submit-button" title="concept-submit-button">submit button</a> in <a href="infrastructure.html#tree-order">tree
@@ -1129,7 +1256,7 @@
 
   </div><div class="impl">
 
-  <h5 id="form-submission-algorithm"><span class="secno">4.10.21.3 </span>Form submission algorithm</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="form-submission-algorithm"><span class="secno">4.10.22.3 </span>Form submission algorithm</h5>
 
   <p>When a <code><a href="forms.html#the-form-element">form</a></code> element <var title="">form</var> is <dfn id="concept-form-submit" title="concept-form-submit">submitted</dfn> from an element <var title="">submitter</var> (typically a button), optionally with a
   <var title="">scripted-submit</var> flag set, the user agent must
@@ -1300,8 +1427,8 @@
      there are no <a href="number-state.html#concept-input-type-file-selected" title="concept-input-type-file-selected">selected files</a>,
      then append an entry in the <var title="">form data set</var>
      with the <var title="">name</var> as the name, the empty string
-     as the value, and <code title="">application/octet-stream</code>
-     as the type.</p></li>
+     as the value, and <code>application/octet-stream</code> as the
+     type.</p></li>
      <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=529859 -->
 
      <li><p>Otherwise, if the <var title="">field</var> element is an
@@ -1364,38 +1491,24 @@
     <table><thead><tr><td>
       </td><th> <a href="#attr-fs-method-get" title="attr-fs-method-GET">GET</a>
       </th><th> <a href="#attr-fs-method-post" title="attr-fs-method-POST">POST</a>
-      </th><th> <a href="#attr-fs-method-put" title="attr-fs-method-PUT">PUT</a>
-      </th><th> <a href="#attr-fs-method-delete" title="attr-fs-method-DELETE">DELETE</a>
      </th></tr></thead><tbody><tr><th> <code title="">http</code>
       </th><td> <a href="#submit-mutate-action" title="submit-mutate-action">Mutate action</a>
       </td><td> <a href="#submit-body" title="submit-body">Submit as entity body</a>
-      </td><td> <a href="#submit-body" title="submit-body">Submit as entity body</a>
-      </td><td> <a href="#submit-delete-action" title="submit-delete-action">Delete action</a>
      </td></tr><tr><th> <code title="">https</code>
       </th><td> <a href="#submit-mutate-action" title="submit-mutate-action">Mutate action</a>
       </td><td> <a href="#submit-body" title="submit-body">Submit as entity body</a>
-      </td><td> <a href="#submit-body" title="submit-body">Submit as entity body</a>
-      </td><td> <a href="#submit-delete-action" title="submit-delete-action">Delete action</a>
      </td></tr><tr><th> <code title="">ftp</code>
       </th><td> <a href="#submit-get-action" title="submit-get-action">Get action</a>
       </td><td> <a href="#submit-get-action" title="submit-get-action">Get action</a>
-      </td><td> <a href="#submit-get-action" title="submit-get-action">Get action</a>
-      </td><td> <a href="#submit-get-action" title="submit-get-action">Get action</a>
      </td></tr><tr><th> <code title="">javascript</code>
       </th><td> <a href="#submit-get-action" title="submit-get-action">Get action</a>
       </td><td> <a href="#submit-get-action" title="submit-get-action">Get action</a>
-      </td><td> <a href="#submit-get-action" title="submit-get-action">Get action</a>
-      </td><td> <a href="#submit-get-action" title="submit-get-action">Get action</a>
      </td></tr><tr><th> <code title="">data</code>
       </th><td> <a href="#submit-get-action" title="submit-get-action">Get action</a>
       </td><td> <a href="#submit-data-post" title="submit-data-post">Post to data:</a>
-      </td><td> <a href="#submit-data-put" title="submit-data-put">Put to data:</a>
-      </td><td> <a href="#submit-get-action" title="submit-get-action">Get action</a>
      </td></tr><tr><th> <code title="">mailto</code>
       </th><td> <a href="#submit-mailto-headers" title="submit-mailto-headers">Mail with headers</a>
       </td><td> <a href="#submit-mailto-body" title="submit-mailto-body">Mail as body</a>
-      </td><td> <a href="#submit-mailto-headers" title="submit-mailto-headers">Mail with headers</a>
-      </td><td> <a href="#submit-mailto-headers" title="submit-mailto-headers">Mail with headers</a>
     </td></tr></tbody></table><p>If <var title="">scheme</var> is not one of those listed in
     this table, then the behavior is not defined by this
     specification. User agents should, in the absence of another
@@ -1455,11 +1568,11 @@
 
        <dd>Let <var title="">MIME type</var> be "<code title="">text/plain</code>".</dd>
 
-      </dl><p>If <var title="">method</var> is anything but GET or POST,
-      and the <a href="origin-0.html#origin">origin</a> of <var title="">action</var> is not
-      the <a href="origin-0.html#same-origin">same origin</a> as that of the <code><a href="forms.html#the-form-element">form</a></code>
-      element's <code><a href="infrastructure.html#document">Document</a></code>, then abort these steps.</p>
-      <!-- CORS, one day -->
+      </dl><p>If <var title="">method</var> is anything but <!--GET or-->
+      POST, and the <a href="origin-0.html#origin">origin</a> of <var title="">action</var>
+      is not the <a href="origin-0.html#same-origin">same origin</a> as that of the
+      <code><a href="forms.html#the-form-element">form</a></code> element's <code><a href="infrastructure.html#document">Document</a></code>, then abort
+      these steps.</p> <!-- CORS, one day -->
 
       <p>Otherwise, <a href="history.html#navigate">navigate</a> <var title="">target
       browsing context</var> to <var title="">action</var> using the
@@ -1470,25 +1583,6 @@
 
      </dd>
 
-     <dt><dfn id="submit-delete-action" title="submit-delete-action">Delete action</dfn>
-     </dt><dd>
-
-      <p>Let <var title="">target browsing context</var> be <a href="#the-form-submission-target-browsing-context">the
-      form submission target browsing context</a>.</p>
-
-      <p>If the <a href="origin-0.html#origin">origin</a> of <var title="">action</var> is
-      not the <a href="origin-0.html#same-origin">same origin</a> as that of the
-      <code><a href="forms.html#the-form-element">form</a></code> element's <code><a href="infrastructure.html#document">Document</a></code>, then abort
-      these steps.</p> <!-- CORS, one day -->
-
-      <p>Otherwise, <a href="history.html#navigate">navigate</a> <var title="">target
-      browsing context</var> to <var title="">action</var> using the
-      DELETE method. If <var title="">target browsing context</var>
-      was newly created for this purpose by the steps above, then it
-      must be navigated with <a href="history.html#replacement-enabled">replacement enabled</a>.</p>
-
-     </dd>
-
      <dt><dfn id="submit-get-action" title="submit-get-action">Get action</dfn>
      </dt><dd>
 
@@ -1536,49 +1630,6 @@
 
      </dd>
 
-     <dt><dfn id="submit-data-put" title="submit-data-put">Put to data:</dfn>
-     </dt><dd>
-
-      <p>Let <var title="">data</var> be the result of encoding the
-      <var title="">form data set</var> using the <a href="#appropriate-form-encoding-algorithm">appropriate
-      form encoding algorithm</a>.</p>
-
-      <p>Let <var title="">MIME type</var> be determined as
-      follows:</p>
-
-      <dl><dt>If <var title="">enctype</var> is <code title="attr-fs-enctype-urlencoded"><a href="#attr-fs-enctype-urlencoded">application/x-www-form-urlencoded</a></code></dt>
-
-       <dd>Let <var title="">MIME type</var> be "<code title="">application/x-www-form-urlencoded</code>".</dd>
-
-       <dt>If <var title="">enctype</var> is <code title="attr-fs-enctype-formdata"><a href="#attr-fs-enctype-formdata">multipart/form-data</a></code></dt>
-
-       <dd>Let <var title="">MIME type</var> be "<code title="">multipart/form-data</code>".</dd>
-
-       <dt>If <var title="">enctype</var> is <code title="attr-fs-enctype-text"><a href="#attr-fs-enctype-text">text/plain</a></code></dt>
-
-       <dd>Let <var title="">MIME type</var> be "<code title="">text/plain</code>".</dd>
-
-      </dl><p>Let <var title="">destination</var> be the result of
-      concatenating the following:</p>
-
-      <ol class="brief"><li>The string "<code title="">data:</code>".</li>
-
-       <li>The value of <var title="">MIME type</var>.</li>
-
-       <li>The string "<code title="">;base64,</code>".</li>
-
-       <li>A base-64 encoded representation of <var title="">data</var>. <a href="references.html#refsRFC2045">[RFC2045]</a></li>
-
-      </ol><p>Let <var title="">target browsing context</var> be <a href="#the-form-submission-target-browsing-context">the
-      form submission target browsing context</a>.</p>
-
-      <p><a href="history.html#navigate">Navigate</a> <var title="">target browsing
-      context</var> to <var title="">destination</var>. If <var title="">target browsing context</var> was newly created for
-      this purpose by the steps above, then it must be navigated with
-      <a href="history.html#replacement-enabled">replacement enabled</a>.</p>
-
-     </dd>
-
      <dt><dfn id="submit-mailto-headers" title="submit-mailto-headers">Mail with headers</dfn>
      </dt><dd>
 
@@ -1674,12 +1725,12 @@
 
   </ol></div><div class="impl">
 
-  <h5 id="url-encoded-form-data"><span class="secno">4.10.21.4 </span>URL-encoded form data</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="url-encoded-form-data"><span class="secno">4.10.22.4 </span>URL-encoded form data</h5>
 
   <p>The <dfn id="application-x-www-form-urlencoded-encoding-algorithm"><code title="">application/x-www-form-urlencoded</code> encoding
   algorithm</dfn> is as follows:</p>
 
-  <ol><li><p>Let <var title="">result</var> be the empty string.</p></li>
+  <ol><!-- the first few steps of this are the same as in the next section --><li><p>Let <var title="">result</var> be the empty string.</p></li>
 
    <li>
 
@@ -1712,7 +1763,8 @@
      with <var title="">charset</var>.</p></li>
 
      <li><p>If the entry's type is "<code title="">file</code>",
-     replace its value with the file's filename only.</p></li>
+     replace its value with the file's filename only.</p></li> <!--
+     this is not present in the next section -->
 
      <li><p>For each character in the entry's name and value that
      cannot be expressed using the selected character encoding,
@@ -1722,9 +1774,11 @@
      U+0039 DIGIT NINE (9) representing the Unicode code point of the
      character in base ten, and finally a U+003B SEMICOLON character
      (;).</p></li><!-- we should say it should be the shortest
-     possible string, no leading zeros. this whole step as asinine,
+     possible string, no leading zeros. this whole step is asinine,
      though, so... -->
 
+     <!-- this is where the similarities with the next section end -->
+
      <li>
 
       <p>For each character in the entry's name and value, apply the
@@ -1802,28 +1856,90 @@
 
   </ol></div><div class="impl">
 
-  <h5 id="multipart-form-data"><span class="secno">4.10.21.5 </span>Multipart form data</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="multipart-form-data"><span class="secno">4.10.22.5 </span>Multipart form data</h5>
+
+  <!-- http://hixie.ch/tests/adhoc/html/forms/submission/multipart_form-data/ -->
 
   <p>The <dfn id="multipart-form-data-encoding-algorithm"><code title="">multipart/form-data</code> encoding
-  algorithm</dfn> is to encode the <var title="">form data set</var>
-  using the rules described by RFC2388, <cite>Returning Values from
-  Forms: <code title="">multipart/form-data</code></cite>, and return
-  the resulting byte stream. <a href="references.html#refsRFC2388">[RFC2388]</a></p>
+  algorithm</dfn> is as follows:</p>
 
-  <p>Each entry in the <var title="">form data set</var> is a
-  <i>field</i>, the name of the entry is the <i>field name</i> and the
-  value of the entry is the <i>field value</i>, unless the entry's
-  name is "<code title="attr-fe-name-charset"><a href="#attr-fe-name-charset">_charset_</a></code>" and its type is "<code title="">hidden</code>", in which case the <i>field value</i> is the
-  character encoding used by the aforementioned algorithm to encode
-  the value of the field.</p>
+  <ol><!-- the first few steps of this are the same as in the previous section --><li><p>Let <var title="">result</var> be the empty string.</p></li>
 
-  <p>The order of parts must be the same as the order of fields in the
-  <var title="">form data set</var>. Multiple entries with the same
-  name must be treated as distinct fields.</p>
+   <li>
 
-  </div><div class="impl">
+    <p>If the <code><a href="forms.html#the-form-element">form</a></code> element has an <code title="attr-form-accept-charset"><a href="forms.html#attr-form-accept-charset">accept-charset</a></code> attribute,
+    then, taking into account the characters found in the <var title="">form data set</var>'s names and values, and the character
+    encodings supported by the user agent, select a character encoding
+    from the list given in the <code><a href="forms.html#the-form-element">form</a></code>'s <code title="attr-form-accept-charset"><a href="forms.html#attr-form-accept-charset">accept-charset</a></code> attribute
+    that is an <a href="infrastructure.html#ascii-compatible-character-encoding">ASCII-compatible character encoding</a>. If
+    none of the encodings are supported, or if none are listed, then
+    let the selected character encoding be UTF-8.</p>
 
-  <h5 id="plain-text-form-data"><span class="secno">4.10.21.6 </span>Plain text form data</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+    <p>Otherwise, if the <a href="dom.html#document-s-character-encoding">document's character encoding</a> is
+    an <a href="infrastructure.html#ascii-compatible-character-encoding">ASCII-compatible character encoding</a>, then that is
+    the selected character encoding.</p>
+
+    <p>Otherwise, let the selected character encoding be UTF-8.</p>
+
+   </li>
+
+   <li><p>Let <var title="">charset</var> be the <a href="infrastructure.html#preferred-mime-name">preferred MIME
+   name</a> of the selected character encoding.</p></li>
+
+   <li>
+
+    <p>For each entry in the <var title="">form data set</var>,
+    perform these substeps:</p>
+
+    <ol><li><p>If the entry's name is "<code title="attr-fe-name-charset"><a href="#attr-fe-name-charset">_charset_</a></code>"
+     and its type is "<code title="">hidden</code>", replace its value
+     with <var title="">charset</var>.</p></li>
+
+     <!-- the step that replaces a file with its name is missing in
+     this version of the algorithm -->
+
+     <li><p>For each character in the entry's name and value that
+     cannot be expressed using the selected character encoding,
+     replace the character by a string consisting of a U+0026
+     AMPERSAND character (&amp;), a U+0023 NUMBER SIGN character (#),
+     one or more characters in the range U+0030 DIGIT ZERO (0) to
+     U+0039 DIGIT NINE (9) representing the Unicode code point of the
+     character in base ten, and finally a U+003B SEMICOLON character
+     (;).</p></li><!-- we should say it should be the shortest
+     possible string, no leading zeros. this whole step is asinine,
+     though, so... -->
+
+     <!-- this is where the similarities with the previous section end -->
+
+    </ol></li>
+
+   <li>
+
+    <p>Encode the (now mutated) <var title="">form data set</var>
+    using the rules described by RFC 2388, <cite>Returning Values from
+    Forms: <code title="">multipart/form-data</code></cite>, and
+    return the resulting byte stream. <a href="references.html#refsRFC2388">[RFC2388]</a></p>
+
+    <p>Each entry in the <var title="">form data set</var> is a
+    <i>field</i>, the name of the entry is the <i>field name</i> and
+    the value of the entry is the <i>field value</i>.</p>
+
+    <p>The order of parts must be the same as the order of fields in
+    the <var title="">form data set</var>. Multiple entries with the
+    same name must be treated as distinct fields.</p>
+
+    <p>The parts of the generated <code title="">multipart/form-data</code> resource that correspond to
+    non-file fields must not have a <code><a href="fetching-resources.html#content-type">Content-Type</a></code> header
+    specified. Their names and values must be encoded using the
+    character encoding selected above (field names in particular do
+    not get converted to a 7-bit safe encoding as suggested in RFC
+    2388).</p>
+
+   </li>
+
+  </ol></div><div class="impl">
+
+  <h5 id="plain-text-form-data"><span class="secno">4.10.22.6 </span>Plain text form data</h5>
 
   <p>The <dfn id="text-plain-encoding-algorithm"><code title="">text/plain</code> encoding
   algorithm</dfn> is as follows:</p>
@@ -1877,7 +1993,7 @@
 
   </ol></div><div class="impl">
 
-  <h4 id="resetting-a-form"><span class="secno">4.10.22 </span>Resetting a form</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="resetting-a-form"><span class="secno">4.10.23 </span>Resetting a form</h4>
 
   <p>When a <code><a href="forms.html#the-form-element">form</a></code> element <var title="">form</var> is <dfn id="concept-form-reset" title="concept-form-reset">reset</dfn>, the user agent must
   <a href="webappapis.html#fire-a-simple-event">fire a simple event</a> named <code title="event-reset">reset</code>, that is cancelable, at <var title="">form</var>, and then, if that event is not canceled, must
@@ -1894,7 +2010,7 @@
 
   </div><div class="impl">
 
-  <h4 id="event-dispatch"><span class="secno">4.10.23 </span>Event dispatch</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="event-dispatch"><span class="secno">4.10.24 </span>Event dispatch</h4>
 
   <p>When the user agent is to <dfn id="broadcast-forminput-events">broadcast <code title="event-forminput">forminput</code> events</dfn> or
   <dfn id="broadcast-formchange-events">broadcast <code title="event-formchange">formchange</code>

Index: forms.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/forms.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- forms.html	28 Aug 2010 23:52:53 -0000	1.1
+++ forms.html	19 Oct 2010 17:38:07 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -319,7 +329,7 @@
    <a href="the-input-element.html">4.10.7 The input element &#x2192;</a>
   <ol class="toc"><li><ol><li><a href="forms.html#forms"><span class="secno">4.10 </span>Forms</a>
     <ol><li><a href="forms.html#introduction-0"><span class="secno">4.10.1 </span>Introduction</a>
-      <ol><li><a href="forms.html#writing-a-form-s-user-interface"><span class="secno">4.10.1.1 </span>Writing a form's user interface</a></li><li><a href="forms.html#implementing-the-server-side-processing-for-a-form"><span class="secno">4.10.1.2 </span>Implementing the server-side processing for a form</a></li><li><a href="forms.html#configuring-a-form-to-communicate-with-a-server"><span class="secno">4.10.1.3 </span>Configuring a form to communicate with a server</a></li><li><a href="forms.html#client-side-form-validation"><span class="secno">4.10.1.4 </span>Client-side form validation</a></li></ol></li><li><a href="forms.html#categories"><span class="secno">4.10.2 </span>Categories</a></li><li><a href="forms.html#the-form-element"><span class="secno">4.10.3 </span>The <code>form</code> element</a></li><li><a href="forms.html#the-fieldset-element"><span class="secno">4.10.4 </span>The <code>fieldset</code> element</a></li><li><a href="forms.html#the-legend-element"><span class="secno">4.10.5 </span>The <code>legend</code> element</a></li><li><a href="forms.html#the-label-element"><span class="secno">4.10.6 </span>The <code>label</code> element</a></li></ol></li></ol></li></ol></div><h3 id="forms"><span class="secno">4.10 </span>Forms</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><h4 id="introduction-0"><span class="secno">4.10.1 </span>Introduction</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p><i>This section is non-normative.</i></p><p>A form is a component of a Web page that has form controls, such
+      <ol><li><a href="forms.html#writing-a-form-s-user-interface"><span class="secno">4.10.1.1 </span>Writing a form's user interface</a></li><li><a href="forms.html#implementing-the-server-side-processing-for-a-form"><span class="secno">4.10.1.2 </span>Implementing the server-side processing for a form</a></li><li><a href="forms.html#configuring-a-form-to-communicate-with-a-server"><span class="secno">4.10.1.3 </span>Configuring a form to communicate with a server</a></li><li><a href="forms.html#client-side-form-validation"><span class="secno">4.10.1.4 </span>Client-side form validation</a></li></ol></li><li><a href="forms.html#categories"><span class="secno">4.10.2 </span>Categories</a></li><li><a href="forms.html#the-form-element"><span class="secno">4.10.3 </span>The <code>form</code> element</a></li><li><a href="forms.html#the-fieldset-element"><span class="secno">4.10.4 </span>The <code>fieldset</code> element</a></li><li><a href="forms.html#the-legend-element"><span class="secno">4.10.5 </span>The <code>legend</code> element</a></li><li><a href="forms.html#the-label-element"><span class="secno">4.10.6 </span>The <code>label</code> element</a></li></ol></li></ol></li></ol></div><h3 id="forms"><span class="secno">4.10 </span>Forms</h3><h4 id="introduction-0"><span class="secno">4.10.1 </span>Introduction</h4><p><i>This section is non-normative.</i></p><p>A form is a component of a Web page that has form controls, such
   as text fields, buttons, check boxes, range controls, or color
   pickers. A user can interact with such a form, providing data that
   can then be sent to the server for further processing (e.g.
@@ -462,7 +472,7 @@
  &lt;/fieldset&gt;
  &lt;p&gt;&lt;label&gt;Preferred delivery time: &lt;input type=time min="11:00" max="21:00" step="900"&gt;&lt;/label&gt;&lt;/p&gt;
  &lt;p&gt;&lt;label&gt;Delivery instructions: &lt;textarea&gt;&lt;/textarea&gt;&lt;/label&gt;&lt;/p&gt;
-<strong> &lt;p&gt;&lt;button&gt;Submit order&lt;/button&gt;&lt;p&gt;</strong>
+<strong> &lt;p&gt;&lt;button&gt;Submit order&lt;/button&gt;&lt;/p&gt;</strong>
 &lt;/form&gt;</pre><h5 id="implementing-the-server-side-processing-for-a-form"><span class="secno">4.10.1.2 </span>Implementing the server-side processing for a form</h5><p><i>This section is non-normative.</i></p><p>The exact details for writing a server-side processor are out of
   scope for this specification. For the purposes of this introduction,
   we will assume that the script at <code title="">https://pizza.example.com/order.cgi</code> is configured to
@@ -637,7 +647,7 @@
 
     <!-- when updating this also update the category index -->
     <ul class="brief category-list"><li><code><a href="the-button-element.html#the-button-element">button</a></code></li>
-     <li><code><a href="the-input-element.html#the-input-element">input</a></code></li>
+     <li><code><a href="the-input-element.html#the-input-element">input</a></code> (if the <code title="attr-input-type"><a href="the-input-element.html#attr-input-type">type</a></code> attribute is <em>not</em> in the <a href="states-of-the-type-attribute.html#hidden-state" title="attr-input-type-hidden">Hidden</a> state)</li>
      <li><code><a href="the-button-element.html#the-keygen-element">keygen</a></code></li>
      <li><code><a href="the-button-element.html#the-meter-element">meter</a></code></li>
      <li><code><a href="the-button-element.html#the-output-element">output</a></code></li>
@@ -682,9 +692,9 @@
   an element is a button. Some buttons are specifically <dfn id="concept-submit-button" title="concept-submit-button">submit buttons</dfn>.</p><p class="note">The <code><a href="the-iframe-element.html#the-object-element">object</a></code> element is also a
   <a href="#form-associated-element">form-associated element</a> and can, with the use of a
   suitable <a href="infrastructure.html#plugin">plugin</a>, partake in <a href="association-of-controls-and-forms.html#form-submission">form
-  submission</a>.</p><h4 id="the-form-element"><span class="secno">4.10.3 </span>The <dfn><code>form</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  submission</a>.</p><h4 id="the-form-element"><span class="secno">4.10.3 </span>The <dfn><code>form</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#flow-content">flow content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>, but with no <code><a href="#the-form-element">form</a></code> element descendants.</dd>
@@ -706,6 +716,7 @@
            attribute DOMString <a href="association-of-controls-and-forms.html#dom-fs-action" title="dom-fs-action">action</a>;
            attribute DOMString <a href="#dom-form-autocomplete" title="dom-form-autocomplete">autocomplete</a>;
            attribute DOMString <a href="association-of-controls-and-forms.html#dom-fs-enctype" title="dom-fs-enctype">enctype</a>;
+           attribute DOMString <a href="association-of-controls-and-forms.html#dom-fs-encoding" title="dom-fs-encoding">encoding</a>;<!-- historical artefact -->
            attribute DOMString <a href="association-of-controls-and-forms.html#dom-fs-method" title="dom-fs-method">method</a>;
            attribute DOMString <a href="#dom-form-name" title="dom-form-name">name</a>;
            attribute boolean <a href="association-of-controls-and-forms.html#dom-fs-novalidate" title="dom-fs-noValidate">noValidate</a>;
@@ -713,8 +724,8 @@
 
   readonly attribute <a href="common-dom-interfaces.html#htmlformcontrolscollection">HTMLFormControlsCollection</a> <a href="#dom-form-elements" title="dom-form-elements">elements</a>;
   readonly attribute long <a href="#dom-form-length" title="dom-form-length">length</a>;
-  caller getter any <a href="#dom-form-item" title="dom-form-item">item</a>(in unsigned long index);
-  caller getter any <a href="#dom-form-nameditem" title="dom-form-namedItem">namedItem</a>(in DOMString name);
+  caller <a href="#dom-form-item" title="dom-form-item">getter</a> any (in unsigned long index);
+  caller <a href="#dom-form-nameditem" title="dom-form-namedItem">getter</a> any (in DOMString name);
 
   void <a href="#dom-form-submit" title="dom-form-submit">submit</a>();
   void <a href="#dom-form-reset" title="dom-form-reset">reset</a>();
@@ -730,10 +741,11 @@
   can be submitted to a server for processing.</p><p>The <dfn id="attr-form-accept-charset" title="attr-form-accept-charset"><code>accept-charset</code></dfn>
   attribute gives the character encodings that are to be used for the
   submission. If specified, the value must be an <a href="common-microsyntaxes.html#ordered-set-of-unique-space-separated-tokens">ordered set of
-  unique space-separated tokens</a>, and each token must be an
-  <a href="infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a> match for the <a href="infrastructure.html#preferred-mime-name">preferred
-  MIME name</a> of an <a href="infrastructure.html#ascii-compatible-character-encoding">ASCII-compatible character
-  encoding</a>. <a href="references.html#refsIANACHARSET">[IANACHARSET]</a></p><p>The <dfn id="attr-form-name" title="attr-form-name"><code>name</code></dfn> attribute
+  unique space-separated tokens</a> that are <a href="infrastructure.html#ascii-case-insensitive">ASCII
+  case-insensitive</a>, and each token must be an <a href="infrastructure.html#ascii-case-insensitive">ASCII
+  case-insensitive</a> match for the <a href="infrastructure.html#preferred-mime-name">preferred MIME
+  name</a> of an <a href="infrastructure.html#ascii-compatible-character-encoding">ASCII-compatible character encoding</a>.
+  <a href="references.html#refsIANACHARSET">[IANACHARSET]</a></p><p>The <dfn id="attr-form-name" title="attr-form-name"><code>name</code></dfn> attribute
   represents the <code><a href="#the-form-element">form</a></code>'s name within the <code title="dom-document-forms"><a href="dom.html#dom-document-forms">forms</a></code> collection. The value must
   not be the empty string, and the value must be unique amongst the
   <code><a href="#the-form-element">form</a></code> elements in the <code title="dom-document-forms"><a href="dom.html#dom-document-forms">forms</a></code> collection that it is in, if
@@ -767,7 +779,6 @@
 
    </dd>
 
-   <dt><var title="">element</var> = <var title="">form</var> . <code title="dom-form-item"><a href="#dom-form-item">item</a></code>(<var title="">index</var>)</dt>
    <dt><var title="">form</var>[<var title="">index</var>]</dt>
    <dt><var title="">form</var>(<var title="">index</var>)</dt>
 
@@ -778,7 +789,6 @@
 
    </dd>
 
-   <dt><var title="">element</var> = <var title="">form</var> . <code title="dom-form-namedItem"><a href="#dom-form-nameditem">namedItem</a></code>(<var title="">name</var>)</dt>
    <dt><var title="">form</var>[<var title="">name</var>]</dt>
    <dt><var title="">form</var>(<var title="">name</var>)</dt>
 
@@ -866,34 +876,31 @@
   <p>The <dfn id="dom-form-length" title="dom-form-length"><code>length</code></dfn> IDL
   attribute must return the number of nodes <a href="common-dom-interfaces.html#represented-by-the-collection" title="represented&#10;  by the collection">represented</a> by the <code title="dom-form-elements"><a href="#dom-form-elements">elements</a></code> collection.</p>
 
-  <p>The
-  <span>indices of the supported indexed properties</span> at any
-  instant are the indices supported by the object returned by the
-  <code title="dom-form-elements"><a href="#dom-form-elements">elements</a></code> attribute at that
+  <p>The <a href="infrastructure.html#supported-property-indices">supported property indices</a> at any instant are
+  the indices supported by the object returned by the <code title="dom-form-elements"><a href="#dom-form-elements">elements</a></code> attribute at that
   instant.</p>
 
-  <p>The <dfn id="dom-form-item" title="dom-form-item"><code>item(<var title="">index</var>)</code></dfn> method must return the value
-  returned by the method of the same name on the <code title="dom-form-elements"><a href="#dom-form-elements">elements</a></code> collection, when invoked
-  with the same argument.</p>
+  <p>When a <code><a href="#the-form-element">form</a></code> element is <dfn id="dom-form-item" title="dom-form-item">indexed for indexed property retrieval</dfn>,
+  the user agent must return the value returned by the <code title="dom-HTMLFormControlsCollection-item">item</code> method on
+  the <code title="dom-form-elements"><a href="#dom-form-elements">elements</a></code> collection, when
+  invoked with the given index as its argument.</p>
 
   <p>Each <code><a href="#the-form-element">form</a></code> element has a mapping of names to elements
   called the <dfn id="past-names-map">past names map</dfn>. It is used to persist names of
   controls even when they change names.</p>
 
-  <p>The <span>names of the supported named properties</span> are the
-  union of the names currently supported by the object returned by the
-  <code title="dom-form-elements"><a href="#dom-form-elements">elements</a></code> attribute, and the
-  names currently in the <a href="#past-names-map">past names map</a>.</p>
+  <p>The <a href="infrastructure.html#supported-property-names">supported property names</a> are the union of the
+  names currently supported by the object returned by the <code title="dom-form-elements"><a href="#dom-form-elements">elements</a></code> attribute, and the names
+  currently in the <a href="#past-names-map">past names map</a>.</p>
 
-  <p>The <dfn id="dom-form-nameditem" title="dom-form-namedItem"><code>namedItem(<var title="">name</var>)</code></dfn> method, when called, must run the
-  following steps:</p>
+  <p>When a <code><a href="#the-form-element">form</a></code> element is <dfn id="dom-form-nameditem" title="dom-form-namedItem">indexed for named property
+  retrieval</dfn>, the user agent must run the following steps:</p>
 
   <ol><li>
 
-    <p>If <var title="">name</var> is one of the <span>names of the
-    supported named properties</span> of the object returned by the
-    <code title="dom-form-elements"><a href="#dom-form-elements">elements</a></code> attribute, then
-    run these substeps:</p>
+    <p>If <var title="">name</var> is one of the <a href="infrastructure.html#supported-property-names">supported
+    property names</a> of the object returned by the <code title="dom-form-elements"><a href="#dom-form-elements">elements</a></code> attribute, then run
+    these substeps:</p>
 
     <ol><li><p>Let <var title="">candidate</var> be the object returned
      by the <code title="dom-HTMLFormControlsCollection-namedItem"><a href="common-dom-interfaces.html#dom-htmlformcontrolscollection-nameditem">namedItem()</a></code>
@@ -984,11 +991,11 @@
  &lt;label&gt;Bing: &lt;input type="search" name="q"&gt;&lt;/label&gt; &lt;input type="submit" value="Search..."&gt;
 &lt;/form&gt;</pre>
 
-  </div><h4 id="the-fieldset-element"><span class="secno">4.10.4 </span>The <dfn><code>fieldset</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-fieldset-element"><span class="secno">4.10.4 </span>The <dfn><code>fieldset</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="sections.html#sectioning-root">Sectioning root</a>.</dd>
    <dd><a href="#category-listed" title="category-listed">Listed</a> <a href="#form-associated-element">form-associated element</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#flow-content">flow content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd>Optionally a <code><a href="#the-legend-element">legend</a></code> element, followed by <a href="content-models.html#flow-content">flow content</a>.</dd>
@@ -1083,9 +1090,44 @@
  &lt;p&gt;&lt;label&gt;Expiry date: &lt;input name=clubexp type=month&gt;&lt;/label&gt;&lt;/p&gt;
 &lt;/fieldset&gt;</pre>
 
-  </div><h4 id="the-legend-element"><span class="secno">4.10.5 </span>The <dfn><code>legend</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><div class="example">
+
+   <p>You can also nest <code><a href="#the-fieldset-element">fieldset</a></code> elements. Here is an
+   example expanding on the previous one that does so:</p>
+
+   <pre>&lt;fieldset name="clubfields" disabled&gt;
+ &lt;legend&gt; &lt;label&gt;
+  &lt;input type=checkbox name=club onchange="form.clubfields.disabled = !checked"&gt;
+  Use Club Card
+ &lt;/label&gt; &lt;/legend&gt;
+ &lt;p&gt;&lt;label&gt;Name on card: &lt;input name=clubname required&gt;&lt;/label&gt;&lt;/p&gt;
+ &lt;fieldset name="numfields"&gt;
+  &lt;legend&gt; &lt;label&gt;
+   &lt;input type=radio checked name=clubtype onchange="form.numfields.disabled = !checked"&gt;
+   My card has numbers on it
+  &lt;/label&gt; &lt;/legend&gt;
+  &lt;p&gt;&lt;label&gt;Card number: &lt;input name=clubnum required pattern="[-0-9]+"&gt;&lt;/label&gt;&lt;/p&gt;
+ &lt;/fieldset&gt;
+ &lt;fieldset name="letfields" disabled&gt;
+  &lt;legend&gt; &lt;label&gt;
+   &lt;input type=radio name=clubtype onchange="form.letfields.disabled = !checked"&gt;
+   My card has letters on it
+  &lt;/label&gt; &lt;/legend&gt;
+  &lt;p&gt;&lt;label&gt;Card code: &lt;input name=clublet required pattern="[A-Za-z]+"&gt;&lt;/label&gt;&lt;/p&gt;
+ &lt;/fieldset&gt;
+&lt;/fieldset&gt;</pre>
+
+   <p>In this example, if the outer "Use Club Card" checkbox is not
+   checked, everything inside the outer <code><a href="#the-fieldset-element">fieldset</a></code>,
+   including the two radio buttons in the legends of the two nested
+   <code><a href="#the-fieldset-element">fieldset</a></code>s, will be disabled. However, if the checkbox
+   is checked, then the radio buttons will both be enabled and will
+   let you select which of the two inner <code><a href="#the-fieldset-element">fieldset</a></code>s is to
+   be enabled.</p>
+
+  </div><h4 id="the-legend-element"><span class="secno">4.10.5 </span>The <dfn><code>legend</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>As the first child of a <code><a href="#the-fieldset-element">fieldset</a></code> element.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -1119,12 +1161,12 @@
   attribute must return the same value as the <code title="dom-fae-form"><a href="association-of-controls-and-forms.html#dom-fae-form">form</a></code> IDL attribute on that
   <code><a href="#the-fieldset-element">fieldset</a></code> element. Otherwise, it must return null.</p>
 
-  </div><h4 id="the-label-element"><span class="secno">4.10.6 </span>The <dfn><code>label</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="the-label-element"><span class="secno">4.10.6 </span>The <dfn><code>label</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
    <dd><a href="content-models.html#interactive-content">Interactive content</a>.</dd>
    <dd><a href="#form-associated-element">Form-associated element</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>, but with no descendant <a href="#category-label" title="category-label">labelable form-associated elements</a> unless it is the element's <a href="#labeled-control">labeled control</a>, and no descendant <code><a href="#the-label-element">label</a></code> elements.</dd>

Index: interactive-elements.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/interactive-elements.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- interactive-elements.html	28 Aug 2010 23:52:53 -0000	1.1
+++ interactive-elements.html	19 Oct 2010 17:38:07 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -319,11 +329,11 @@
    <a href="commands.html">4.11.5 Commands &#x2192;</a>
   <ol class="toc"><li><ol><li><a href="interactive-elements.html#interactive-elements"><span class="secno">4.11 </span>Interactive elements</a>
     <ol><li><a href="interactive-elements.html#the-details-element"><span class="secno">4.11.1 </span>The <code>details</code> element</a></li><li><a href="interactive-elements.html#the-summary-element"><span class="secno">4.11.2 </span>The <code>summary</code> element</a></li><li><a href="interactive-elements.html#the-command"><span class="secno">4.11.3 </span>The <code>command</code> element</a></li><li><a href="interactive-elements.html#menus"><span class="secno">4.11.4 </span>The <code>menu</code> element</a>
-      <ol><li><a href="interactive-elements.html#menus-intro"><span class="secno">4.11.4.1 </span>Introduction</a></li><li><a href="interactive-elements.html#building-menus-and-toolbars"><span class="secno">4.11.4.2 </span>Building menus and toolbars</a></li><li><a href="interactive-elements.html#context-menus"><span class="secno">4.11.4.3 </span>Context menus</a></li><li><a href="interactive-elements.html#toolbars"><span class="secno">4.11.4.4 </span>Toolbars</a></li></ol></li></ol></li></ol></li></ol></div><h3 id="interactive-elements"><span class="secno">4.11 </span>Interactive elements</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><h4 id="the-details-element"><span class="secno">4.11.1 </span>The <dfn><code>details</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+      <ol><li><a href="interactive-elements.html#menus-intro"><span class="secno">4.11.4.1 </span>Introduction</a></li><li><a href="interactive-elements.html#building-menus-and-toolbars"><span class="secno">4.11.4.2 </span>Building menus and toolbars</a></li><li><a href="interactive-elements.html#context-menus"><span class="secno">4.11.4.3 </span>Context menus</a></li><li><a href="interactive-elements.html#toolbars"><span class="secno">4.11.4.4 </span>Toolbars</a></li></ol></li></ol></li></ol></li></ol></div><h3 id="interactive-elements"><span class="secno">4.11 </span>Interactive elements</h3><h4 id="the-details-element"><span class="secno">4.11.1 </span>The <dfn><code>details</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="sections.html#sectioning-root">Sectioning root</a>.</dd>
    <dd><a href="content-models.html#interactive-content">Interactive content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#flow-content">flow content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd>One <code><a href="#the-summary-element">summary</a></code> element followed by <a href="content-models.html#flow-content">flow content</a>.</dd>
@@ -388,8 +398,8 @@
    used to hide some controls by default:</p>
 
    <pre>&lt;details&gt;
- &lt;summary&gt;Name &amp; Extension:&lt;/summary&gt;
- &lt;p&gt;&lt;input type=text name=fn value="Pillar Magazine.pdf"&gt;
+ &lt;summary&gt;&lt;label for=fn&gt;Name &amp; Extension:&lt;/label&gt;&lt;/summary&gt;
+ &lt;p&gt;&lt;input type=text id=fn name=fn value="Pillar Magazine.pdf"&gt;
  &lt;p&gt;&lt;label&gt;&lt;input type=checkbox name=ext checked&gt; Hide extension&lt;/label&gt;
 &lt;/details&gt;</pre>
 
@@ -397,7 +407,7 @@
    in a list to allow the user to collapse a set of fields down to a
    small set of headings, with the ability to open each one.</p>
 
-   <p class="details-example"><img alt="" src="http://dev.w3.org/html5/spec/images/sample-details-1.png"/><img alt="" src="http://dev.w3.org/html5/spec/images/sample-details-2.png"/></p>
+   <p class="details-example"><img alt="" height="611" src="http://dev.w3.org/html5/spec/images/sample-details-1.png" width="345"/><img alt="" height="666" src="http://dev.w3.org/html5/spec/images/sample-details-2.png" width="345"/></p>
 
    <p>In these examples, the summary really just summarises what the
    controls can change, and not the actual values, which is less than
@@ -405,7 +415,7 @@
 
   </div><h4 id="the-summary-element"><span class="secno">4.11.2 </span>The <dfn><code>summary</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd>None.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>As the first child of a <code><a href="#the-details-element">details</a></code> element.</dd>
    <dt>Content model:</dt>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
@@ -424,7 +434,7 @@
    <dd><span>Flow content</span>.</dd>
    <dd><span>Interactive content</span>.</dd>
    <dd><span>Sectioning root</span>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <span>flow content</span> is expected.</dd>
    <dt>Content model:</dt>
    <dd><span>Flow content</span>.</dd>
@@ -1011,10 +1021,9 @@
    </li>
 
    <li><p>If the <var title="">icon</var> argument is present and not
-   null, but the given <code>img</code> element's <code
-   title="dom-img-complete">complete</code> attribute is false or its
-   <code title="attr-img-src">src</code> attribute is omitted or
-   empty, then let <var title="">icon</var> be null.</p></li>
+   null, but the given <code>img</code> element is not in the <span
+   title="img-all">completely available</span> state, then let <var
+   title="">icon</var> be null.</p></li>
 
    <li><p>If the <var title="">icon</var> argument is present and not
    null, then copy the image data from that <code>img</code> element,
@@ -1688,10 +1697,8 @@
       only two entries, or there are three, and the third entry is
       an <code>img</code> element.</p>
 
-      <p>If there is an <code>img</code> element specified, its <code
-      title="dom-img-complete">complete</code> attribute is true and
-      its <code title="attr-img-src">src</code> attribute is neither
-      omitted nor empty.</p>
+      <p>If there is an <code>img</code> element specified, it is in
+      the <span title="img-all">completely available</span> state.</p>
 
      </dd>
 
@@ -1704,10 +1711,8 @@
       entries, or there are four, and the fourth entry is an
       <code>img</code> element.</p>
 
-      <p>If there is an <code>img</code> element specified, its <code
-      title="dom-img-complete">complete</code> attribute is true and
-      its <code title="attr-img-src">src</code> attribute is neither
-      omitted nor empty.</p>
+      <p>If there is an <code>img</code> element specified, it is in
+      the <span title="img-all">completely available</span> state.</p>
 
      </dd>
 
@@ -1720,10 +1725,8 @@
       entries, or there are five, and the fifth entry is an
       <code>img</code> element.</p>
 
-      <p>If there is an <code>img</code> element specified, its <code
-      title="dom-img-complete">complete</code> attribute is true and
-      its <code title="attr-img-src">src</code> attribute is neither
-      omitted nor empty.</p>
+      <p>If there is an <code>img</code> element specified, it is in
+      the <span title="img-all">completely available</span> state.</p>
 
      </dd>
 
@@ -1735,10 +1738,8 @@
       entries, or there are four, and the fourth entry is an
       <code>img</code> element.</p>
 
-      <p>If there is an <code>img</code> element specified, its <code
-      title="dom-img-complete">complete</code> attribute is true and
-      its <code title="attr-img-src">src</code> attribute is neither
-      omitted nor empty.</p>
+      <p>If there is an <code>img</code> element specified, it is in
+      the <span title="img-all">completely available</span> state.</p>
 
      </dd>
 
@@ -2944,12 +2945,12 @@
   selection. This is the <var
   title="dom-DataGridSelection-length">length</var>.</p>
 
-  <p>The object's <span>indices of the supported indexed
-  properties</span> are the numbers in the range zero to <span title=""><var
+  <p>The object's <span>supported property indices</span> are the
+  numbers in the range zero to <span title=""><var
   title="dom-DataGridSelection-length">length</var>-1</span>, unless
   the <var title="dom-DataGridSelection-length">length</var> is zero,
-  in which case there are no <span>supported indexed
-  properties</span>.</p>
+  in which case there are no <span>supported property
+  indices</span>.</p>
 
   <p>The <dfn title="dom-DataGridSelection-item"><code>item(<var
   title="">index</var>)</code></dfn> method must return a
@@ -3018,11 +3019,11 @@
   ...define drag and drop in datagrids; selectiondraggable...
 - ->
 
---><h4 id="the-command"><span class="secno">4.11.3 </span>The <dfn><code>command</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+--><h4 id="the-command"><span class="secno">4.11.3 </span>The <dfn><code>command</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#metadata-content">Metadata content</a>.</dd>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#metadata-content">metadata content</a> is expected.</dd>
    <dd>Where <a href="content-models.html#phrasing-content">phrasing content</a> is expected.</dd>
    <dt>Content model:</dt>
@@ -3050,7 +3051,11 @@
 };</pre>
    </dd>
   </dl><p>The <code><a href="#the-command">command</a></code> element represents a command that the user
-  can invoke.</p><p>The <dfn id="attr-command-type" title="attr-command-type"><code>type</code></dfn>
+  can invoke.</p><p>A command can be part of a context menu or toolbar, using the
+  <code><a href="#menus">menu</a></code> element, or can be put anywhere else in the page,
+  to define a keyboard shortcut.</p><!-- in the future we'll also add
+  a command="" attribute to refer to a command, which can then be
+  defined anywhere --><p>The <dfn id="attr-command-type" title="attr-command-type"><code>type</code></dfn>
   attribute indicates the kind of command: either a normal command
   with an associated action, or a state or option that can be toggled,
   or a selection of one item from a list of items.</p><p>The attribute is an <a href="common-microsyntaxes.html#enumerated-attribute">enumerated attribute</a> with three
@@ -3201,10 +3206,10 @@
           label="Publish" icon="icons/pub.png" onclick="publish()"&gt;
 &lt;/menu&gt;</pre>
 
-  </div><h4 id="menus"><span class="secno">4.11.4 </span>The <dfn><code>menu</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="element"><dt>Categories</dt>
+  </div><h4 id="menus"><span class="secno">4.11.4 </span>The <dfn><code>menu</code></dfn> element</h4><dl class="element"><dt>Categories</dt>
    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
    <dd>If the element's <code title="attr-menu-type"><a href="#attr-menu-type">type</a></code> attribute is in the <a href="#toolbar-state" title="toolbar state">toolbar</a> state: <a href="content-models.html#interactive-content">Interactive content</a>.</dd>
-   <dt>Contexts in which this element may be used:</dt>
+   <dt>Contexts in which this element can be used:</dt>
    <dd>Where <a href="content-models.html#flow-content">flow content</a> is expected.</dd>
    <dt>Content model:</dt>
    <dd>Either: Zero or more <code><a href="grouping-content.html#the-li-element">li</a></code> elements.</dd>
@@ -3248,7 +3253,7 @@
   <a href="common-dom-interfaces.html#reflect">reflect</a> the respective content attributes of the same
   name.</p>
 
-  </div><h5 id="menus-intro"><span class="secno">4.11.4.1 </span>Introduction</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p><i>This section is non-normative.</i></p><p>The <code><a href="#menus">menu</a></code> element is used to define context menus and
+  </div><h5 id="menus-intro"><span class="secno">4.11.4.1 </span>Introduction</h5><p><i>This section is non-normative.</i></p><p>The <code><a href="#menus">menu</a></code> element is used to define context menus and
   toolbars.</p><p>For example, the following represents a toolbar with three menu
   buttons on it, each of which has a dropdown menu with a series of
   options:</p><pre>&lt;menu type="toolbar"&gt;
@@ -3273,7 +3278,7 @@
    &lt;li&gt;&lt;a href="about.html"&gt;About&lt;/a&gt;&lt;/li&gt;
   &lt;/menu&gt;
  &lt;/li&gt;
-&lt;/menu&gt;</pre><p>In a supporting user agent, this might look like this:</p><p><img alt="A toolbar with three buttons, labeled 'File', 'Edit', and 'Help'; where if you select the 'Edit' button you get a drop-down menu with three more options, 'Copy', 'Cut', and 'Paste'." src="http://dev.w3.org/html5/spec/images/sample-toolbar-1.png"/></p><p>In a legacy user agent, the above would look like a bulleted list
+&lt;/menu&gt;</pre><p>In a supporting user agent, this might look like this:</p><p><img alt="A toolbar with three buttons, labeled 'File', 'Edit', and 'Help'; where if you select the 'Edit' button you get a drop-down menu with three more options, 'Copy', 'Cut', and 'Paste'." height="101" src="http://dev.w3.org/html5/spec/images/sample-toolbar-1.png" width="303"/></p><p>In a legacy user agent, the above would look like a bulleted list
   with three items, the first of which has four buttons, the second of
   which has three, and the third of which has two nested bullet points
   with two items consisting of links.</p><hr/><p>The following implements a similar toolbar, with a single button
@@ -3299,7 +3304,7 @@
   the <code><a href="#menus">menu</a></code> element or of its <code><a href="grouping-content.html#the-li-element">li</a></code>
   children.</p><div class="impl">
 
-  <h5 id="building-menus-and-toolbars"><span class="secno">4.11.4.2 </span><dfn>Building menus and toolbars</dfn></h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="building-menus-and-toolbars"><span class="secno">4.11.4.2 </span><dfn>Building menus and toolbars</dfn></h5>
 
   <p>A menu (or toolbar) consists of a list of zero or more of the
   following components:</p>
@@ -3379,7 +3384,7 @@
    <li>Any separator at the start or end of the menu must be
    removed.</li>
 
-  </ol></div><h5 id="context-menus"><span class="secno">4.11.4.3 </span><dfn>Context menus</dfn></h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="attr-contextmenu" title="attr-contextmenu"><code>contextmenu</code></dfn>
+  </ol></div><h5 id="context-menus"><span class="secno">4.11.4.3 </span><dfn>Context menus</dfn></h5><p>The <dfn id="attr-contextmenu" title="attr-contextmenu"><code>contextmenu</code></dfn>
   attribute gives the element's <a href="#context-menus" title="context menus">context
   menu</a>. The value must be the <a href="elements.html#concept-id" title="concept-id">ID</a> of a <code><a href="#menus">menu</a></code> element
   in the DOM. <span class="impl">If the node that would be obtained by
@@ -3390,11 +3395,27 @@
   so identified.</span></p><div class="impl">
 
   <p>When an element's context menu is requested (e.g. by the user
-  right-clicking the element, or pressing a context menu key), the UA
-  must <a href="webappapis.html#fire-a-simple-event">fire a simple event</a> named <code title="event-contextmenu">contextmenu</code> that bubbles and is
-  cancelable at the element for which the menu was requested.</p>
+  right-clicking the element, or pressing a context menu key), the
+  user agent must apply the appropriate rules from the following
+  list:</p>
 
-  <p class="note">Typically, therefore, the firing of the <code title="event-contextmenu">contextmenu</code> event will be the
+  <dl class="switch"><dt>If the user requested a context menu using a pointing device</dt>
+
+   <dd><p>The user agent must dispatch an event with the name <code title="event-contextmenu">contextmenu</code>, that bubbles and is
+   cancelable, and that uses the <code>MouseEvent</code> interface, at
+   the element for which the menu was requested. The context
+   information of the event must be set to the same values as the last
+   <code>MouseEvent</code> user interaction event that was dispatched
+   as part of the gesture that that was interpreted as a request for
+   the context menu.</p></dd>
+
+   <dt>Otherwise</dt>
+
+   <dd><p>The user agent must <a href="webappapis.html#fire-a-synthetic-mouse-event" title="fire a synthetic mouse&#10;   event">fire a synthetic mouse event named <code title="event-contextmenu">contextmenu</code></a> that bubbles
+   and is cancelable at the element for which the menu was
+   requested.</p></dd>
+
+  </dl><p class="note">Typically, therefore, the firing of the <code title="event-contextmenu">contextmenu</code> event will be the
   default action of a <code title="mouseup">mouseup</code> or <code title="event-keyup">keyup</code> event. The exact sequence of events
   is UA-dependent, as it will vary based on platform conventions.</p>
 
@@ -3458,7 +3479,7 @@
 
   </div><div class="impl">
 
-  <h5 id="toolbars"><span class="secno">4.11.4.4 </span><dfn>Toolbars</dfn></h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="toolbars"><span class="secno">4.11.4.4 </span><dfn>Toolbars</dfn></h5>
 
   <p>When a <code><a href="#menus">menu</a></code> element has a <code title="attr-menu-type"><a href="#attr-menu-type">type</a></code> attribute in the <a href="#toolbar-state" title="toolbar state">toolbar</a> state, then the user agent
   must <a href="#building-menus-and-toolbars" title="building menus and toolbars">build</a> the

Index: editing.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/editing.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- editing.html	28 Aug 2010 23:52:52 -0000	1.1
+++ editing.html	19 Oct 2010 17:38:07 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -309,19 +319,19 @@
        document.getElementsByTagName('h2')[0].textContent += '; load: ' + (new Date() - loadTimer) + 'ms';
      fixBrokenLink();
    }
-  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="timers.html" title="6.2 Timers" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="dnd.html" title="7.9 Drag and drop" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
+  ]]></script><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"/><script src="link-fixup.js"/><link href="timers.html" title="6.2 Timers" rel="prev"/><link href="spec.html#contents" title="Table of contents" rel="index"/><link href="dnd.html" title="7.7 Drag and drop" rel="next"/></head><body onload="fixBrokenLink(); init()"><div class="head" id="head">
    <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"/></a></p>
 
    <h1>HTML5</h1>
    </div><div>
    <a href="timers.html">&#x2190; 6.2 Timers</a> &#x2013;
    <a href="spec.html#contents">Table of contents</a> &#x2013;
-   <a href="dnd.html">7.9 Drag and drop &#x2192;</a>
+   <a href="dnd.html">7.7 Drag and drop &#x2192;</a>
   <ol class="toc"><li><a href="editing.html#editing"><span class="secno">7 </span>User interaction</a>
-  <ol><li><a href="editing.html#the-hidden-attribute"><span class="secno">7.1 </span>The <code>hidden</code> attribute</a></li><li><a href="editing.html#activation"><span class="secno">7.2 </span>Activation</a></li><li><a href="editing.html#scrolling-elements-into-view"><span class="secno">7.3 </span>Scrolling elements into view</a></li><li><a href="editing.html#focus"><span class="secno">7.4 </span>Focus</a>
-    <ol><li><a href="editing.html#sequential-focus-navigation-and-the-tabindex-attribute"><span class="secno">7.4.1 </span>Sequential focus navigation and the <code title="attr-tabindex">tabindex</code> attribute</a></li><li><a href="editing.html#focus-management"><span class="secno">7.4.2 </span>Focus management</a></li><li><a href="editing.html#document-level-focus-apis"><span class="secno">7.4.3 </span>Document-level focus APIs</a></li><li><a href="editing.html#element-level-focus-apis"><span class="secno">7.4.4 </span>Element-level focus APIs</a></li></ol></li><li><a href="editing.html#the-accesskey-attribute"><span class="secno">7.5 </span>The <code>accesskey</code> attribute</a></li><li><a href="editing.html#selection"><span class="secno">7.6 </span>The text selection APIs</a>
-    <ol><li><a href="editing.html#documentSelection"><span class="secno">7.6.1 </span>APIs for the browsing context selection</a></li><li><a href="editing.html#textFieldSelection"><span class="secno">7.6.2 </span>APIs for the text field selections</a></li></ol></li><li><a href="editing.html#contenteditable"><span class="secno">7.7 </span>The <code title="attr-contenteditable">contenteditable</code> attribute</a>
-    <ol><li><a href="editing.html#user-editing-actions"><span class="secno">7.7.1 </span>User editing actions</a></li><li><a href="editing.html#making-entire-documents-editable"><span class="secno">7.7.2 </span>Making entire documents editable</a></li></ol></li><li><a href="editing.html#spelling-and-grammar-checking"><span class="secno">7.8 </span>Spelling and grammar checking</a></li></ol></li></ol></div><h2 id="editing"><span class="secno">7 </span><dfn>User interaction</dfn></h2><h3 id="the-hidden-attribute"><span class="secno">7.1 </span>The <dfn title="attr-hidden"><code>hidden</code></dfn> attribute</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>All <a href="infrastructure.html#html-elements">HTML elements</a> may have the <code title="attr-hidden"><a href="#the-hidden-attribute">hidden</a></code> content attribute set. The <code title="attr-hidden"><a href="#the-hidden-attribute">hidden</a></code> attribute is a <a href="common-microsyntaxes.html#boolean-attribute">boolean
+  <ol><li><a href="editing.html#the-hidden-attribute"><span class="secno">7.1 </span>The <code>hidden</code> attribute</a></li><li><a href="editing.html#activation"><span class="secno">7.2 </span>Activation</a></li><li><a href="editing.html#focus"><span class="secno">7.3 </span>Focus</a>
+    <ol><li><a href="editing.html#sequential-focus-navigation-and-the-tabindex-attribute"><span class="secno">7.3.1 </span>Sequential focus navigation and the <code title="attr-tabindex">tabindex</code> attribute</a></li><li><a href="editing.html#focus-management"><span class="secno">7.3.2 </span>Focus management</a></li><li><a href="editing.html#document-level-focus-apis"><span class="secno">7.3.3 </span>Document-level focus APIs</a></li><li><a href="editing.html#element-level-focus-apis"><span class="secno">7.3.4 </span>Element-level focus APIs</a></li></ol></li><li><a href="editing.html#assigning-keyboard-shortcuts"><span class="secno">7.4 </span>Assigning keyboard shortcuts</a>
+    <ol><li><a href="editing.html#introduction-5"><span class="secno">7.4.1 </span>Introduction</a></li><li><a href="editing.html#the-accesskey-attribute"><span class="secno">7.4.2 </span>The <code>accesskey</code> attribute</a></li><li><a href="editing.html#processing-model-3"><span class="secno">7.4.3 </span>Processing model</a></li></ol></li><li><a href="editing.html#contenteditable"><span class="secno">7.5 </span>The <code title="attr-contenteditable">contenteditable</code> attribute</a>
+    <ol><li><a href="editing.html#user-editing-actions"><span class="secno">7.5.1 </span>User editing actions</a></li><li><a href="editing.html#making-entire-documents-editable"><span class="secno">7.5.2 </span>Making entire documents editable</a></li></ol></li><li><a href="editing.html#spelling-and-grammar-checking"><span class="secno">7.6 </span>Spelling and grammar checking</a></li></ol></li></ol></div><h2 id="editing"><span class="secno">7 </span><dfn>User interaction</dfn></h2><h3 id="the-hidden-attribute"><span class="secno">7.1 </span>The <dfn title="attr-hidden"><code>hidden</code></dfn> attribute</h3><p>All <a href="infrastructure.html#html-elements">HTML elements</a> may have the <code title="attr-hidden"><a href="#the-hidden-attribute">hidden</a></code> content attribute set. The <code title="attr-hidden"><a href="#the-hidden-attribute">hidden</a></code> attribute is a <a href="common-microsyntaxes.html#boolean-attribute">boolean
   attribute</a>. When specified on an element, it indicates that
   the element is not yet, or is no longer, relevant. <span class="impl">User agents should not render elements that have the
   <code title="attr-hidden"><a href="#the-hidden-attribute">hidden</a></code> attribute
@@ -380,7 +390,7 @@
   attribute must <a href="common-dom-interfaces.html#reflect">reflect</a> the content attribute of the
   same name.</p>
 
-  </div><h3 id="activation"><span class="secno">7.2 </span>Activation</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><!-- v2 idea: HTMLImageElement.click(x, y); or clickPoint(), if
+  </div><h3 id="activation"><span class="secno">7.2 </span>Activation</h3><!-- v2 idea: HTMLImageElement.click(x, y); or clickPoint(), if
        click() can't be done in IE; can this be emulated in IE by
        posting a synthetic mouse click event with those X and Y
        coords? (ack Csaba Gabor)
@@ -414,48 +424,7 @@
    <li><p>Set the <var title="">click in progress</var> flag on the
    element to false.</p></li>
 
-  </ol></div><h3 id="scrolling-elements-into-view"><span class="secno">7.3 </span>Scrolling elements into view</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><!-- maybe this should move to [CSSOM] --><dl class="domintro"><dt><var title="">element</var> . <code title="dom-scrollIntoView"><a href="#dom-scrollintoview">scrollIntoView</a></code>( [ <var title="">top</var> ] )</dt>
-
-   <dd>
-
-    <p>Scrolls the element into view. If the <var title="">top</var>
-    argument is true, then the element will be scrolled to the top of
-    the viewport, otherwise it'll be scrolled to the bottom. The
-    default is the top.</p>
-
-   </dd>
-
-  </dl><div class="impl">
-
-  <p>The <dfn id="dom-scrollintoview" title="dom-scrollIntoView"><code>scrollIntoView([<var title="">top</var>])</code></dfn> method, when called, must cause
-  the element on which the method was called to have the attention of
-  the user called to it.</p>
-
-  <p class="note">In a speech browser, this could happen by having the
-  current playback position move to the start of the given
-  element.</p>
-
-  <p>If the element in question cannot be brought to the user's
-  attention, e.g. because it is <code title="attr-hidden"><a href="#the-hidden-attribute">hidden</a></code>, or is not <a href="rendering.html#being-rendered">being
-  rendered</a>, then the user agent must do nothing instead.</p>
-
-  <p>In visual user agents, if the argument is present and has the
-  value false, the user agent should scroll the element into view such
-  that both the bottom and the top of the element are in the viewport,
-  with the bottom of the element aligned with the bottom of the
-  viewport. If it isn't possible to show the entire element in that
-  way, or if the argument is omitted or is true, then the user agent
-  should instead align the top of the element with the top of the
-  viewport. If the entire scrollable part of the content is visible
-  all at once (e.g. if a page is shorter than the viewport), then the
-  user agent should not scroll anything. Visual user agents should
-  further scroll horizontally as necessary to bring the element to the
-  attention of the user.</p>
-
-  <p>Non-visual user agents may ignore the argument, or may treat it
-  in some media-specific manner most useful to the user.</p>
-
-  </div><h3 id="focus"><span class="secno">7.4 </span>Focus</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%20%0A...%3Cform%3E%3Cinput%20name%3Da%20onfocus%3D%22value%2B%3D1%3Bd.name%3D%27a%27%3Bname%3D%27d%27%3Bb.focus()%22%3E%0A%3Cinput%20name%3Db%20onfocus%3D%22value%2B%3D1%3Bc.focus()%22%3E%0A%3Cinput%20name%3Dc%20onfocus%3D%22value%2B%3D1%3Bd.focus()%22%3E%0A%3Cinput%20name%3Dd%20onfocus%3D%22value%2B%3D1%3Ba.focus()%22%3E --><!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A...%3Cform%3E%0A%3Ctextarea%20name%3Dt%20cols%3D100%20rows%3D3%3E%3C%2Ftextarea%3E%3Cp%3E%0A%3Cinput%20name%3Da%20onfocus%3D%22t.value%2B%3D%27af1%20%27%3Bb.focus()%3Balert(document.activeElement.name)%3Bt.value%2B%3D%27af2%20%27%3B%22%20onblur%3D%22t.value%2B%3D%27ab%20%27%3B%22%3E%0A%3Cinput%20name%3Db%20onfocus%3D%22t.value%2B%3D%27bf1%20%27%3Bc.focus()%3Bt.value%2B%3D%27bf2%20%27%3B%22%20onblur%3D%22t.value%2B%3D%27bb%20%27%3B%22%3E%0A%3Cinput%20name%3Dc%20onfocus%3D%22t.value%2B%3D%27cf1%20%27%3Bc.focus()%3Bt.value%2B%3D%27cf2%20%27%3B%22%20onblur%3D%22t.value%2B%3D%27cb%20%27%3B%22%3E%0A --><!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%3Cbody%20onload%3D%22document.forms%5B0%5D.a.focus()%22%3E%0A...%3Cform%3E%0A%3Ctextarea%20name%3Dt%20cols%3D100%20rows%3D3%3E%3C%2Ftextarea%3E%3Cp%3E%0A%3Cinput%20name%3Da%20onblur%3D%22t.value%2B%3D'ab%20'%3B%20b.focus()%3B%22%3E%0A%3Cinput%20name%3Db%20onfocus%3D%22t.value%2B%3D'bf1%20'%3Ba.focus()%3Bt.value%2B%3D'bf2%20'%3B%22%20onblur%3D%22t.value%2B%3D'bb%20'%3B%22%3E --><!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%3Cbody%3E...%3Cform%3E%0A%3Ctextarea%20name%3Dt%20cols%3D100%20rows%3D3%3E%3C%2Ftextarea%3E%3Cp%3E%0A%3Cinput%20name%3Da%20onfocus%3D%22t.value%2B%3D%27af%20%27%3B%22%20onblur%3D%22t.value%2B%3D%27ab1%20%27%3Bb.focus()%3Bt.value%2B%3D%27ab2%20%27%3B%22%3E%0A%3Cinput%20name%3Db%20onfocus%3D%22t.value%2B%3D%27bf1%20%27%3Ba.focus()%3Bt.value%2B%3D%27bf2%20%27%3B%22%20onblur%3D%22t.value%2B%3D%27bb%20%27%3B%22%3E --><!-- v2: more things to define, if no other specs define them:
+  </ol></div><h3 id="focus"><span class="secno">7.3 </span>Focus</h3><!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%20%0A...%3Cform%3E%3Cinput%20name%3Da%20onfocus%3D%22value%2B%3D1%3Bd.name%3D%27a%27%3Bname%3D%27d%27%3Bb.focus()%22%3E%0A%3Cinput%20name%3Db%20onfocus%3D%22value%2B%3D1%3Bc.focus()%22%3E%0A%3Cinput%20name%3Dc%20onfocus%3D%22value%2B%3D1%3Bd.focus()%22%3E%0A%3Cinput%20name%3Dd%20onfocus%3D%22value%2B%3D1%3Ba.focus()%22%3E --><!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A...%3Cform%3E%0A%3Ctextarea%20name%3Dt%20cols%3D100%20rows%3D3%3E%3C%2Ftextarea%3E%3Cp%3E%0A%3Cinput%20name%3Da%20onfocus%3D%22t.value%2B%3D%27af1%20%27%3Bb.focus()%3Balert(document.activeElement.name)%3Bt.value%2B%3D%27af2%20%27%3B%22%20onblur%3D%22t.value%2B%3D%27ab%20%27%3B%22%3E%0A%3Cinput%20name%3Db%20onfocus%3D%22t.value%2B%3D%27bf1%20%27%3Bc.focus()%3Bt.value%2B%3D%27bf2%20%27%3B%22%20onblur%3D%22t.value%2B%3D%27bb%20%27%3B%22%3E%0A%3Cinput%20name%3Dc%20onfocus%3D%22t.value%2B%3D%27cf1%20%27%3Bc.focus()%3Bt.value%2B%3D%27cf2%20%27%3B%22%20onblur%3D%22t.value%2B%3D%27cb%20%27%3B%22%3E%0A --><!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%3Cbody%20onload%3D%22document.forms%5B0%5D.a.focus()%22%3E%0A...%3Cform%3E%0A%3Ctextarea%20name%3Dt%20cols%3D100%20rows%3D3%3E%3C%2Ftextarea%3E%3Cp%3E%0A%3Cinput%20name%3Da%20onblur%3D%22t.value%2B%3D'ab%20'%3B%20b.focus()%3B%22%3E%0A%3Cinput%20name%3Db%20onfocus%3D%22t.value%2B%3D'bf1%20'%3Ba.focus()%3Bt.value%2B%3D'bf2%20'%3B%22%20onblur%3D%22t.value%2B%3D'bb%20'%3B%22%3E --><!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%3Cbody%3E...%3Cform%3E%0A%3Ctextarea%20name%3Dt%20cols%3D100%20rows%3D3%3E%3C%2Ftextarea%3E%3Cp%3E%0A%3Cinput%20name%3Da%20onfocus%3D%22t.value%2B%3D%27af%20%27%3B%22%20onblur%3D%22t.value%2B%3D%27ab1%20%27%3Bb.focus()%3Bt.value%2B%3D%27ab2%20%27%3B%22%3E%0A%3Cinput%20name%3Db%20onfocus%3D%22t.value%2B%3D%27bf1%20%27%3Ba.focus()%3Bt.value%2B%3D%27bf2%20%27%3B%22%20onblur%3D%22t.value%2B%3D%27bb%20%27%3B%22%3E --><!-- v2: more things to define, if no other specs define them:
    - define onfocus/onblur behaviour for Window
    - Other things to look at are IE's focus APIs (HTMLElement.setActive(),
      onBeforeActivate, onActivate, onBeforeDeactivate, onDeactivate):
@@ -484,7 +453,7 @@
   <p class="note">When an element is focused, the element matches the
   CSS <code>:focus</code> pseudo-class.</p>
 
-  </div><h4 id="sequential-focus-navigation-and-the-tabindex-attribute"><span class="secno">7.4.1 </span>Sequential focus navigation and the <code title="attr-tabindex"><a href="#attr-tabindex">tabindex</a></code> attribute</h4><p>The <dfn id="attr-tabindex" title="attr-tabindex"><code>tabindex</code></dfn>
+  </div><h4 id="sequential-focus-navigation-and-the-tabindex-attribute"><span class="secno">7.3.1 </span>Sequential focus navigation and the <code title="attr-tabindex"><a href="#attr-tabindex">tabindex</a></code> attribute</h4><p>The <dfn id="attr-tabindex" title="attr-tabindex"><code>tabindex</code></dfn>
   content attribute specifies whether the element is focusable,
   whether it can be reached using sequential focus navigation, and the
   relative order of the element for the purposes of sequential focus
@@ -581,14 +550,13 @@
   element is focused).</p>
 
   <p>The <dfn id="dom-tabindex" title="dom-tabIndex"><code>tabIndex</code></dfn> IDL
-  attribute must <a href="common-dom-interfaces.html#reflect">reflect</a> the value of the <code title="attr-tabindex"><a href="#attr-tabindex">tabindex</a></code> content attribute. If the
-  attribute is not present, or parsing its value returns an error,
-  then the IDL attribute must return 0 for elements that are focusable
-  and &#x2212;1 for elements that are not focusable.</p>
+  attribute must <a href="common-dom-interfaces.html#reflect">reflect</a> the value of the <code title="attr-tabindex"><a href="#attr-tabindex">tabindex</a></code> content attribute. Its default
+  value is 0 for elements that are focusable and &#x2212;1 for
+  elements that are not focusable.</p>
 
   </div><div class="impl">
 
-  <h4 id="focus-management"><span class="secno">7.4.2 </span>Focus management</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="focus-management"><span class="secno">7.3.2 </span>Focus management</h4>
 
   <p>An element is <dfn id="focusable">focusable</dfn> if the user agent's default
   behavior allows it to be focusable or if the element is
@@ -628,6 +596,12 @@
   element can correspond to multiple shapes, since image maps can be
   reused with multiple images on a page.)</p>
 
+  <p>The user agent may also make part of a <code><a href="interactive-elements.html#the-details-element">details</a></code>
+  element's rendering focusable, to enable the element to be opened or
+  closed using keyboard input. However, this is distinct from the
+  <code><a href="interactive-elements.html#the-details-element">details</a></code> or <code><a href="interactive-elements.html#the-summary-element">summary</a></code> element being
+  focusable.</p>
+
   <hr/><p>The <dfn id="focusing-steps">focusing steps</dfn> are as follows:</p>
 
   <ol><li><p>If focusing the element will remove the focus from another
@@ -680,7 +654,7 @@
   element is removed from its <code><a href="infrastructure.html#document">Document</a></code>, or has a <code title="attr-hidden"><a href="#the-hidden-attribute">hidden</a></code> attribute added. It would also
   happen to an <code><a href="the-input-element.html#the-input-element">input</a></code> element when the element gets <a href="association-of-controls-and-forms.html#concept-fe-disabled" title="concept-fe-disabled">disabled</a>.</p>
 
-  </div><h4 id="document-level-focus-apis"><span class="secno">7.4.3 </span>Document-level focus APIs</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="domintro"><dt><var title="">document</var> . <code title="dom-document-activeElement"><a href="#dom-document-activeelement">activeElement</a></code></dt>
+  </div><h4 id="document-level-focus-apis"><span class="secno">7.3.3 </span>Document-level focus APIs</h4><dl class="domintro"><dt><var title="">document</var> . <code title="dom-document-activeElement"><a href="#dom-document-activeelement">activeElement</a></code></dt>
 
    <dd>
 
@@ -750,7 +724,7 @@
   system focus, but hostile sites widely abuse this behavior to the
   user's detriment.</p>
 
-  </div><h4 id="element-level-focus-apis"><span class="secno">7.4.4 </span>Element-level focus APIs</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="domintro"><dt><var title="">element</var> . <code title="dom-focus"><a href="#dom-focus">focus</a></code>()</dt>
+  </div><h4 id="element-level-focus-apis"><span class="secno">7.3.4 </span>Element-level focus APIs</h4><dl class="domintro"><dt><var title="">element</var> . <code title="dom-focus"><a href="#dom-focus">focus</a></code>()</dt>
 
    <dd>
 
@@ -809,79 +783,23 @@
   unusable by keyboard users. Ignoring calls to this method would thus
   allow keyboard users to interact with the page.</p>
 
-  </div><h3 id="the-accesskey-attribute"><span class="secno">7.5 </span>The <dfn title="attr-accesskey"><code>accesskey</code></dfn> attribute</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>All <a href="infrastructure.html#html-elements">HTML elements</a> may have the <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> content attribute set. The
+  </div><h3 id="assigning-keyboard-shortcuts"><span class="secno">7.4 </span>Assigning keyboard shortcuts</h3><h4 id="introduction-5"><span class="secno">7.4.1 </span>Introduction</h4><p><i>This section is non-normative.</i></p><p>Each element that can be activated or focused can be assigned a
+  single key combination to activate it, using the <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> attribute.</p><p>The exact shortcut is determined by the user agent, based on
+  information about the user's keyboard, what keyboard shortcuts
+  already exist on the platform, and what other shortcuts have been
+  specified on the page, using the information provided in the <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> attribute as a guide.</p><p>In order to ensure that a relevant keyboard shortcut is available
+  on a wide variety of input devices, the author can provide a number
+  of alternatives in the <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code>
+  attribute.</p><p>Each alternative consists of a single character, such as a letter
+  or digit.</p><p>User agents can provide users with a list of the keyboard
+  shortcuts, but authors are encouraged to do so also. The <code title="dom-accessKeyLabel"><a href="#dom-accesskeylabel">accessKeyLabel</a></code> IDL attribute
+  returns a string representing the actual key combination assigned by
+  the user agent.</p><h4 id="the-accesskey-attribute"><span class="secno">7.4.2 </span>The <dfn title="attr-accesskey"><code>accesskey</code></dfn> attribute</h4><p>All <a href="infrastructure.html#html-elements">HTML elements</a> may have the <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> content attribute set. The
   <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> attribute's value is
   used by the user agent as a guide for creating a keyboard shortcut
   that activates or focuses the element.</p><p>If specified, the value must be an <a href="common-microsyntaxes.html#ordered-set-of-unique-space-separated-tokens">ordered set of unique
-  space-separated tokens</a>, each of which must be exactly one
-  Unicode code point in length.</p><div class="impl">
-
-  <p>An element's <dfn id="assigned-access-key">assigned access key</dfn> is a key combination
-  derived from the element's <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> content attribute as
-  follows:</p>
-
-  <ol><li><p>If the element has no <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> attribute, then skip to the
-   <i>fallback</i> step below.</p></li>
-
-   <li><p>Otherwise, the user agent must <a href="common-microsyntaxes.html#split-a-string-on-spaces" title="split a string&#10;   on spaces">split the attribute's value on spaces</a>, and let
-   <var title="">keys</var> be the resulting tokens.</p></li>
-
-   <li>
-
-    <p>For each value in <var title="">keys</var> in turn, in the
-    order the tokens appeared in the attribute's value, run the
-    following substeps:</p>
-
-    <ol><li><p>If the value is not a string exactly one Unicode code
-     point in length, then skip the remainder of these steps for this
-     value.</p></li>
-
-     <li><p>If the value does not correspond to a key on the system's
-     keyboard, then skip the remainder of these steps for this
-     value.</p></li>
-
-     <li><p>If the user agent can find a combination of modifier keys
-     that, with the key that corresponds to the value given in the
-     attribute, can be used as a shortcut key, then the user agent may
-     assign that combination of keys as the element's <a href="#assigned-access-key">assigned
-     access key</a> and abort these steps.</p></li>
-
-    </ol></li>
-
-   <li><p><i>Fallback</i>: Optionally, the user agent may assign a key
-   combination of its choosing as the element's <a href="#assigned-access-key">assigned access
-   key</a> and then abort these steps.</p></li>
-
-   <li><p>If this step is reached, the element has no <a href="#assigned-access-key">assigned
-   access key</a>.</p></li>
-
-  </ol><p>Once a user agent has selected and assigned an access key for an
-  element, the user agent should not change the element's
-  <a href="#assigned-access-key">assigned access key</a> unless the <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> content attribute is changed
-  or the element is moved to another <code><a href="infrastructure.html#document">Document</a></code>.</p>
-
-  <p>When the user presses the key combination corresponding to the
-  <a href="#assigned-access-key">assigned access key</a> for an element, if the element
-  <a href="commands.html#concept-command" title="concept-command">defines a command</a>, and the
-  command's <a href="commands.html#command-facet-hiddenstate" title="command-facet-HiddenState">Hidden
-  State</a> facet is false (visible), and the command's <a href="commands.html#command-facet-disabledstate" title="command-facet-DisabledState">Disabled State</a> facet is
-  also false (enabled), then the user agent must trigger the <a href="commands.html#command-facet-action" title="command-facet-Action">Action</a> of the command.</p>
-
-  <p>User agents may expose elements that have an <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> attribute in other ways as
-  well, e.g. in a menu displayed in response to a specific key
-  combination.</p>
-
-  </div><div class="impl">
-
-  <p>The <dfn id="dom-accesskey" title="dom-accessKey"><code>accessKey</code></dfn> IDL
-  attribute must <a href="common-dom-interfaces.html#reflect">reflect</a> the <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> content attribute.</p>
-
-  <p>The <dfn id="dom-accesskeylabel" title="dom-accessKeyLabel"><code>accessKeyLabel</code></dfn> IDL
-  attribute must return a string that represents the element's
-  <a href="#assigned-access-key">assigned access key</a>, if any. If the element does not
-  have one, then the IDL attribute must return the empty string.</p>
-
-  </div><div class="example">
+  space-separated tokens</a> that are <a href="infrastructure.html#case-sensitive">case-sensitive</a>,
+  each of which must be exactly one Unicode code point in length.</p><div class="example">
 
    <p>In the following example, a variety of links are given with
    access keys so that keyboard users familiar with the site can
@@ -939,465 +857,74 @@
    string depends on what the <a href="#assigned-access-key">assigned access key</a> is, and
    on how the user agent represents that key combination.</p>
 
-  </div><h3 id="selection"><span class="secno">7.6 </span>The text selection APIs</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>Every <a href="browsers.html#browsing-context">browsing context</a> has <dfn id="the-selection" title="the&#10;  selection">a selection</dfn>. The selection can be empty, and the
-  selection can have more than one range (a disjointed selection). The
-  user agent should allow the user to change the selection. User
-  agents are not required to let the user select more than one range,
-  and may collapse multiple ranges in the selection to a single range
-  when the user interacts with the selection. (But, of course, the
-  user agent may let the user create selections with multiple
-  ranges.)</p><p>This one selection must be shared by all the content of the
-  browsing context (though not by nested <a href="browsers.html#browsing-context" title="browsing&#10;  context">browsing contexts</a>), including any editing hosts in
-  the document. (Editing hosts that are not inside a document cannot
-  have a selection.)</p><div class="impl">
-
-  <p>If the selection is empty (collapsed, so that it has only one
-  segment and that segment's start and end points are the same) then
-  the selection's position should equal the caret position. When the
-  selection is not empty, this specification does not define the caret
-  position; user agents should follow platform conventions in deciding
-  whether the caret is at the start of the selection, the end of the
-  selection, or somewhere else.</p>
-
-  <p>On some platforms (such as those using Wordstar editing
-  conventions), the caret position is totally independent of the start
-  and end of the selection, even when the selection is empty. On such
-  platforms, user agents may ignore the requirement that the cursor
-  position be linked to the position of the selection altogether.</p>
-
-  </div><p>Mostly for historical reasons, in addition to the <a href="browsers.html#browsing-context">browsing
-  context</a>'s <a href="#the-selection" title="the selection">selection</a>, each
-  <code><a href="the-button-element.html#the-textarea-element">textarea</a></code> and <code><a href="the-input-element.html#the-input-element">input</a></code> element has an
-  independent selection. These are the <dfn id="text-field-selection" title="text field&#10;  selection">text field selections</dfn>.</p><div class="impl">
-
-  <p>User agents may selectively ignore attempts to use the API to
-  adjust the selection made after the user has modified the
-  selection. For example, if the user has just selected part of a
-  word, the user agent could ignore attempts to use the API call to
-  immediately unselect the selection altogether, but could allow
-  attempts to change the selection to select the entire word.</p>
-
-  <p>User agents may also allow the user to create selections that are
-  not exposed to the API.</p>
-
-  </div><!-- v2DATAGRID v2DGS:
-  <p>The <code>datagrid</code> and <code>select</code> elements also
-  have selections, indicating which items have been picked by the
-  user. These are not discussed in this section.</p>
-  --><p>The <code><a href="the-button-element.html#the-select-element">select</a></code> element also has a selection, indicating
-  which items have been picked by the user. This is not discussed in
-  this section.</p><p class="note">This specification does not specify how selections
-  are presented to the user. <!-- The Selectors specification, in
-  conjunction with CSS, can be used to style text selections using the
-  <code title="selector-selection">::selection</code>
-  pseudo-element. <a href="#refsSELECTORS">[SELECTORS]</a> <a
-  href="#refsCSS">[CSS]</a> --></p><h4 id="documentSelection"><span class="secno">7.6.1 </span>APIs for the browsing context selection</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="domintro"><dt><var title="">window</var> . <code title="dom-getSelection"><a href="#dom-getselection">getSelection</a></code>()</dt>
-   <dt><var title="">document</var> . <code title="dom-document-getSelection"><a href="#dom-document-getselection">getSelection</a></code>()</dt>
-
-   <dd>
-
-    <p>Returns the <code><a href="#selection-0">Selection</a></code> object for the window, which
-    stringifies to the text of the current selection.</p>
-
-   </dd>
-
-  </dl><div class="impl">
-
-  <p>The <dfn id="dom-getselection" title="dom-getSelection"><code>getSelection()</code></dfn> method on
-  the <code><a href="browsers.html#window">Window</a></code> interface must return the
-  <code><a href="#selection-0">Selection</a></code> object representing <a href="#the-selection">the
-  selection</a> of that <code><a href="browsers.html#window">Window</a></code> object's
-  <a href="browsers.html#browsing-context">browsing context</a>.
-
-  </p><p>For historical reasons, the <dfn id="dom-document-getselection" title="dom-document-getSelection"><code>getSelection()</code></dfn>
-  method on the <code><a href="dom.html#htmldocument">HTMLDocument</a></code> interface must return the
-  same <code><a href="#selection-0">Selection</a></code> object.</p>
-
-  </div><pre class="idl">interface <dfn id="selection-0">Selection</dfn> {
-  readonly attribute Node <a href="#dom-selection-anchornode" title="dom-selection-anchorNode">anchorNode</a>;
-  readonly attribute long <a href="#dom-selection-anchoroffset" title="dom-selection-anchorOffset">anchorOffset</a>;
-  readonly attribute Node <a href="#dom-selection-focusnode" title="dom-selection-focusNode">focusNode</a>;
-  readonly attribute long <a href="#dom-selection-focusoffset" title="dom-selection-focusOffset">focusOffset</a>;
-  readonly attribute boolean <a href="#dom-selection-iscollapsed" title="dom-selection-isCollapsed">isCollapsed</a>;
-  void <a href="#dom-selection-collapse" title="dom-selection-collapse">collapse</a>(in Node parentNode, in long offset);
-  void <a href="#dom-selection-collapsetostart" title="dom-selection-collapseToStart">collapseToStart</a>();
-  void <a href="#dom-selection-collapsetoend" title="dom-selection-collapseToEnd">collapseToEnd</a>();
-  void <a href="#dom-selection-selectallchildren" title="dom-selection-selectAllChildren">selectAllChildren</a>(in Node parentNode);
-  void <a href="#dom-selection-deletefromdocument" title="dom-selection-deleteFromDocument">deleteFromDocument</a>();
-  readonly attribute long <a href="#dom-selection-rangecount" title="dom-selection-rangeCount">rangeCount</a>;
-  Range <a href="#dom-selection-getrangeat" title="dom-selection-getRangeAt">getRangeAt</a>(in long index);
-  void <a href="#dom-selection-addrange" title="dom-selection-addRange">addRange</a>(in Range range);
-  void <a href="#dom-selection-removerange" title="dom-selection-removeRange">removeRange</a>(in Range range);
-  void <a href="#dom-selection-removeallranges" title="dom-selection-removeAllRanges">removeAllRanges</a>();
-  <a href="#dom-selection-tostring" title="dom-selection-toString">stringifier</a> DOMString ();
-};</pre><!--
-  See also:
-    http://lxr.mozilla.org/mozilla/source/content/base/public/nsISelection.idl
-  This spec doesn't have everything from there yet, in particular
-  selectionLanguageChange() and containsNode() are missing. They are missing
-  because I couldn't work out how to define them in terms of Ranges.
-
-  I also haven't included extend():
-
-    void <span title="dom-selection-extend">extend</span>(in Node parentNode, in long offset);
-    // raise if no range
-    // raise WRONG_DOCUMENT_ERR if parentNode not in document
-    // do something
-
-  ...mostly because I can't work out how to describe what it does quickly.
---><p>The <code><a href="#selection-0">Selection</a></code> interface represents a list of
-  <code><a href="infrastructure.html#range">Range</a></code> objects. The first item in the list has index 0,
-  and the last item has index <var title="">count</var>-1, where <var title="">count</var> is the number of ranges in the list. <a href="references.html#refsDOMRANGE">[DOMRANGE]</a></p><p>All of the members of the <code><a href="#selection-0">Selection</a></code> interface are
-  defined in terms of operations on the <code><a href="infrastructure.html#range">Range</a></code> objects
-  represented by this object. These operations can raise exceptions,
-  as defined for the <code><a href="infrastructure.html#range">Range</a></code> interface; this can therefore
-  result in the members of the <code><a href="#selection-0">Selection</a></code> interface
-  raising exceptions as well, in addition to any explicitly called out
-  below.</p><dl class="domintro"><dt><var title="">selection</var> . <code title="dom-selection-anchorNode"><a href="#dom-selection-anchornode">anchorNode</a></code></dt>
-
-   <dd>
-
-    <p>Returns the element that contains the start of the selection.</p>
-
-    <p>Returns null if there's no selection.</p>
-
-   </dd>
-
-   <dt><var title="">selection</var> . <code title="dom-selection-anchorOffset"><a href="#dom-selection-anchoroffset">anchorOffset</a></code></dt>
-
-   <dd>
-
-    <p>Returns the offset of the start of the selection relative to the element that contains the start of the selection.</p>
-
-    <p>Returns 0 if there's no selection.</p>
-
-   </dd>
-
-   <dt><var title="">selection</var> . <code title="dom-selection-focusNode"><a href="#dom-selection-focusnode">focusNode</a></code></dt>
-
-   <dd>
-
-    <p>Returns the element that contains the end of the selection.</p>
-
-    <p>Returns null if there's no selection.</p>
-
-   </dd>
-
-   <dt><var title="">selection</var> . <code title="dom-selection-focusOffset"><a href="#dom-selection-focusoffset">focusOffset</a></code></dt>
-
-   <dd>
-
-    <p>Returns the offset of the end of the selection relative to the element that contains the end of the selection.</p>
-
-    <p>Returns 0 if there's no selection.</p>
-
-   </dd>
-
-   <dt><var title="">collapsed</var> = <var title="">selection</var> . <code title="dom-selection-isCollapsed"><a href="#dom-selection-iscollapsed">isCollapsed</a></code>()</dt>
-
-   <dd>
-
-    <p>Returns true if there's no selection or if the selection is empty. Otherwise, returns false.</p>
-
-   </dd>
-
-   <dt><var title="">selection</var> . <code title="dom-selection-collapse"><a href="#dom-selection-collapse">collapse</a></code>(<var title="">parentNode</var>, <var title="">offset</var>)</dt>
-
-   <dd>
-
-    <p>Replaces the selection with an empty one at the given position.</p>
-
-    <p>Throws a <code><a href="common-dom-interfaces.html#wrong_document_err">WRONG_DOCUMENT_ERR</a></code> exception if the given node is in a different document.</p>
-
-   </dd>
-
-   <dt><var title="">selection</var> . <code title="dom-selection-collapseToStart"><a href="#dom-selection-collapsetostart">collapseToStart</a></code>()</dt>
-
-   <dd>
-
-    <p>Replaces the selection with an empty one at the position of the start of the current selection.</p>
-
-    <p>Throws an <code><a href="common-dom-interfaces.html#invalid_state_err">INVALID_STATE_ERR</a></code> exception if there is no selection.</p>
-
-   </dd>
-
-   <dt><var title="">selection</var> . <code title="dom-selection-collapseToEnd"><a href="#dom-selection-collapsetoend">collapseToEnd</a></code>()</dt>
-
-   <dd>
-
-    <p>Replaces the selection with an empty one at the position of the end of the current selection.</p>
-
-    <p>Throws an <code><a href="common-dom-interfaces.html#invalid_state_err">INVALID_STATE_ERR</a></code> exception if there is no selection.</p>
-
-   </dd>
-
-   <dt><var title="">selection</var> . <code title="dom-selection-selectAllChildren"><a href="#dom-selection-selectallchildren">selectAllChildren</a></code>(<var title="">parentNode</var>)</dt>
-
-   <dd>
-
-    <p>Replaces the selection with one that contains all the contents of the given element.</p>
-
-    <p>Throws a <code><a href="common-dom-interfaces.html#wrong_document_err">WRONG_DOCUMENT_ERR</a></code> exception if the given node is in a different document.</p>
-
-   </dd>
-
-   <dt><var title="">selection</var> . <code title="dom-selection-deleteFromDocument"><a href="#dom-selection-deletefromdocument">deleteFromDocument</a></code>()</dt>
-
-   <dd>
-
-    <p>Deletes the selection.</p>
-
-   </dd>
-
-   <dt><var title="">selection</var> . <code title="dom-selection-rangeCount"><a href="#dom-selection-rangecount">rangeCount</a></code></dt>
-
-   <dd>
-
-    <p>Returns the number of ranges in the selection.</p>
-
-   </dd>
-
-   <dt><var title="">selection</var> . <code title="dom-selection-getRangeAt"><a href="#dom-selection-getrangeat">getRangeAt</a></code>(<var title="">index</var>)</dt>
-
-   <dd>
-
-    <p>Returns the given range.</p>
-
-    <p>Throws an <code><a href="common-dom-interfaces.html#index_size_err">INDEX_SIZE_ERR</a></code> exception if the value is out of range.</p>
-
-   </dd>
-
-   <dt><var title="">selection</var> . <code title="dom-selection-addRange"><a href="#dom-selection-addrange">addRange</a></code>(<var title="">range</var>)</dt>
-
-   <dd>
-
-    <p>Adds the given range to the selection.</p>
-
-   </dd>
-
-   <dt><var title="">selection</var> . <code title="dom-selection-removeRange"><a href="#dom-selection-removerange">removeRange</a></code>(<var title="">range</var>)</dt>
-
-   <dd>
-
-    <p>Removes the given range from the selection, if the range was one of the ones in the selection.</p>
-
-   </dd>
-
-   <dt><var title="">selection</var> . <code title="dom-selection-removeAllRanges"><a href="#dom-selection-removeallranges">removeAllRanges</a></code>()</dt>
-
-   <dd>
-
-    <p>Removes all the ranges in the selection.</p>
-
-   </dd>
-
-  </dl><div class="impl">
-
-  <p>The <dfn id="dom-selection-anchornode" title="dom-selection-anchorNode"><code>anchorNode</code></dfn>
-  attribute must return the value returned by the <code title="dom-Range-startContainer"><a href="infrastructure.html#dom-range-startcontainer">startContainer</a></code> attribute of the last
-  <code><a href="infrastructure.html#range">Range</a></code> object in the list, or null if the list is
-  empty.</p>
-
-  <p>The <dfn id="dom-selection-anchoroffset" title="dom-selection-anchorOffset"><code>anchorOffset</code></dfn>
-  attribute must return the value returned by the <code title="dom-Range-startOffset"><a href="infrastructure.html#dom-range-startoffset">startOffset</a></code> attribute of the last <code><a href="infrastructure.html#range">Range</a></code>
-  object in the list, or 0 if the list is empty.</p>
-
-  <p>The <dfn id="dom-selection-focusnode" title="dom-selection-focusNode"><code>focusNode</code></dfn>
-  attribute must return the value returned by the <code title="dom-Range-endContainer"><a href="infrastructure.html#dom-range-endcontainer">endContainer</a></code> attribute of the last
-  <code><a href="infrastructure.html#range">Range</a></code> object in the list, or null if the list is
-  empty.</p>
-
-  <p>The <dfn id="dom-selection-focusoffset" title="dom-selection-focusOffset"><code>focusOffset</code></dfn>
-  attribute must return the value returned by the <code title="dom-Range-endOffset"><a href="infrastructure.html#dom-range-endoffset">endOffset</a></code> attribute of the last <code><a href="infrastructure.html#range">Range</a></code>
-  object in the list, or 0 if the list is empty.</p>
-
-  <p>The <dfn id="dom-selection-iscollapsed" title="dom-selection-isCollapsed"><code>isCollapsed</code></dfn>
-  attribute must return true if there are zero ranges, or if there is
-  exactly one range and its <code title="dom-Range-collapsed"><a href="infrastructure.html#dom-range-collapsed">collapsed</a></code> attribute
-  is itself true. Otherwise it must return false.</p>
-
-  <p>The <dfn id="dom-selection-collapse" title="dom-selection-collapse"><code>collapse(<var title="">parentNode</var>, <var title="">offset</var>)</code></dfn>
-  method must raise a <code><a href="common-dom-interfaces.html#wrong_document_err">WRONG_DOCUMENT_ERR</a></code> DOM exception if
-  <var title="">parentNode</var>'s <code><a href="infrastructure.html#document">Document</a></code> is not the
-  <code><a href="dom.html#htmldocument">HTMLDocument</a></code> object with which the
-  <code><a href="#selection-0">Selection</a></code> object is associated. Otherwise it is, and
-  the method must remove all the ranges in the <code><a href="#selection-0">Selection</a></code>
-  list, then create a new <code><a href="infrastructure.html#range">Range</a></code> object, add it to the
-  list, and invoke its <code title="dom-Range-setStart()">setStart()</code> and <code title="dom-Range-setEnd()">setEnd()</code> methods with the <var title="">parentNode</var> and <var title="">offset</var> values as
-  their arguments.</p>
-
-  <p>The <dfn id="dom-selection-collapsetostart" title="dom-selection-collapseToStart"><code>collapseToStart()</code></dfn>
-  method must raise an <code><a href="common-dom-interfaces.html#invalid_state_err">INVALID_STATE_ERR</a></code> DOM exception if
-  there are no ranges in the list. Otherwise, it must invoke the <code title="dom-selection-collapse"><a href="#dom-selection-collapse">collapse()</a></code> method with the
-  <code title="dom-Range-startContainer"><a href="infrastructure.html#dom-range-startcontainer">startContainer</a></code> and <code title="dom-Range-startOffset"><a href="infrastructure.html#dom-range-startoffset">startOffset</a></code> values of the first <code><a href="infrastructure.html#range">Range</a></code>
-  object in the list as the arguments.</p>
-
-  <p>The <dfn id="dom-selection-collapsetoend" title="dom-selection-collapseToEnd"><code>collapseToEnd()</code></dfn>
-  method must raise an <code><a href="common-dom-interfaces.html#invalid_state_err">INVALID_STATE_ERR</a></code> DOM exception if
-  there are no ranges in the list. Otherwise, it must invoke the <code title="dom-selection-collapse"><a href="#dom-selection-collapse">collapse()</a></code> method with the
-  <code title="dom-Range-endContainer"><a href="infrastructure.html#dom-range-endcontainer">endContainer</a></code> and <code title="dom-Range-endOffset"><a href="infrastructure.html#dom-range-endoffset">endOffset</a></code> values of the last <code><a href="infrastructure.html#range">Range</a></code>
-  object in the list as the arguments.</p>
-
-  <p>The <dfn id="dom-selection-selectallchildren" title="dom-selection-selectAllChildren"><code>selectAllChildren(<var title="">parentNode</var>)</code></dfn>
-  method must invoke the <code title="dom-selection-collapse"><a href="#dom-selection-collapse">collapse()</a></code> method with the
-  <var title="">parentNode</var> value as the first argument and 0 as the
-  second argument, and must then invoke the <code title="dom-Range-selectNodeContents()">selectNodeContents()</code> method on the first (and only)
-  range in the list with the <var title="">parentNode</var> value as the
-  argument.</p>
-
-  <p>The <dfn id="dom-selection-deletefromdocument" title="dom-selection-deleteFromDocument"><code>deleteFromDocument()</code></dfn>
-  method must invoke the <code title="dom-Range-deleteContents()">deleteContents()</code> method
-  on each range in the list, if any, from first to last.</p>
-
-  <p>The <dfn id="dom-selection-rangecount" title="dom-selection-rangeCount"><code>rangeCount</code></dfn>
-  attribute must return the number of ranges in the list.</p>
-
-  <p>The <dfn id="dom-selection-getrangeat" title="dom-selection-getRangeAt"><code>getRangeAt(<var title="">index</var>)</code></dfn>
-  method must return the <var title="">index</var>th range in the list. If
-  <var title="">index</var> is less than zero or greater or equal to the value
-  returned by the <code title="dom-selection-rangeCount"><a href="#dom-selection-rangecount">rangeCount</a></code> attribute, then
-  the method must raise an <code><a href="common-dom-interfaces.html#index_size_err">INDEX_SIZE_ERR</a></code> DOM
-  exception.</p>
-
-  <p>The <dfn id="dom-selection-addrange" title="dom-selection-addRange"><code>addRange(<var title="">range</var>)</code></dfn>
-  method must add the given <var title="">range</var> Range object to the list
-  of selections, at the end (so the newly added range is the new last
-  range). Duplicates are not prevented; a range may be added more than
-  once in which case it appears in the list more than once, which (for
-  example) will cause <a href="#dom-selection-tostring" title="dom-selection-toString">stringification</a> to return the
-  range's text twice.</p>
-
-  <p>The <dfn id="dom-selection-removerange" title="dom-selection-removeRange"><code>removeRange(<var title="">range</var>)</code></dfn>
-  method must remove the first occurrence of <var title="">range</var> in the
-  list of ranges, if it appears at all.</p>
-
-  <p>The <dfn id="dom-selection-removeallranges" title="dom-selection-removeAllRanges"><code>removeAllRanges()</code></dfn>
-  method must remove all the ranges from the list of ranges, such that
-  the <code title="dom-selection-rangeCount"><a href="#dom-selection-rangecount">rangeCount</a></code>
-  attribute returns 0 after the <code title="dom-selection-removeAllRanges"><a href="#dom-selection-removeallranges">removeAllRanges()</a></code>
-  method is invoked (and until a new range is added to the list,
-  either through this interface or via user interaction).</p>
-
-  <p>Objects implementing this interface must <dfn id="dom-selection-tostring" title="dom-selection-toString">stringify</dfn> to a concatenation
-  of the results of invoking the <code title="">toString()</code>
-  method of the <code><a href="infrastructure.html#range">Range</a></code> object on each of the ranges of the
-  selection, in the order they appear in the list (first to last).</p>
-
-  </div><div class="example">
-   <p>In the following document fragment, the emphasized parts
-   indicate the selection.</p>
-   <pre>&lt;p&gt;The cute girl likes <em>the </em>&lt;cite&gt;<em>Oxford English</em> Dictionary&lt;/cite&gt;.&lt;/p&gt;</pre>
-   <p>If a script invoked <code title="">window.getSelection().toString()</code>, the return value
-   would be "<code>the Oxford English</code>".</p>
-  </div><!-- v2DATAGRID v2DGS:
-  <p class="note">The <code>Selection</code> interface has no relation
-  to the <code>DataGridSelection</code> interface.</p>
-  --><h4 id="textFieldSelection"><span class="secno">7.6.2 </span>APIs for the text field selections</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><!-- v2 idea: DOM Range APIs to expose the textarea/input edited
-  value (ack martijnw) --><p>The <code><a href="the-input-element.html#the-input-element">input</a></code> and <code><a href="the-button-element.html#the-textarea-element">textarea</a></code> elements define
-  the following members in their DOM interfaces for handling their
-  text selection:</p><pre class="idl extract">  void <a href="#dom-textarea-input-select" title="dom-textarea/input-select">select</a>();
-           attribute unsigned long <a href="#dom-textarea-input-selectionstart" title="dom-textarea/input-selectionStart">selectionStart</a>;
-           attribute unsigned long <a href="#dom-textarea-input-selectionend" title="dom-textarea/input-selectionEnd">selectionEnd</a>;
-  void <a href="#dom-textarea-input-setselectionrange" title="dom-textarea/input-setSelectionRange">setSelectionRange</a>(in unsigned long start, in unsigned long end);</pre><!-- v2: also add textLength? it seems to be widely used --><p>These methods and attributes expose and control the selection of
-  <code><a href="the-input-element.html#the-input-element">input</a></code> and <code><a href="the-button-element.html#the-textarea-element">textarea</a></code> text fields.</p><dl class="domintro"><dt><var title="">element</var> . <code title="dom-textarea/input-select"><a href="#dom-textarea-input-select">select</a></code>()</dt>
-
-   <dd>
-
-    <p>Selects everything in the text field.</p>
-
-   </dd>
-
-   <dt><var title="">element</var> . <code title="dom-textarea/input-selecionStart">selectionStart</code> [ = <var title="">value</var> ]</dt>
-
-   <dd>
-
-    <p>Returns the offset to the start of the selection.</p>
-
-    <p>Can be set, to change the start of the selection.</p>
-
-   </dd>
-
-   <dt><var title="">element</var> . <code title="dom-textarea/input-selecionEnd">selectionEnd</code> [ = <var title="">value</var> ]</dt>
-
-   <dd>
-
-    <p>Returns the offset to the end of the selection.</p>
-
-    <p>Can be set, to change the end of the selection.</p>
+  </div><div class="impl">
 
-   </dd>
+  <h4 id="processing-model-3"><span class="secno">7.4.3 </span>Processing model</h4>
 
-   <dt><var title="">element</var> . <code title="dom-textarea/input-setSelectionRange"><a href="#dom-textarea-input-setselectionrange">setSelectionRange</a></code>(<var title="">start</var>, <var title="">end</var>)</dt>
+  <p>An element's <dfn id="assigned-access-key">assigned access key</dfn> is a key combination
+  derived from the element's <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> content attribute as
+  follows:</p>
 
-   <dd>
+  <ol><li><p>If the element has no <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> attribute, then skip to the
+   <i>fallback</i> step below.</p></li>
 
-    <p>Changes the selection to cover the given substring.</p>
+   <li><p>Otherwise, the user agent must <a href="common-microsyntaxes.html#split-a-string-on-spaces" title="split a string&#10;   on spaces">split the attribute's value on spaces</a>, and let
+   <var title="">keys</var> be the resulting tokens.</p></li>
 
-   </dd>
+   <li>
 
-  </dl><div class="impl">
+    <p>For each value in <var title="">keys</var> in turn, in the
+    order the tokens appeared in the attribute's value, run the
+    following substeps:</p>
 
-  <p>When these methods and attributes are used with
-  <code><a href="the-input-element.html#the-input-element">input</a></code> elements while they don't apply, they must raise
-  an <code><a href="common-dom-interfaces.html#invalid_state_err">INVALID_STATE_ERR</a></code> exception. Otherwise, they must
-  act as described below.</p>
+    <ol><li><p>If the value is not a string exactly one Unicode code
+     point in length, then skip the remainder of these steps for this
+     value.</p></li>
 
-  <p>The <dfn id="dom-textarea-input-select" title="dom-textarea/input-select"><code>select()</code></dfn> method
-  must cause the contents of the text field to be fully selected.</p>
+     <li><p>If the value does not correspond to a key on the system's
+     keyboard, then skip the remainder of these steps for this
+     value.</p></li>
 
-  <p>The <dfn id="dom-textarea-input-selectionstart" title="dom-textarea/input-selectionStart"><code>selectionStart</code></dfn>
-  attribute must, on getting, return the offset (in logical order) to
-  the character that immediately follows the start of the
-  selection. If there is no selection, then it must return the offset
-  (in logical order) to the character that immediately follows the
-  text entry cursor.</p>
+     <li><p>If the user agent can find a combination of modifier keys
+     that, with the key that corresponds to the value given in the
+     attribute, can be used as a shortcut key, then the user agent may
+     assign that combination of keys as the element's <a href="#assigned-access-key">assigned
+     access key</a> and abort these steps.</p></li>
 
-  <p>On setting, it must act as if the <code title="dom-textarea/input-setSelectionRange"><a href="#dom-textarea-input-setselectionrange">setSelectionRange()</a></code>
-  method had been called, with the new value as the first argument,
-  and the current value of the <code title="dom-textarea/input-selectionEnd"><a href="#dom-textarea-input-selectionend">selectionEnd</a></code>
-  attribute as the second argument, unless the current value of the
-  <code title="dom-textarea/input-selectionEnd"><a href="#dom-textarea-input-selectionend">selectionEnd</a></code> is
-  less than the new value, in which case the second argument must also
-  be the new value.</p>
+    </ol></li>
 
-  <p>The <dfn id="dom-textarea-input-selectionend" title="dom-textarea/input-selectionEnd"><code>selectionEnd</code></dfn>
-  attribute must, on getting, return the offset (in logical order) to
-  the character that immediately follows the end of the selection. If
-  there is no selection, then it must return the offset (in logical
-  order) to the character that immediately follows the text entry
-  cursor.</p>
+   <li><p><i>Fallback</i>: Optionally, the user agent may assign a key
+   combination of its choosing as the element's <a href="#assigned-access-key">assigned access
+   key</a> and then abort these steps.</p></li>
 
-  <p>On setting, it must act as if the <code title="dom-textarea/input-setSelectionRange"><a href="#dom-textarea-input-setselectionrange">setSelectionRange()</a></code>
-  method had been called, with the current value of the <code title="dom-textarea/input-selectionStart"><a href="#dom-textarea-input-selectionstart">selectionStart</a></code>
-  attribute as the first argument, and new value as the second
-  argument.</p>
+   <li><p>If this step is reached, the element has no <a href="#assigned-access-key">assigned
+   access key</a>.</p></li>
 
-  <p>The <dfn id="dom-textarea-input-setselectionrange" title="dom-textarea/input-setSelectionRange"><code>setSelectionRange(<var title="">start</var>, <var title="">end</var>)</code></dfn> method
-  must set the selection of the text field to the sequence of
-  characters starting with the character at the <var title="">start</var>th position (in logical order) and ending with
-  the character at the <span title="">(<var title="">end</var>-1)</span>th position. Arguments greater than the
-  length of the value in the text field must be treated as pointing at
-  the end of the text field. If <var title="">end</var> is less than
-  or equal to <var title="">start</var> then the start of the
-  selection and the end of the selection must both be placed
-  immediately before the character with offset <var title="">end</var>. In UAs where there is no concept of an empty
-  selection, this must set the cursor to be just before the character
-  with offset <var title="">end</var>.</p>
+  </ol><p>Once a user agent has selected and assigned an access key for an
+  element, the user agent should not change the element's
+  <a href="#assigned-access-key">assigned access key</a> unless the <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> content attribute is changed
+  or the element is moved to another <code><a href="infrastructure.html#document">Document</a></code>.</p>
 
-  </div><div class="example">
+  <p>When the user presses the key combination corresponding to the
+  <a href="#assigned-access-key">assigned access key</a> for an element, if the element
+  <a href="commands.html#concept-command" title="concept-command">defines a command</a>, and the
+  command's <a href="commands.html#command-facet-hiddenstate" title="command-facet-HiddenState">Hidden
+  State</a> facet is false (visible), and the command's <a href="commands.html#command-facet-disabledstate" title="command-facet-DisabledState">Disabled State</a> facet is
+  also false (enabled), then the user agent must trigger the <a href="commands.html#command-facet-action" title="command-facet-Action">Action</a> of the command.</p>
 
-   <p>To obtain the currently selected text, the following JavaScript
-   suffices:</p>
+  <p>User agents may expose elements that have an <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> attribute in other ways as
+  well, e.g. in a menu displayed in response to a specific key
+  combination.</p>
 
-   <pre>var selectionText = control.value.substring(control.selectionStart, control.selectionEnd);</pre>
+  <p>The <dfn id="dom-accesskey" title="dom-accessKey"><code>accessKey</code></dfn> IDL
+  attribute must <a href="common-dom-interfaces.html#reflect">reflect</a> the <code title="attr-accesskey"><a href="#the-accesskey-attribute">accesskey</a></code> content attribute.</p>
 
-   <p>...where <var title="">control</var> is the <code><a href="the-input-element.html#the-input-element">input</a></code>
-   or <code><a href="the-button-element.html#the-textarea-element">textarea</a></code> element.</p>
+  <p>The <dfn id="dom-accesskeylabel" title="dom-accessKeyLabel"><code>accessKeyLabel</code></dfn> IDL
+  attribute must return a string that represents the element's
+  <a href="#assigned-access-key">assigned access key</a>, if any. If the element does not
+  have one, then the IDL attribute must return the empty string.</p>
 
-  </div><p>Characters with no visible rendering, such as U+200D ZERO WIDTH
-  JOINER, still count as characters. Thus, for instance, the selection
-  can include just an invisible character, and the text insertion
-  cursor can be placed to one side or another of such a character.</p><h3 id="contenteditable"><span class="secno">7.7 </span>The <code title="attr-contenteditable"><a href="#attr-contenteditable">contenteditable</a></code> attribute</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="attr-contenteditable" title="attr-contenteditable"><code>contenteditable</code></dfn>
+  </div><h3 id="contenteditable"><span class="secno">7.5 </span>The <code title="attr-contenteditable"><a href="#attr-contenteditable">contenteditable</a></code> attribute</h3><p>The <dfn id="attr-contenteditable" title="attr-contenteditable"><code>contenteditable</code></dfn>
   attribute is an <a href="common-microsyntaxes.html#enumerated-attribute">enumerated attribute</a> whose keywords are
   the empty string, <code title="">true</code>, and <code title="">false</code>. The empty string and the <code title="">true</code> keyword map to the <i>true</i> state. The <code title="">false</code> keyword maps to the <i>false</i> state. In
   addition, there is a third state, the <i>inherit</i> state, which is
@@ -1478,8 +1005,8 @@
   editing hosts.</p>
 
   <p>When an editing host has focus, it must have a <dfn id="caret-position">caret
-  position</dfn> that specifies where the current editing position
-  is. It may also have a <a href="#the-selection" title="the&#10;  selection">selection</a>.</p>
+  position</dfn> that specifies where the current editing position is.
+  It may also have a selection.</p>
 
   <p class="note">How the caret and selection are represented depends
   entirely on the UA.</p>
@@ -1489,7 +1016,7 @@
 
   </div><div class="impl">
 
-  <h4 id="user-editing-actions"><span class="secno">7.7.1 </span>User editing actions</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="user-editing-actions"><span class="secno">7.5.1 </span>User editing actions</h4>
 
   <p>There are several actions that the user agent should allow the
   user to perform while the user is interacting with an editing
@@ -1507,14 +1034,14 @@
 
    <dt>Change the selection</dt>
 
-   <dd><p>User agents must allow users to change <a href="#the-selection">the
-   selection</a> within an editing host, even into nested editable
-   elements. User agents may prevent selections from being made in
-   ways that cross from editable elements into non-editable elements
-   (e.g. by making each non-editable descendant atomically selectable,
-   but not allowing text selection within them). This could be
-   triggered as the default action of <code title="event-keydown">keydown</code> events with various key
-   identifiers and as the default action of <code title="event-mousedown">mousedown</code> events.</p></dd>
+   <dd><p>User agents must allow users to change the selection within
+   an editing host, even into nested editable elements. User agents
+   may prevent selections from being made in ways that cross from
+   editable elements into non-editable elements (e.g. by making each
+   non-editable descendant atomically selectable, but not allowing
+   text selection within them). This could be triggered as the default
+   action of <code title="event-keydown">keydown</code> events with
+   various key identifiers and as the default action of <code title="event-mousedown">mousedown</code> events.</p></dd>
 
 
    <dt id="contenteditable-insertText">Insert text</dt>
@@ -1593,8 +1120,8 @@
    element, backspacing when the caret is immediately after an
    element, forward-deleting at the end of an element,
    forward-deleting when the caret is immediately before an element,
-   and deleting a <a href="#the-selection" title="the selection">selection</a> whose
-   start and end points do not share a common parent node.</p>
+   and deleting a selection whose start and end points do not share a
+   common parent node.</p>
 
    <p>In any case, the exact behavior is UA-dependent, but user
    agents must not, in response to a request to delete text or an
@@ -1662,8 +1189,8 @@
   </dl><p>User agents may perform several commands per user request; for
   example if the user selects a block of text and hits
   <kbd><kbd>Enter</kbd></kbd>, the UA might interpret that as a
-  request to delete the content of <a href="#the-selection">the selection</a> followed
-  by a request to break the paragraph at that position.</p>
+  request to delete the content of the selection followed by a request
+  to break the paragraph at that position.</p>
 
   <p>User agents may add <a href="dnd.html#dom-changes">DOM changes</a> entries to the
   <a href="dnd.html#undo-transaction-history">undo transaction history</a> of the <a href="#editing-host">editing
@@ -1674,7 +1201,7 @@
   or programmatically (e.g. by <code title="dom-document-execCommand"><a href="dnd.html#execCommand">execCommand()</a></code> commands),
   must fire mutation events as appropriate.</p>
 
-  </div><h4 id="making-entire-documents-editable"><span class="secno">7.7.2 </span>Making entire documents editable</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><div class="impl">
+  </div><h4 id="making-entire-documents-editable"><span class="secno">7.5.2 </span>Making entire documents editable</h4><div class="impl">
 
   <p>Documents have a <dfn id="designMode" title="dom-document-designMode"><code>designMode</code></dfn>, which
   can be either enabled or disabled.</p>
@@ -1708,7 +1235,7 @@
   <p>The last state set must persist until the document is destroyed
   or the state is changed. Initially, documents must have their <code title="dom-document-designMode"><a href="#designMode">designMode</a></code> disabled.</p>
 
-  </div><h3 id="spelling-and-grammar-checking"><span class="secno">7.8 </span>Spelling and grammar checking</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><div class="impl">
+  </div><h3 id="spelling-and-grammar-checking"><span class="secno">7.6 </span>Spelling and grammar checking</h3><div class="impl">
 
   <p>User agents can support the checking of spelling and grammar of
   editable text, either in form controls (such as the value of

Index: video.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/video.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- video.html	28 Aug 2010 23:52:56 -0000	1.1
+++ video.html	19 Oct 2010 17:38:08 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
[...2271 lines suppressed...]
      </th><th>Dispatched when...
@@ -3138,6 +4940,9 @@
    </td></tr></tbody><tbody><tr><td><dfn id="event-media-loadedmetadata" title="event-media-loadedmetadata"><code>loadedmetadata</code></dfn>
      </td><td><code><a href="infrastructure.html#event">Event</a></code>
      </td><td>The user agent has just determined the duration and dimensions of the <a href="#media-resource">media resource</a>
+<!--KEEP-END w3c-html--><!--TT-->
+ and <a href="#the-timed-tracks-are-ready">the timed tracks are ready</a>.
+<!--KEEP-START w3c-html--><!--TT-->
      </td><td><code title="dom-media-readyState"><a href="#dom-media-readystate">readyState</a></code> is newly equal to <code title="dom-media-HAVE_METADATA"><a href="#dom-media-have_metadata">HAVE_METADATA</a></code> or greater for the first time.
     </td></tr><tr><td><dfn id="event-media-loadeddata" title="event-media-loadeddata"><code>loadeddata</code></dfn>
      </td><td><code><a href="infrastructure.html#event">Event</a></code>
@@ -3191,7 +4996,7 @@
      </td><td>
   </td></tr></tbody></table><div class="impl">
 
-  <h5 id="security-and-privacy-considerations"><span class="secno">4.8.9.13 </span>Security and privacy considerations</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h5 id="security-and-privacy-considerations"><span class="secno">4.8.10.14 </span>Security and privacy considerations</h5>
 
   <p>The main security and privacy implications of the
   <code><a href="#video">video</a></code> and <code><a href="#audio">audio</a></code> elements come from the

Index: browsers.html
===================================================================
RCS file: /sources/public/html5/markup/html5-spec/browsers.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- browsers.html	28 Aug 2010 23:52:52 -0000	1.1
+++ browsers.html	19 Oct 2010 17:38:06 -0000	1.2
@@ -66,7 +66,8 @@
    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
 
-   p > span:not([title=""]):not([class="XXX"]):not([class="impl"]), li > span:not([title=""]):not([class="XXX"]):not([class="impl"]) { border-bottom: solid #9999CC; }
+   p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
+   li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
 
    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
    div.head p { margin: 0; }
@@ -185,6 +186,10 @@
    #configUI #updateUI, #configUI .loginUI { text-align: center; }
    #configUI input[type=button] { display: block; margin: auto; }
 
+   fieldset { margin: 1em; }
+   fieldset > legend * + { margin-top: 0; }
+   fieldset > :last-child { margin-bottom: 0; }
+
   ]]></style><style type="text/css"><![CDATA[
 
    .applies thead th > * { display: block; }
@@ -200,6 +205,8 @@
    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
 
+   td.eg { border-width: thin; text-align: center; }
+
    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
    #table-example-1 caption { padding-bottom: 0.5em; }
@@ -233,16 +240,19 @@
    .details-example img { vertical-align: top; }
 
    #named-character-references-table {
+     white-space: nowrap;
      font-size: 0.6em;
-     column-width: 28em;
+     column-width: 30em;
      column-gap: 1em;
-     -moz-column-width: 28em;
+     -moz-column-width: 30em;
      -moz-column-gap: 1em;
-     -webkit-column-width: 28em;
+     -webkit-column-width: 30em;
      -webkit-column-gap: 1em;
    }
+   #named-character-references-table > table > tbody > tr > td:first-child + td,
    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
+   #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
 
    .glyph.control { color: red; }
 
@@ -322,14 +332,14 @@
     <ol><li><a href="browsers.html#nested-browsing-contexts"><span class="secno">5.1.1 </span>Nested browsing contexts</a>
       <ol><li><a href="browsers.html#navigating-nested-browsing-contexts-in-the-dom"><span class="secno">5.1.1.1 </span>Navigating nested browsing contexts in the DOM</a></li></ol></li><li><a href="browsers.html#auxiliary-browsing-contexts"><span class="secno">5.1.2 </span>Auxiliary browsing contexts</a>
       <ol><li><a href="browsers.html#navigating-auxiliary-browsing-contexts-in-the-dom"><span class="secno">5.1.2.1 </span>Navigating auxiliary browsing contexts in the DOM</a></li></ol></li><li><a href="browsers.html#secondary-browsing-contexts"><span class="secno">5.1.3 </span>Secondary browsing contexts</a></li><li><a href="browsers.html#security-nav"><span class="secno">5.1.4 </span>Security</a></li><li><a href="browsers.html#groupings-of-browsing-contexts"><span class="secno">5.1.5 </span>Groupings of browsing contexts</a></li><li><a href="browsers.html#browsing-context-names"><span class="secno">5.1.6 </span>Browsing context names</a></li></ol></li><li><a href="browsers.html#the-window-object"><span class="secno">5.2 </span>The <code>Window</code> object</a>
-    <ol><li><a href="browsers.html#security-window"><span class="secno">5.2.1 </span>Security</a></li><li><a href="browsers.html#apis-for-creating-and-navigating-browsing-contexts-by-name"><span class="secno">5.2.2 </span>APIs for creating and navigating browsing contexts by name</a></li><li><a href="browsers.html#accessing-other-browsing-contexts"><span class="secno">5.2.3 </span>Accessing other browsing contexts</a></li><li><a href="browsers.html#named-access-on-the-window-object"><span class="secno">5.2.4 </span>Named access on the <code>Window</code> object</a></li><li><a href="browsers.html#garbage-collection-and-browsing-contexts"><span class="secno">5.2.5 </span>Garbage collection and browsing contexts</a></li><li><a href="browsers.html#browser-interface-elements"><span class="secno">5.2.6 </span>Browser interface elements</a></li><li><a href="browsers.html#the-windowproxy-object"><span class="secno">5.2.7 </span>The <code>WindowProxy</code> object</a></li></ol></li></ol></li></ol></div><h2 id="browsers"><span class="secno">5 </span>Loading Web pages</h2><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><div class="impl">
+    <ol><li><a href="browsers.html#security-window"><span class="secno">5.2.1 </span>Security</a></li><li><a href="browsers.html#apis-for-creating-and-navigating-browsing-contexts-by-name"><span class="secno">5.2.2 </span>APIs for creating and navigating browsing contexts by name</a></li><li><a href="browsers.html#accessing-other-browsing-contexts"><span class="secno">5.2.3 </span>Accessing other browsing contexts</a></li><li><a href="browsers.html#named-access-on-the-window-object"><span class="secno">5.2.4 </span>Named access on the <code>Window</code> object</a></li><li><a href="browsers.html#garbage-collection-and-browsing-contexts"><span class="secno">5.2.5 </span>Garbage collection and browsing contexts</a></li><li><a href="browsers.html#browser-interface-elements"><span class="secno">5.2.6 </span>Browser interface elements</a></li><li><a href="browsers.html#the-windowproxy-object"><span class="secno">5.2.7 </span>The <code>WindowProxy</code> object</a></li></ol></li></ol></li></ol></div><h2 id="browsers"><span class="secno">5 </span>Loading Web pages</h2><div class="impl">
 
   <p>This section describes features that apply most directly to Web
   browsers. Having said that, except where specified otherwise, the
   requirements defined in this section <em>do</em> apply to all user
   agents, whether they are Web browsers or not.</p>
 
-  </div><h3 id="windows"><span class="secno">5.1 </span>Browsing contexts</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>A <dfn id="browsing-context">browsing context</dfn> is an environment in which
+  </div><h3 id="windows"><span class="secno">5.1 </span>Browsing contexts</h3><p>A <dfn id="browsing-context">browsing context</dfn> is an environment in which
   <code><a href="infrastructure.html#document">Document</a></code> objects are presented to the user.</p><p class="note">A tab or window in a Web browser typically contains
   a <a href="#browsing-context">browsing context</a>, as does an <code><a href="the-iframe-element.html#the-iframe-element">iframe</a></code><span class="impl"> or <code><a href="obsolete.html#frame">frame</a></code>s in a
   <code><a href="obsolete.html#frameset">frameset</a></code></span>.</p><p>Each <a href="#browsing-context">browsing context</a> has a corresponding
@@ -389,7 +399,7 @@
   <code><a href="infrastructure.html#document">Document</a></code> is a globally unique identifier assigned when
   the new <a href="#browsing-context">browsing context</a> is created.</p>
 
-  </div><h4 id="nested-browsing-contexts"><span class="secno">5.1.1 </span>Nested browsing contexts</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>Certain elements (for example, <code><a href="the-iframe-element.html#the-iframe-element">iframe</a></code> elements) can
+  </div><h4 id="nested-browsing-contexts"><span class="secno">5.1.1 </span>Nested browsing contexts</h4><p>Certain elements (for example, <code><a href="the-iframe-element.html#the-iframe-element">iframe</a></code> elements) can
   instantiate further <a href="#browsing-context" title="browsing context">browsing
   contexts</a>. These are called <dfn id="nested-browsing-context" title="nested browsing&#10;  context">nested browsing contexts</dfn>. If a browsing context <var title="">P</var> has an element <var title="">E</var> in one of its
   <code><a href="infrastructure.html#document">Document</a></code>s <var title="">D</var> that nests another
@@ -432,7 +442,7 @@
   of elements that are in <code><a href="infrastructure.html#document">Document</a></code>s that are not
   themselves <a href="#fully-active">fully active</a>.</p><p>A <a href="#nested-browsing-context">nested browsing context</a> can have a <a href="the-iframe-element.html#seamless-browsing-context-flag">seamless
   browsing context flag</a> set, if it is embedded through an
-  <code><a href="the-iframe-element.html#the-iframe-element">iframe</a></code> element with a <code title="attr-iframe-seamless"><a href="the-iframe-element.html#attr-iframe-seamless">seamless</a></code> attribute.</p><h5 id="navigating-nested-browsing-contexts-in-the-dom"><span class="secno">5.1.1.1 </span>Navigating nested browsing contexts in the DOM</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="domintro"><dt><var title="">window</var> . <code title="dom-top"><a href="#dom-top">top</a></code></dt>
+  <code><a href="the-iframe-element.html#the-iframe-element">iframe</a></code> element with a <code title="attr-iframe-seamless"><a href="the-iframe-element.html#attr-iframe-seamless">seamless</a></code> attribute.</p><h5 id="navigating-nested-browsing-contexts-in-the-dom"><span class="secno">5.1.1.1 </span>Navigating nested browsing contexts in the DOM</h5><dl class="domintro"><dt><var title="">window</var> . <code title="dom-top"><a href="#dom-top">top</a></code></dt>
 
    <dd>
 
@@ -496,7 +506,7 @@
    <li><p>Otherwise, return the <a href="#browsing-context-container">browsing context
    container</a> for <var title="">b</var>.</p></li>
 
-  </ol></div><h4 id="auxiliary-browsing-contexts"><span class="secno">5.1.2 </span>Auxiliary browsing contexts</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>It is possible to create new browsing contexts that are related
+  </ol></div><h4 id="auxiliary-browsing-contexts"><span class="secno">5.1.2 </span>Auxiliary browsing contexts</h4><p>It is possible to create new browsing contexts that are related
   to a <a href="#top-level-browsing-context">top-level browsing context</a> without being nested
   through an element. Such browsing contexts are called <dfn id="auxiliary-browsing-context" title="auxiliary browsing context">auxiliary browsing
   contexts</dfn>. Auxiliary browsing contexts are always <a href="#top-level-browsing-context" title="top-level browsing context">top-level browsing
@@ -506,12 +516,12 @@
   and it has a <dfn id="furthest-ancestor-browsing-context">furthest ancestor browsing context</dfn>, which is
   the <a href="#top-level-browsing-context">top-level browsing context</a> of the <a href="#opener-browsing-context">opener
   browsing context</a> when the <a href="#auxiliary-browsing-context">auxiliary browsing
-  context</a> was created.</p><h5 id="navigating-auxiliary-browsing-contexts-in-the-dom"><span class="secno">5.1.2.1 </span>Navigating auxiliary browsing contexts in the DOM</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <dfn id="dom-opener" title="dom-opener"><code>opener</code></dfn> IDL
+  context</a> was created.</p><h5 id="navigating-auxiliary-browsing-contexts-in-the-dom"><span class="secno">5.1.2.1 </span>Navigating auxiliary browsing contexts in the DOM</h5><p>The <dfn id="dom-opener" title="dom-opener"><code>opener</code></dfn> IDL
   attribute on the <code><a href="#window">Window</a></code> object must return the
   <code><a href="#windowproxy">WindowProxy</a></code> object of the <a href="#browsing-context">browsing context</a>
   from which the current <a href="#browsing-context">browsing context</a> was created
   (its <a href="#opener-browsing-context">opener browsing context</a>), if there is one and it
-  is still available.</p><h4 id="secondary-browsing-contexts"><span class="secno">5.1.3 </span>Secondary browsing contexts</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>User agents may support <dfn id="secondary-browsing-context" title="secondary browsing&#10;  context">secondary browsing contexts</dfn>, which are <a href="#browsing-context" title="browsing context">browsing contexts</a> that form part of
+  is still available.</p><h4 id="secondary-browsing-contexts"><span class="secno">5.1.3 </span>Secondary browsing contexts</h4><p>User agents may support <dfn id="secondary-browsing-context" title="secondary browsing&#10;  context">secondary browsing contexts</dfn>, which are <a href="#browsing-context" title="browsing context">browsing contexts</a> that form part of
   the user agent's interface, apart from the main content area.</p><div class="impl">
 
   <h4 id="security-nav"><span class="secno">5.1.4 </span>Security</h4>
@@ -551,13 +561,15 @@
 
   </div><div class="impl">
 
-  <h4 id="groupings-of-browsing-contexts"><span class="secno">5.1.5 </span>Groupings of browsing contexts</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p>
+  <h4 id="groupings-of-browsing-contexts"><span class="secno">5.1.5 </span>Groupings of browsing contexts</h4>
 
   <p>Each <a href="#browsing-context">browsing context</a> is defined as having a list of
-  zero or more <dfn id="directly-reachable-browsing-contexts">directly reachable browsing contexts</dfn>. These
+  one or more <dfn id="directly-reachable-browsing-contexts">directly reachable browsing contexts</dfn>. These
   are:</p>
 
-  <ul><li>All the <a href="#browsing-context">browsing context</a>'s <a href="#child-browsing-context" title="child&#10;   browsing context">child browsing contexts</a>.</li>
+  <ul><li>The <a href="#browsing-context">browsing context</a> itself.</li>
+
+   <li>All the <a href="#browsing-context">browsing context</a>'s <a href="#child-browsing-context" title="child&#10;   browsing context">child browsing contexts</a>.</li>
 
    <li>The <a href="#browsing-context">browsing context</a>'s <a href="#parent-browsing-context">parent browsing
    context</a>.</li>
@@ -592,7 +604,7 @@
   <p class="note">There is at most one <a href="webappapis.html#event-loop">event loop</a> per
   <a href="#unit-of-related-similar-origin-browsing-contexts">unit of related similar-origin browsing contexts</a>.</p>
 
-  </div><h4 id="browsing-context-names"><span class="secno">5.1.6 </span>Browsing context names</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>Browsing contexts can have a <dfn id="browsing-context-name">browsing context name</dfn>. By
+  </div><h4 id="browsing-context-names"><span class="secno">5.1.6 </span>Browsing context names</h4><p>Browsing contexts can have a <dfn id="browsing-context-name">browsing context name</dfn>. By
   default, a browsing context has no name (its name is not set).</p><p>A <dfn id="valid-browsing-context-name">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
@@ -708,7 +720,7 @@
 
    </li>
 
-  </ol></div><h3 id="the-window-object"><span class="secno">5.2 </span>The <code><a href="#window">Window</a></code> object</h3><p class="XXX annotation"><b>Status: </b><i>Implemented and widely deployed</i></p><pre class="idl">[OverrideBuiltins, ReplaceableNamedProperties] <!-- XXX http://www.w3.org/Bugs/Public/show_bug.cgi?id=8241 -->
+  </ol></div><h3 id="the-window-object"><span class="secno">5.2 </span>The <code><a href="#window">Window</a></code> object</h3><pre class="idl">[ReplaceableNamedProperties] <!-- XXX http://www.w3.org/Bugs/Public/show_bug.cgi?id=8241 -->
 interface <dfn id="window">Window</dfn> {
   // the current browsing context
   readonly attribute <a href="#windowproxy">WindowProxy</a> <a href="#dom-window" title="dom-window">window</a>;
@@ -718,7 +730,6 @@
   [PutForwards=<a href="history.html#dom-location-href" title="dom-location-href">href</a>] readonly attribute <a href="history.html#location">Location</a> <a href="history.html#dom-location" title="dom-location">location</a>;
   readonly attribute <a href="history.html#history-0">History</a> <a href="history.html#dom-history" title="dom-history">history</a>;
   readonly attribute <a href="dnd.html#undomanager">UndoManager</a> <a href="dnd.html#dom-undomanager" title="dom-undoManager">undoManager</a>;
-  <a href="editing.html#selection-0">Selection</a> <a href="editing.html#dom-getselection" title="dom-getSelection">getSelection</a>();
   [Replaceable] readonly attribute <a href="#barprop">BarProp</a> <a href="#dom-window-locationbar" title="dom-window-locationbar">locationbar</a>;
   [Replaceable] readonly attribute <a href="#barprop">BarProp</a> <a href="#dom-window-menubar" title="dom-window-menubar">menubar</a>;
   [Replaceable] readonly attribute <a href="#barprop">BarProp</a> <a href="#dom-window-personalbar" title="dom-window-personalbar">personalbar</a>;
@@ -764,6 +775,9 @@
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onchange" title="handler-onchange">onchange</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onclick" title="handler-onclick">onclick</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-oncontextmenu" title="handler-oncontextmenu">oncontextmenu</a>;
+<!--KEEP-END w3c-html--><!--TT-->
+           attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-oncuechange" title="handler-oncuechange">oncuechange</a>;
+<!--KEEP-START w3c-html--><!--TT-->
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-ondblclick" title="handler-ondblclick">ondblclick</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-ondrag" title="handler-ondrag">ondrag</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-ondragend" title="handler-ondragend">ondragend</a>;
@@ -808,6 +822,7 @@
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onratechange" title="handler-onratechange">onratechange</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onreadystatechange" title="handler-onreadystatechange">onreadystatechange</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-window-onredo" title="handler-window-onredo">onredo</a>;
+           attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onreset" title="handler-onreset">onreset</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-window-onresize" title="handler-window-onresize">onresize</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onscroll" title="handler-onscroll">onscroll</a>;
            attribute <a href="webappapis.html#function">Function</a> <a href="webappapis.html#handler-onseeked" title="handler-onseeked">onseeked</a>;
@@ -871,7 +886,8 @@
   <p>The <dfn id="dom-document-defaultview" title="dom-document-defaultView"><code>defaultView</code></dfn> IDL
   attribute of the <code><a href="dom.html#htmldocument">HTMLDocument</a></code> interface must return the
   <code><a href="infrastructure.html#document">Document</a></code>'s <a href="#browsing-context">browsing context</a>'s
-  <code><a href="#windowproxy">WindowProxy</a></code> object.</p>
+  <code><a href="#windowproxy">WindowProxy</a></code> object, if there is one, or null
+  otherwise.</p>
 
   </div><div class="impl">
 
@@ -918,7 +934,7 @@
 
   </div>
 
-  </div><h4 id="apis-for-creating-and-navigating-browsing-contexts-by-name"><span class="secno">5.2.2 </span>APIs for creating and navigating browsing contexts by name</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="domintro"><dt><var title="">window</var> = <var title="">window</var> . <code title="dom-open"><a href="#dom-open">open</a></code>( [ <var title="">url</var> [, <var title="">target</var> [, <var title="">features</var> [, <var title="">replace</var> ] ] ] ] )</dt>
+  </div><h4 id="apis-for-creating-and-navigating-browsing-contexts-by-name"><span class="secno">5.2.2 </span>APIs for creating and navigating browsing contexts by name</h4><dl class="domintro"><dt><var title="">window</var> = <var title="">window</var> . <code title="dom-open"><a href="#dom-open">open</a></code>( [ <var title="">url</var> [, <var title="">target</var> [, <var title="">features</var> [, <var title="">replace</var> ] ] ] ] )</dt>
 
    <dd>
 
@@ -982,8 +998,11 @@
   provided, then the <var title="">target</var> argument defaults to the
   value "<code>_blank</code>".</p>
 
-  <p>The third argument, <var title="">features</var>, has no effect
-  and is supported for historical reasons only.</p>
+  <p>The third argument, <var title="">features</var>, has no defined
+  effect and is mentioned for historical reasons only. User agents may
+  interpret this argument as instructions to set the size and position
+  of the browsing context, but are encouraged to instead ignore the
+  argument entirely.</p>
 
   <p>The fourth argument, <var title="">replace</var>, specifies
   whether or not the new page will <a href="history.html#replacement-enabled" title="replacement&#10;  enabled">replace</a> the page currently loaded in the browsing
@@ -1051,7 +1070,7 @@
   the <a href="fetching-resources.html#fetch" title="fetch">fetch algorithm</a>. Otherwise, it must
   do nothing.</p>
 
-  </div><h4 id="accessing-other-browsing-contexts"><span class="secno">5.2.3 </span>Accessing other browsing contexts</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="domintro"><dt><var title="">window</var> . <code title="dom-length"><a href="#dom-length">length</a></code></dt>
+  </div><h4 id="accessing-other-browsing-contexts"><span class="secno">5.2.3 </span>Accessing other browsing contexts</h4><dl class="domintro"><dt><var title="">window</var> . <code title="dom-length"><a href="#dom-length">length</a></code></dt>
 
    <dd>
 
@@ -1081,10 +1100,10 @@
 
   <!-- in other words, frames are only accessible to same-thread processes -->
 
-  <p>The <span>indices of the supported indexed properties</span> on
-  the <code><a href="#window">Window</a></code> object at any instant are the numbers in the
-  range 0 .. <span title=""><var title="">n</var>-1</span>, where <var title="">n</var> is the number returned by the <code title="dom-length"><a href="#dom-length">length</a></code> IDL attribute. If <var title="">n</var> is zero then there are no <span>supported indexed
-  properties</span>.</p>
+  <p>The <a href="infrastructure.html#supported-property-indices">supported property indices</a> on the
+  <code><a href="#window">Window</a></code> object at any instant are the numbers in the
+  range 0 .. <span title=""><var title="">n</var>-1</span>, where <var title="">n</var> is the number returned by the <code title="dom-length"><a href="#dom-length">length</a></code> IDL attribute. If <var title="">n</var> is zero then there are no <a href="infrastructure.html#supported-property-indices">supported property
+  indices</a>.</p>
 
   <p>When a <code><a href="#window">Window</a></code> object is <dfn id="dom-window-item" title="dom-window-item">indexed to retrieve an indexed
   property</dfn> <var title="">index</var>, the value returned must be
@@ -1097,7 +1116,7 @@
   <p>These properties are the <dfn id="dynamic-nested-browsing-context-properties">dynamic nested browsing context
   properties</dfn>.</p>
 
-  </div><h4 id="named-access-on-the-window-object"><span class="secno">5.2.4 </span>Named access on the <code><a href="#window">Window</a></code> object</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><dl class="domintro"><dt><var title="">window</var>[<var title="">name</var>]</dt>
+  </div><h4 id="named-access-on-the-window-object"><span class="secno">5.2.4 </span>Named access on the <code><a href="#window">Window</a></code> object</h4><dl class="domintro"><dt><var title="">window</var>[<var title="">name</var>]</dt>
 
    <dd>
 
@@ -1107,8 +1126,8 @@
 
   </dl><div class="impl">
 
-  <p>The <code><a href="#window">Window</a></code> interface <span title=&qu