[html5] r1109 - /

whatwg at whatwg.org whatwg at whatwg.org
Tue Oct 30 02:09:55 PDT 2007


Author: ianh
Date: 2007-10-30 02:09:54 -0700 (Tue, 30 Oct 2007)
New Revision: 1109

Modified:
   index
   source
Log:
[e] (0) Define 'lang' processing in XML more tightly; fix a bunch of xrefs ('HTML elements').

Modified: index
===================================================================
--- index	2007-10-29 21:00:19 UTC (rev 1108)
+++ index	2007-10-30 09:09:54 UTC (rev 1109)
@@ -22,7 +22,7 @@
 
    <h1 id=html-5>HTML 5</h1>
 
-   <h2 class="no-num no-toc" id=working>Working Draft — 29 October 2007</h2>
+   <h2 class="no-num no-toc" id=working>Working Draft — 30 October 2007</h2>
 
    <p>You can take part in this work. <a
     href="http://www.whatwg.org/mailing-list">Join the working group's
@@ -3012,7 +3012,8 @@
     element with a <code title=attr-name>name</code> attribute equal to <var
     title="">key</var>, or,
 
-   <li>It is an HTML element of any kind with an <code title=attr-id><a
+   <li>It is an <a href="#html-elements" title="HTML elements">HTML
+    element</a> of any kind with an <code title=attr-id><a
     href="#id">id</a></code> attribute equal to <var title="">key</var>.
     (Non-HTML elements, even if they have IDs, are not searched for the
     purposes of <code title=dom-HTMLCollection-namedItem><a
@@ -4122,9 +4123,9 @@
     <p class=note>This doesn't apply to <code
      title="">Document.createElementNS()</code>. Thus, it is possible, by
      passing this last method a tag name in the wrong case, to create an
-     element that claims to have the tag name of an HTML element, but doesn't
-     support its interfaces, because it really has another tag name not
-     accessible from the DOM APIs.</p>
+     element that claims to have the tag name of an element defined in this
+     specification, but doesn't support its interfaces, because it really has
+     another tag name not accessible from the DOM APIs.</p>
 
    <dt><code title="">Element.setAttributeNode()</code>
 
@@ -6398,7 +6399,8 @@
 
   <p>If this attribute is omitted from an element, then it implies that the
    <code title=attr-title><a href="#title">title</a></code> attribute of the
-   nearest ancestor with a <code title=attr-title><a
+   nearest ancestor <a href="#html-elements" title="HTML elements">HTML
+   element</a> with a <code title=attr-title><a
    href="#title">title</a></code> attribute set is also relevant to this
    element. Setting the attribute overrides this, explicitly stating that the
    advisory information of any ancestors is not relevant to this element.
@@ -6452,9 +6454,11 @@
 
   <p>To determine the language of a node, user agents must look at the
    nearest ancestor element (including the element itself if the node is an
-   element) that has a <code title=attr-lang><a href="#lang">lang</a></code>
-   or <code title=attr-xml-lang><a href="#xmllang">xml:lang</a></code>
-   attribute set. That specifies the language of the node.
+   element) that has an <code title=attr-xml-lang><a
+   href="#xmllang">xml:lang</a></code> attribute set or is an <a
+   href="#html-elements" title="HTML elements">HTML element</a> and has a
+   <code title=attr-lang><a href="#lang">lang</a></code> attribute set. That
+   attribute specifies the language of the node.
 
   <p>If both the <code title=attr-xml-lang><a
    href="#xmllang">xml:lang</a></code> attribute and the <code
@@ -6518,17 +6522,19 @@
   <h4 id=classes><span class=secno>3.4.5. </span>The <dfn id=class
    title=attr-class><code>class</code></dfn> attribute</h4>
 
-  <p>Every <span>HTML element</span> may have a <code title=attr-class><a
-   href="#class">class</a></code> attribute specified.
+  <p>Every <a href="#html-elements" title="HTML elements">HTML element</a>
+   may have a <code title=attr-class><a href="#class">class</a></code>
+   attribute specified.
 
   <p>The attribute, if specified, must have a value that is an <a
    href="#unordered">unordered set of space-separated tokens</a> representing
    the various classes that the element belongs to.
 
