- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 19 Feb 2009 11:12:28 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv10996
Modified Files:
Overview.html
Log Message:
Flesh out minor point about text nodes. Remove redundant internal note. (whatwg r2843)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2013
retrieving revision 1.2014
diff -u -d -r1.2013 -r1.2014
--- Overview.html 19 Feb 2009 11:04:59 -0000 1.2013
+++ Overview.html 19 Feb 2009 11:12:26 -0000 1.2014
@@ -24091,14 +24091,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
@@ -25361,7 +25361,7 @@
<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>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><!-- 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
+ name must be treated as distinct fields.<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
algorithm</dfn> is as follows:<ol><li><p>Let <var title="">result</var> be the empty string.</li>
<li>
Received on Thursday, 19 February 2009 11:12:38 UTC