[html5] r890 - /

whatwg at whatwg.org whatwg at whatwg.org
Thu Jun 14 14:52:03 PDT 2007


Author: ianh
Date: 2007-06-14 14:52:02 -0700 (Thu, 14 Jun 2007)
New Revision: 890

Modified:
   index
   source
Log:
[e] (0) Fix uses of the term 'tag name' to be less ambiguous.

Modified: index
===================================================================
--- index	2007-06-14 01:48:44 UTC (rev 889)
+++ index	2007-06-14 21:52:02 UTC (rev 890)
@@ -3699,16 +3699,22 @@
 
      <dd>
       <p>Append a U+003C LESS-THAN SIGN (<code title=""><</code>)
-       character, followed by the element's tag name (which is all
-       lowercase).</p>
+       character, followed by the element's tag name. (For nodes created by
+       the <a href="#html-0">HTML parser</a>, <code
+       title="">Document.createElement()</code>, or <code
+       title="">Document.renameNode()</code>, the tag name will be
+       lowercase.)</p>
 
       <p>For each attribute that the element has, append a U+0020 SPACE
-       character, the attribute's name (which again will be all lowercase), a
-       U+003D EQUALS SIGN (<code title="">=</code>) character, a U+0022
-       QUOTATION MARK (<code title="">"</code>) character, the
-       attribute's value, <a href="#escapingString" title="escaping a
-       string">escaped as described below</a>, and a second U+0022 QUOTATION
-       MARK (<code title="">"</code>) character.</p>
+       character, the attribute's name (which, for attributes set by the <a
+       href="#html-0">HTML parser</a> or by <code
+       title="">Element.setAttributeNode()</code> or <code
+       title="">Element.setAttribute()</code>, will be lowercase), a U+003D
+       EQUALS SIGN (<code title="">=</code>) character, a U+0022 QUOTATION
+       MARK (<code title="">"</code>) character, the attribute's value,
+       <a href="#escapingString" title="escaping a string">escaped as
+       described below</a>, and a second U+0022 QUOTATION MARK (<code
+       title="">"</code>) character.</p>
 
       <p>While the exact order of attributes is UA-defined, and may depend on
        factors such as the order that the attributes were given in the
@@ -3720,17 +3726,16 @@
       <p>Append a U+003E GREATER-THAN SIGN (<code title="">></code>)
        character.</p>
 
-      <p>If the child node is an <code title="">Element</code> with a tag
-       name that is one of <code><a href="#area">area</a></code>, <code><a
-       href="#base">base</a></code>, <code>basefont</code>,
+      <p>If the child node is an <code><a href="#area">area</a></code>,
+       <code><a href="#base">base</a></code>, <code>basefont</code>,
        <code>bgsound</code>, <code><a href="#br">br</a></code>, <code><a
        href="#col">col</a></code>, <code><a href="#embed">embed</a></code>,
        <code>frame</code>, <code><a href="#hr">hr</a></code>, <code><a
        href="#img">img</a></code>, <code>input</code>, <code><a
        href="#link">link</a></code>, <code><a href="#meta0">meta</a></code>,
        <code><a href="#param">param</a></code>, <code>spacer</code>, or
-       <code>wbr</code>, then continue on to the next child node at this
-       point.</p>
+       <code>wbr</code> element, then continue on to the next child node at
+       this point.</p>
       <!-- also, i guess:
       image, isindex, and keygen, but we don't list those because we
       don't consider those "elements", more "macros", and thus we
@@ -3742,9 +3747,9 @@
        href="#innerhtml0">innerHTML</a></code> DOM attribute (thus recursing
        into this algorithm for that element), followed by a U+003C LESS-THAN
        SIGN (<code title=""><</code>) character, a U+002F SOLIDUS (<code
-       title="">/</code>) character, the element's tag name again (which is
-       again all lowercase), and finally a U+003E GREATER-THAN SIGN (<code
-       title="">></code>) character.</p>
+       title="">/</code>) character, the element's tag name again, and
+       finally a U+003E GREATER-THAN SIGN (<code title="">></code>)
+       character.</p>
 
      <dt>If the child node is a <code title="">Text</code> or <code
       title="">CDATASection</code> node
@@ -30193,10 +30198,11 @@
      contains only <a href="#inline-level0">inline-level content</a> and is
      not being used as a <a href="#structured" title="structured inline-level
      elements">structured inline-level element</a>, and, if that element is a
-     descendant of the editing host, rename it according to the <var
-     title="">value</var>, by stripping the leading <code><</code>
-     character and the trailing <code>></code> character and using the
-     rest as the new tag name.
+     descendant of the editing host, rename it (as if the <code
+     title="">Element.renameNode()</code> method had been used) according to
+     the <var title="">value</var>, by stripping the leading
+     <code><</code> character and the trailing <code>></code> character
+     and using the rest as the new tag name, using the HTML namespace.
 
    <dt>If the <var title="">commandId</var> is <dfn id=delete
     title=command-delete><code>delete</code></dfn>
@@ -33458,7 +33464,7 @@
   <p>The output of the tokenisation step is a series of zero or more of the
    following tokens: DOCTYPE, start tag, end tag, comment, character,
    end-of-file. DOCTYPE tokens have names and can be either correct or in
-   error. Start and end tag tokens have a tagname and a list of attributes,
+   error. Start and end tag tokens have a tag name and a list of attributes,
    each of which has a name and a value. Comment and character tokens have
    data.
 

Modified: source
===================================================================
--- source	2007-06-14 01:48:44 UTC (rev 889)
+++ source	2007-06-14 21:52:02 UTC (rev 890)
@@ -2267,17 +2267,22 @@
      <dd>
 
       <p>Append a U+003C LESS-THAN SIGN (<code title=""><</code>)
-      character, followed by the element's tag name (which is all
-      lowercase).</p>
+      character, followed by the element's tag name. (For nodes
+      created by the <span>HTML parser</span>, <code
+      title="">Document.createElement()</code>, or <code
+      title="">Document.renameNode()</code>, the tag name will be
+      lowercase.)</p>
 
       <p>For each attribute that the element has, append a U+0020
