[html5] r2843 - [e] (0) Flesh out minor point about text nodes. Remove redundant internal note.

whatwg at whatwg.org whatwg at whatwg.org
Thu Feb 19 03:12:21 PST 2009


Author: ianh
Date: 2009-02-19 03:12:21 -0800 (Thu, 19 Feb 2009)
New Revision: 2843

Modified:
   index
   source
Log:
[e] (0) Flesh out minor point about text nodes. Remove redundant internal note.

Modified: index
===================================================================
--- index	2009-02-19 11:04:54 UTC (rev 2842)
+++ index	2009-02-19 11:12:21 UTC (rev 2843)
@@ -29554,14 +29554,14 @@
   methods from DOM Core such as <code title="">createElement()</code>): <dfn id=dom-option title=dom-option><code>Option()</code></dfn>, <dfn id=dom-option-t title=dom-option-t><code>Option(<var title="">text</var>)</code></dfn>, <dfn id=dom-option-tv title=dom-option-tv><code>Option(<var title="">text</var>, <var title="">value</var>)</code></dfn>, <dfn id=dom-option-tvd title=dom-option-tvd><code>Option(<var title="">text</var>, <var title="">value</var>, <var title="">defaultSelected</var>)</code></dfn>, and <dfn id=dom-option-tvds title=dom-option-tvds><code>Option(<var title="">text</var>, <var title="">value</var>, <var title="">defaultSelected</var>, <var title="">selected</var>)</code></dfn>. When invoked as constructors,
   these must return a new <code><a href=#htmloptionelement>HTMLOptionElement</a></code> object (a new
   <code><a href=#the-option-element>option</a></code> element). If the <var title="">text</var>
-  argument is present, the new object must have a text node<!-- XXX
-  clarify that we don't mean a CDATASection? (see dfn of 'text node')
-  --> with the value of that argument as its data as its only
-  child. If the <var title="">value</var> argument is present, the new
-  object must have a <code title=attr-option-value><a href=#attr-option-value>value</a></code>
-  attribute set with the value of the argument as its value. If the
-  <var title="">defaultSelected</var> argument is present and true,
-  the new object must have a <code title=attr-option-selected><a href=#attr-option-selected>selected</a></code> attribute set with no
+  argument is present, the new object must have as its only child a
+  <code>Node</code> with node type <code title="">TEXT_NODE</code> (3)
+  whose data is the value of that argument<!-- we mention TEXT_NODE
+  and all that explicitly here because we redefine "text node" in this
+  spec to also include CDATA sections -->. If the <var title="">value</var> argument is present, the new object must have a
+  <code title=attr-option-value><a href=#attr-option-value>value</a></code> attribute set with the
+  value of the argument as its value. If the <var title="">defaultSelected</var> argument is present and true, the new
+  object must have a <code title=attr-option-selected><a href=#attr-option-selected>selected</a></code> attribute set with no
   value. If the <var title="">selected</var> argument is present and
   true, the new object must have its <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> set to true;
   otherwise the fouth argument is absent or false, and the <a href=#concept-option-selectedness title=concept-option-selectedness>selectedness</a> must be set
@@ -31114,9 +31114,7 @@
   <var title="">form data set</var>. Multiple entries with the same
   name must be treated as distinct fields.</p>
 
-  <!-- XXX define default encoding? -->
 
-
   <h5 id=plain-text-form-data><span class=secno>4.10.15.5 </span>Plain text form data</h5>
 
   <p>The <dfn id=text/plain-encoding-algorithm><code title="">text/plain</code> encoding

Modified: source
===================================================================
--- source	2009-02-19 11:04:54 UTC (rev 2842)
+++ source	2009-02-19 11:12:21 UTC (rev 2843)
@@ -33112,14 +33112,16 @@
   title="">selected</var>)</code></dfn>. When invoked as constructors,
   these must return a new <code>HTMLOptionElement</code> object (a new
   <code>option</code> element). If the <var title="">text</var>
-  argument is present, the new object must have a text node<!-- XXX
-  clarify that we don't mean a CDATASection? (see dfn of 'text node')
-  --> with the value of that argument as its data as its only
-  child. If the <var title="">value</var> argument is present, the new
-  object must have a <code title="attr-option-value">value</code>
-  attribute set with the value of the argument as its value. If the
-  <var title="">defaultSelected</var> argument is present and true,
-  the new object must have a <code
+  argument is present, the new object must have as its only child a
+  <code>Node</code> with node type <code title="">TEXT_NODE</code> (3)
+  whose data is the value of that argument<!-- we mention TEXT_NODE
+  and all that explicitly here because we redefine "text node" in this
+  spec to also include CDATA sections -->. If the <var
+  title="">value</var> argument is present, the new object must have a
+  <code title="attr-option-value">value</code> attribute set with the
+  value of the argument as its value. If the <var
+  title="">defaultSelected</var> argument is present and true, the new
+  object must have a <code
   title="attr-option-selected">selected</code> attribute set with no
   value. If the <var title="">selected</var> argument is present and
   true, the new object must have its <span
@@ -35041,9 +35043,7 @@
   <var title="">form data set</var>. Multiple entries with the same
   name must be treated as distinct fields.</p>
 
-  <!-- XXX define default encoding? -->
 
-
   <h5>Plain text form data</h5>
 
   <p>The <dfn><code title="">text/plain</code> encoding




More information about the Commit-Watchers mailing list