-  <p>The classes that an HTML element has assigned to it consists of all the
-   classes returned when the value of the <code title=attr-class><a
-   href="#class">class</a></code> attribute is <a href="#split" title="split
-   a string on spaces">split on spaces</a>.
+  <p>The classes that an <a href="#html-elements" title="HTML elements">HTML
+   element</a> has assigned to it consists of all the classes returned when
+   the value of the <code title=attr-class><a href="#class">class</a></code>
+   attribute is <a href="#split" title="split a string on spaces">split on
+   spaces</a>.
 
   <p class=note>Assigning classes to an element affects class matching in
    selectors in CSS, the <code title=dom-document-getElementsByClassName><a
@@ -23243,7 +23249,8 @@
    title=command-facet-Action>Action</a> for the command. If the element does
    not define a command, this method must do nothing. This method will be
    shadowed by the <code title=dom-click><a href="#click">click()</a></code>
-   method on HTML elements, and is included only for completeness.
+   method on <a href="#html-elements">HTML elements</a>, and is included only
+   for completeness.
 
   <p>The <dfn id=triggers0
    title=dom-command-ro-triggers><code>triggers</code></dfn> attribute must
@@ -23794,19 +23801,19 @@
    title=attr-template><a href="#template">template</a></code> attribute</h5>
 
   <p><dfn id=setting title=datatemplate-template-set>Setting</dfn>: When an
-   <span>HTML element</span> without a <code title=attr-template><a
-   href="#template">template</a></code> attribute has its <code
-   title=attr-template><a href="#template">template</a></code> attribute set,
-   the user agent must fetch the specified
-   file<!-- XXX or queue it up to be fetched,
-  or something --> and parse it
-   (without a <a href="#browsing0">browsing context</a>, and with
-   <span>scripting disabled</span><!-- XXX
-  xref -->) to obtain a DOM. If
-   the URI is the same as the URI of the current document<!-- XXX xref -->,
-   then the current document's DOM must be assumed to be that parsed DOM.
-   While this loading and parsing is in progress, the element is said to be
-   <em>busy loading the template rules or data</em>.
+   <a href="#html-elements" title="HTML elements">HTML element</a> without a
+   <code title=attr-template><a href="#template">template</a></code>
+   attribute has its <code title=attr-template><a
+   href="#template">template</a></code> attribute set, the user agent must
+   fetch the specified file<!-- XXX or queue it up to be fetched,
+  or something -->
+   and parse it (without a <a href="#browsing0">browsing context</a>, and
+   with <span>scripting disabled</span><!-- XXX
+  xref -->) to obtain a DOM.
+   If the URI is the same as the URI of the current
+   document<!-- XXX xref -->, then the current document's DOM must be assumed
+   to be that parsed DOM. While this loading and parsing is in progress, the
+   element is said to be <em>busy loading the template rules or data</em>.
 
   <p>If the resource specified by the <code title=attr-template><a
    href="#template">template</a></code> attribute is not the current
@@ -23865,11 +23872,12 @@
    href="#template">template</a></code> attribute was found.
 
   <p><dfn id=unsetting title=datatemplate-template-unset>Unsetting</dfn>:
-   When an <span>HTML element</span> with a <code title=attr-template><a
-   href="#template">template</a></code> attribute has its <code
-   title=attr-template><a href="#template">template</a></code> attribute
-   removed or dynamically changed from one value to another, the user agent
-   must run the following algorithm:
+   When an <a href="#html-elements" title="HTML elements">HTML element</a>
+   with a <code title=attr-template><a href="#template">template</a></code>
+   attribute has its <code title=attr-template><a
+   href="#template">template</a></code> attribute removed or dynamically
+   changed from one value to another, the user agent must run the following
+   algorithm:
 
   <ol>
    <li>
@@ -23919,11 +23927,11 @@
   <h5 id=the-ref><span class=secno>3.19.6.3. </span>The <code
    title=attr-ref><a href="#ref">ref</a></code> attribute</h5>
 