-      SPACE character, the attribute's name (which again will be all
-      lowercase), a U+003D EQUALS SIGN (<code title="">=</code>)
-      character, a U+0022 QUOTATION MARK (<code
-      title="">"</code>) character, the attribute's value, <span
-      title="escaping a string">escaped as described below</span>, and
-      a second U+0022 QUOTATION MARK (<code title="">"</code>)
-      character.</p>
+      SPACE character, the attribute's name (which, for attributes set
+      by the <span>HTML parser</span> or by <code
+      title="">Element.setAttributeNode()</code> or <code
+      title="">Element.setAttribute()</code>, will be lowercase), a
+      U+003D EQUALS SIGN (<code title="">=</code>) character, a U+0022
+      QUOTATION MARK (<code title="">"</code>) character, the
+      attribute's value, <span title="escaping a string">escaped as
+      described below</span>, and a second U+0022 QUOTATION MARK
+      (<code title="">"</code>) character.</p>
 
       <p>While the exact order of attributes is UA-defined, and may
       depend on factors such as the order that the attributes were
@@ -2289,28 +2294,25 @@
       <p>Append a U+003E GREATER-THAN SIGN (<code title="">></code>)
       character.</p>
 
-      <p>If the child node is an <code title="">Element</code> with a
-      tag name that is one of <code>area</code>, <code>base</code>,
+      <p>If the child node is an <code>area</code>, <code>base</code>,
       <code>basefont</code>, <code>bgsound</code>, <code>br</code>,
       <code>col</code>, <code>embed</code>, <code>frame</code>,
       <code>hr</code>, <code>img</code>, <code>input</code>,
       <code>link</code>, <code>meta</code>, <code>param</code>,
-      <code>spacer</code>, or <code>wbr</code>, then continue on to
-      the next child node at this point.</p> <!-- also, i guess:
+      <code>spacer</code>, or <code>wbr</code> element, then continue
+      on to the next child node at this point.</p> <!-- also, i guess:
       image, isindex, and keygen, but we don't list those because we
       don't consider those "elements", more "macros", and thus we
       should never serialise them --> <!-- XXX when we get around to
       it, add event-source -->
 
-      <p>Otherwise, append the value of the <var
-      title="">child</var> element's <code
-      title="dom-innerHTML-HTML">innerHTML</code> DOM attribute
-      (thus recursing into this algorithm for that element),
-      followed by a U+003C LESS-THAN SIGN (<code
-      title=""><</code>) character, a U+002F SOLIDUS (<code
-      title="">/</code>) character, the element's tag name again
-      (which is again all lowercase), and finally a U+003E
-      GREATER-THAN SIGN (<code title="">></code>) character.</p>
+      <p>Otherwise, append the value of the <var title="">child</var>
+      element's <code title="dom-innerHTML-HTML">innerHTML</code> DOM
+      attribute (thus recursing into this algorithm for that element),
+      followed by a U+003C LESS-THAN SIGN (<code title=""><</code>)
+      character, a U+002F SOLIDUS (<code title="">/</code>) character,
+      the element's tag name again, and finally a U+003E GREATER-THAN
+      SIGN (<code title="">></code>) character.</p>
 
      </dd>
 
@@ -27701,10 +27703,12 @@
    contains only <span>inline-level content</span> and is not being
    used as a <span title="structured inline-level elements">structured
    inline-level element</span>, and, if that element is a descendant
-   of the editing host, rename it according to the <var
-   title="">value</var>, by stripping the leading <code><</code>
-   character and the trailing <code>></code> character and using
-   the rest as the new tag name.</p></dd>
+   of the editing host, rename it (as if the <code
+   title="">Element.renameNode()</code> method had been used)
+   according to the <var title="">value</var>, by stripping the
+   leading <code><</code> character and the trailing
+   <code>></code> character and using the rest as the new tag
+   name, using the HTML namespace.</p></dd>
 
    <dt>If the <var title="">commandId</var> is <dfn title="command-delete"><code>delete</code></dfn></dt>
 
@@ -31054,7 +31058,7 @@
   <p>The output of the tokenisation step is a series of zero or more
   of the following tokens: DOCTYPE, start tag, end tag, comment,
   character, end-of-file. DOCTYPE tokens have names and can be either
-  correct or in error.  Start and end tag tokens have a tagname and a
+  correct or in error.  Start and end tag tokens have a tag name and a
   list of attributes, each of which has a name and a value. Comment
   and character tokens have data.</p>
 




More information about the Commit-Watchers mailing list