-  <p><dfn id=setting0 title=datatemplate-ref-set>Setting</dfn>: When an
-   <span>HTML element</span> without a <code title=attr-ref><a
-   href="#ref">ref</a></code> attribute has its <code title=attr-ref><a
-   href="#ref">ref</a></code> attribute set, the user agent must fetch the
-   specified file<!-- XXX or queue it up to be fetched, or
+  <p><dfn id=setting0 title=datatemplate-ref-set>Setting</dfn>: When an <a
+   href="#html-elements" title="HTML elements">HTML element</a> without a
+   <code title=attr-ref><a href="#ref">ref</a></code> attribute has its <code
+   title=attr-ref><a href="#ref">ref</a></code> attribute set, the user agent
+   must fetch the specified file<!-- XXX or queue it up to be fetched, or
   something -->
    and parse it (without a <a href="#browsing0">browsing context</a>, and
    with <span>scripting disabled</span><!-- XXX xref -->) to obtain a DOM. If
@@ -23978,10 +23986,11 @@
    of the element will be used instead of the specified resource).
 
   <p><dfn id=unsetting0 title=datatemplate-ref-unset>Unsetting</dfn>: When an
-   <span>HTML element</span> with a <code title=attr-ref><a
-   href="#ref">ref</a></code> attribute has its <code title=attr-ref><a
-   href="#ref">ref</a></code> attribute removed or dynamically changed from
-   one value to another, the user agent must run the following algorithm:
+   <a href="#html-elements" title="HTML elements">HTML element</a> with a
+   <code title=attr-ref><a href="#ref">ref</a></code> attribute has its <code
+   title=attr-ref><a href="#ref">ref</a></code> attribute removed or
+   dynamically changed from one value to another, the user agent must run the
+   following algorithm:
 
   <ol>
    <li>
@@ -32452,9 +32461,11 @@
    <em>false</em> state, which is also the <em>invalid value default</em>.
    There is no <em>missing value default</em>.
 
-  <p>If an HTML element has a <code title=attr-contenteditable><a
+  <p>If an <a href="#html-elements" title="HTML elements">HTML element</a>
+   has a <code title=attr-contenteditable><a
    href="#contenteditable0">contenteditable</a></code> attribute set to the
-   true state, or if its nearest ancestor with the <code
+   true state, or if its nearest ancestor <a href="#html-elements"
+   title="HTML elements">HTML element</a> with the <code
    title=attr-contenteditable><a
    href="#contenteditable0">contenteditable</a></code> attribute set has its
    attribute set to the true state, or if it has no ancestors with the <code
@@ -32464,11 +32475,11 @@
    href="#designMode">designMode</a></code> enabled, then the UA must treat
    the element as <dfn id=editable0>editable</dfn> (as described below).
 
-  <p>Otherwise, either the HTML element has a <code
-   title=attr-contenteditable><a
+  <p>Otherwise, either the <a href="#html-elements" title="HTML
+   elements">HTML element</a> has a <code title=attr-contenteditable><a
    href="#contenteditable0">contenteditable</a></code> attribute set to the
-   false state, or its nearest ancestor with the <code
-   title=attr-contenteditable><a
+   false state, or its nearest ancestor <a href="#html-elements" title="HTML
+   elements">HTML element</a> with the <code title=attr-contenteditable><a
    href="#contenteditable0">contenteditable</a></code> attribute set is not
    <em><a href="#editable0">editable</a></em>, or it has no ancestor with the
    <code title=attr-contenteditable><a
@@ -36367,7 +36378,8 @@
 
    <dt>Normal elements
 
-   <dd>All other allowed HTML elements are normal elements.
+   <dd>All other allowed <a href="#html-elements">HTML elements</a> are
+    normal elements.
   </dl>
 
   <p><dfn id=tags title=syntax-tags>Tags</dfn> are used to delimit the start

Modified: source
===================================================================
--- source	2007-10-29 21:00:19 UTC (rev 1108)
+++ source	2007-10-30 09:09:54 UTC (rev 1109)
@@ -1443,10 +1443,10 @@
    title="attr-name">name</code> attribute equal to <var
    title="">key</var>, or,</li>
 
-   <li>It is an HTML element of any kind with an <code
-   title="attr-id">id</code> attribute equal to <var
-   title="">key</var>. (Non-HTML elements, even if they have IDs, are
-   not searched for the purposes of <code
+   <li>It is an <span title="HTML elements">HTML element</span> of any
+   kind with an <code title="attr-id">id</code> attribute equal to
+   <var title="">key</var>. (Non-HTML elements, even if they have IDs,
+   are not searched for the purposes of <code
    title="dom-HTMLCollection-namedItem">namedItem()</code>.)</li>
 
   </ul>
@@ -2654,9 +2654,10 @@
     <p class="note">This doesn't apply to <code
     title="">Document.createElementNS()</code>. Thus, it is possible,
     by passing this last method a tag name in the wrong case, to
-    create an element that claims to have the tag name of an HTML
-    element, but doesn't support its interfaces, because it really has
-    another tag name not accessible from the DOM APIs.</p>
+    create an element that claims to have the tag name of an element
+    defined in this specification, but doesn't support its interfaces,
+    because it really has another tag name not accessible from the DOM
+    APIs.</p>
 
    </dd>
 
@@ -4933,12 +4934,12 @@
 
   <p>If this attribute is omitted from an element, then it implies
   that the <code title="attr-title">title</code> attribute of the
-  nearest ancestor with a <code title="attr-title">title</code>
-  attribute set is also relevant to this element. Setting the
-  attribute overrides this, explicitly stating that the advisory
-  information of any ancestors is not relevant to this element.
-  Setting the attribute to the empty string indicates that the element
-  has no advisory information.</p>
+  nearest ancestor <span title="HTML elements">HTML element</span>
+  with a <code title="attr-title">title</code> attribute set is also
+  relevant to this element. Setting the attribute overrides this,
+  explicitly stating that the advisory information of any ancestors is
+  not relevant to this element.  Setting the attribute to the empty
+  string indicates that the element has no advisory information.</p>
 
   <p>If the <code title="attr-title">title</code> attribute's value
   contains U+000A LINE FEED (LF) characters, the content is split into
@@ -4986,8 +4987,10 @@
 
   <p>To determine the language of a node, user agents must look at the
   nearest ancestor element (including the element itself if the node
-  is an element) that has a <code title="attr-lang">lang</code> or
-  <code title="attr-xml-lang">xml:lang</code> attribute set. That
+  is an element) that has an <code
+  title="attr-xml-lang">xml:lang</code> attribute set or is an <span
+  title="HTML elements">HTML element</span> and has a <code
+  title="attr-lang">lang</code> attribute set. That attribute
   specifies the language of the node.</p>
 
   <p>If both the <code title="attr-xml-lang">xml:lang</code> attribute
@@ -5052,17 +5055,18 @@
 
   <h4 id="classes">The <dfn title="attr-class"><code>class</code></dfn> attribute</h4>
 
-  <p>Every <span>HTML element</span> may have a <code
-  title="attr-class">class</code> attribute specified.</p>
+  <p>Every <span title="HTML elements">HTML element</span> may have a
+  <code title="attr-class">class</code> attribute specified.</p>
 
   <p>The attribute, if specified, must have a value that is an
   <span>unordered set of space-separated tokens</span> representing
   the various classes that the element belongs to.</p>
 
-  <p>The classes that an HTML element has assigned to it consists of
-  all the classes returned when the value of the <code
-  title="attr-class">class</code> attribute is <span title="split a
-  string on spaces">split on spaces</span>.</p>
+  <p>The classes that an <span title="HTML elements">HTML
+  element</span> has assigned to it consists of all the classes
+  returned when the value of the <code title="attr-class">class</code>
+  attribute is <span title="split a string on spaces">split on
+  spaces</span>.</p>
 
   <p class="note">Assigning classes to an element affects class
   matching in selectors in CSS, the <code
@@ -20785,8 +20789,8 @@
   title="command-facet-Action">Action</span> for the command. If the
   element does not define a command, this method must do nothing. This
   method will be shadowed by the <code
-  title="dom-click">click()</code> method on HTML elements, and is
-  included only for completeness.</p>
+  title="dom-click">click()</code> method on <span>HTML
+  elements</span>, and is included only for completeness.</p>
 
   <p>The <dfn
   title="dom-command-ro-triggers"><code>triggers</code></dfn>
@@ -21310,7 +21314,7 @@
   <h5>The <code title="attr-template">template</code> attribute</h5>
 
   <p><dfn title="datatemplate-template-set">Setting</dfn>: When an
-  <span>HTML element</span> without a <code
+  <span title="HTML elements">HTML element</span> without a <code
   title="attr-template">template</code> attribute has its <code
   title="attr-template">template</code> attribute set, the user agent
   must fetch the specified file<!-- XXX or queue it up to be fetched,
@@ -21382,7 +21386,7 @@
   title="attr-template">template</code> attribute was found.</p>
 
   <p><dfn title="datatemplate-template-unset">Unsetting</dfn>: When an
-  <span>HTML element</span> with a <code
+  <span title="HTML elements">HTML element</span> with a <code
   title="attr-template">template</code> attribute has its <code
   title="attr-template">template</code> attribute removed or
   dynamically changed from one value to another, the user agent must
@@ -21438,8 +21442,8 @@
 
   <h5>The <code title="attr-ref">ref</code> attribute</h5>
 
-  <p><dfn title="datatemplate-ref-set">Setting</dfn>: When an
-  <span>HTML element</span> without a <code
+  <p><dfn title="datatemplate-ref-set">Setting</dfn>: When an <span
+  title="HTML elements">HTML element</span> without a <code
   title="attr-ref">ref</code> attribute has its <code
   title="attr-ref">ref</code> attribute set, the user agent must fetch
   the specified file<!-- XXX or queue it up to be fetched, or
@@ -21502,10 +21506,11 @@
   instead of the specified resource).</p>
 
   <p><dfn title="datatemplate-ref-unset">Unsetting</dfn>: When an
-  <span>HTML element</span> with a <code title="attr-ref">ref</code>
-  attribute has its <code title="attr-ref">ref</code> attribute
-  removed or dynamically changed from one value to another, the user
-  agent must run the following algorithm:</p>
+  <span title="HTML elements">HTML element</span> with a <code
+  title="attr-ref">ref</code> attribute has its <code
+  title="attr-ref">ref</code> attribute removed or dynamically changed
+  from one value to another, the user agent must run the following
+  algorithm:</p>
 
   <ol>
 
@@ -29880,9 +29885,10 @@
   state, which is also the <em>invalid value default</em>. There is no
   <em>missing value default</em>.</p>
 
-  <p>If an HTML element has a <code
+  <p>If an <span title="HTML elements">HTML element</span> has a <code
   title="attr-contenteditable">contenteditable</code> attribute set to
-  the true state, or if its nearest ancestor with the <code
+  the true state, or if its nearest ancestor <span title="HTML
+  elements">HTML element</span> with the <code
   title="attr-contenteditable">contenteditable</code> attribute set
   has its attribute set to the true state, or if it has no ancestors
   with the <code title="attr-contenteditable">contenteditable</code>
@@ -29891,9 +29897,11 @@
   UA must treat the element as <dfn>editable</dfn> (as described
   below).</p>
 
-  <p>Otherwise, either the HTML element has a <code
+  <p>Otherwise, either the <span title="HTML elements">HTML
+  element</span> has a <code
   title="attr-contenteditable">contenteditable</code> attribute set to
-  the false state, or its nearest ancestor with the <code
+  the false state, or its nearest ancestor <span title="HTML
+  elements">HTML element</span> with the <code
   title="attr-contenteditable">contenteditable</code> attribute set is
   not <em>editable</em>, or it has no ancestor with the <code
   title="attr-contenteditable">contenteditable</code> attribute set
@@ -33759,7 +33767,8 @@
 
    <dt>Normal elements</dt>
 
-   <dd>All other allowed HTML elements are normal elements.</dd>
+   <dd>All other allowed <span>HTML elements</span> are normal
+   elements.</dd>
 
   </dl>
 




More information about the Commit-Watchers mailing list