[html5] r2302 - [ct] (0) WF2: Oops, <textarea> parsing wasn't fixed when it should have been. Al [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Oct 8 00:51:41 PDT 2008
Author: ianh
Date: 2008-10-08 00:51:40 -0700 (Wed, 08 Oct 2008)
New Revision: 2302
Modified:
index
source
Log:
[ct] (0) WF2: Oops, <textarea> parsing wasn't fixed when it should have been. Also, WF2: textarea.defaultValue should just be a synonym for textarea.textContent, if I'm not mistaken.
Modified: index
===================================================================
--- index 2008-10-08 05:05:19 UTC (rev 2301)
+++ index 2008-10-08 07:51:40 UTC (rev 2302)
@@ -26812,8 +26812,6 @@
</dl><!-- XXX add selectionStart and company --><p>The <code><a href=#the-textarea-element>textarea</a></code> element represents a multiline plain
text edit control for the element's <a href=#concept-fe-value title=concept-fe-value>value</a>.</p>
- <p class=XXX> ... <dfn id=concept-textarea-defaultvalue title=concept-textarea-defaultValue>default value</dfn>
-
<p class=XXX> ... <dfn id=attr-textarea-readonly title=attr-textarea-readonly><code>readonly</code></dfn>
<p class=XXX> ... <dfn id=concept-textarea-mutable title=concept-textarea-mutable>mutable</dfn></p> <!-- !disabled && !readonly -->
@@ -26852,9 +26850,8 @@
attribute must return the value "<code title="">textarea</code>".</p>
<p>The <dfn id=dom-textarea-defaultvalue title=dom-textarea-defaultValue><code>defaultValue</code></dfn>
- DOM attribute must return the element's <a href=#concept-textarea-defaultvalue title=concept-textarea-defaultValue>default value</a>; on
- setting, it must set the element's <a href=#concept-textarea-defaultvalue title=concept-textarea-defaultValue>default value</a> to the
- new value.</p>
+ DOM attribute must act like the element's <code><a href=#textcontent>textContent</a></code>
+ DOM attribute.</p>
<p>The <dfn id=dom-textarea-value title=dom-textarea-value><code>value</code></dfn>
attribute must, on getting, return the element's <a href=#concept-fe-value title=concept-fe-value>value</a>; on setting, it must set the
@@ -46956,7 +46953,8 @@
<code><a href=#script>script</a></code> element as <a href=#already-executed>"already
executed"</a>. (<a href=#fragment-case>fragment case</a>)</li>
- <li><p>Append the new element to the <a href=#current-node>current node</a>.</p>
+ <li><p>Append the new element to the <a href=#current-node>current
+ node</a>.</li>
<li><p>Switch the tokeniser's <a href=#content-model-flag>content model flag</a> to
the CDATA state.</li>
@@ -48092,42 +48090,36 @@
<dt>A start tag whose tag name is "textarea"</dt>
<dd>
- <p><a href=#create-an-element-for-the-token>Create an element for the token</a> in the <a href=#html-namespace-0>HTML
- namespace</a>. Append the new element to the <a href=#current-node>current
- node</a>.</p>
+ <ol><li><p><a href=#insert-an-html-element>Insert an HTML element</a> for the
+ token.</li>
- <p>If the <a href=#form-element-pointer><code title="">form</code> element pointer</a>
- is not null and the newly created element doesn't have a <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute, then <a href=#concept-form-association title=concept-form-association>associate</a> the newly
- created <code><a href=#the-textarea-element>textarea</a></code> element with the <code><a href=#the-form-element>form</a></code>
- element pointed to by the <a href=#form-element-pointer><code title="">form</code> element
- pointer</a>.</p>
+ <li><p>If the <a href=#form-element-pointer><code title="">form</code> element
+ pointer</a> is not null and the newly created element doesn't
+ have a <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute, then
+ <a href=#concept-form-association title=concept-form-association>associate</a> the newly
+ created <code><a href=#the-textarea-element>textarea</a></code> element with the <code><a href=#the-form-element>form</a></code>
+ element pointed to by the <a href=#form-element-pointer><code title="">form</code>
+ element pointer</a>.</li>
- <p>Switch the tokeniser's <a href=#content-model-flag>content model flag</a> to
- the RCDATA state.</p>
+ <li><p>If the next token is a U+000A LINE FEED (LF) character
+ token, then ignore that token and move on to the next
+ one. (Newlines at the start of <code><a href=#the-textarea-element>textarea</a></code> elements are
+ ignored as an authoring convenience.)</li>
- <p>If the next token is a U+000A LINE FEED (LF) character
- token, then ignore that token and move on to the next
- one. (Newlines at the start of <code><a href=#the-textarea-element>textarea</a></code> elements
- are ignored as an authoring convenience.)</p>
+ <li><p>Append the new element to the <a href=#current-node>current
+ node</a>.</li>
- <p>Then, collect all the character tokens that the tokeniser
- returns until it returns a token that is not a character
- token, or until it stops tokenizing.</p>
+ <li><p>Switch the tokeniser's <a href=#content-model-flag>content model flag</a> to
+ the RCDATA state.</li>
- <p>If this process resulted in a collection of character
- tokens, append a single <code>Text</code> node, whose contents
- is the concatenation of all those tokens' characters, to the
- new element node.</p>
+ <li><p>Let the <a href=#original-insertion-mode>original insertion mode</a> be the
+ current <span>insertion mode</span>.</p>
- <p>The tokeniser's <a href=#content-model-flag>content model flag</a> will have
- switched back to the PCDATA state.</p>
+ <li><p>Switch the <span>insertion mode</span> to "<a href=#parsing-main-incdata title="insertion mode: in CDATA/RCDATA">in
+ CDATA/RCDATA</a>".</li>
- <p>If the next token is an end tag token with the tag name
- "textarea", ignore it. Otherwise, this is a <a href=#parse-error>parse
- error</a>.</p>
+ </ol></dd>
- </dd>
-
<dt>A start tag whose tag name is one of: "iframe", "noembed"</dt>
<dt>A start tag whose tag name is "noscript", if the <a href=#scripting-flag>scripting flag</a> is enabled</dt>
<dd>
Modified: source
===================================================================
--- source 2008-10-08 05:05:19 UTC (rev 2301)
+++ source 2008-10-08 07:51:40 UTC (rev 2302)
@@ -30066,8 +30066,6 @@
text edit control for the element's <span
title="concept-fe-value">value</span>.</p>
- <p class="XXX"> ... <dfn title="concept-textarea-defaultValue">default value</dfn>
-
<p class="XXX"> ... <dfn title="attr-textarea-readonly"><code>readonly</code></dfn>
<p class="XXX"> ... <dfn title="concept-textarea-mutable">mutable</dfn></p> <!-- !disabled && !readonly -->
@@ -30115,11 +30113,8 @@
<p>The <dfn
title="dom-textarea-defaultValue"><code>defaultValue</code></dfn>
- DOM attribute must return the element's <span
- title="concept-textarea-defaultValue">default value</span>; on
- setting, it must set the element's <span
- title="concept-textarea-defaultValue">default value</span> to the
- new value.</p>
+ DOM attribute must act like the element's <code>textContent</code>
+ DOM attribute.</p>
<p>The <dfn title="dom-textarea-value"><code>value</code></dfn>
attribute must, on getting, return the element's <span
@@ -53487,7 +53482,8 @@
<code>script</code> element as <span>"already
executed"</span>. (<span>fragment case</span>)</p></li>
- <li><p>Append the new element to the <span>current node</span>.</p>
+ <li><p>Append the new element to the <span>current
+ node</span>.</p></li>
<li><p>Switch the tokeniser's <span>content model flag</span> to
the CDATA state.</p></li>
@@ -54722,42 +54718,39 @@
<dt>A start tag whose tag name is "textarea"</dt>
<dd>
- <p><span>Create an element for the token</span> in the <span>HTML
- namespace</span>. Append the new element to the <span>current
- node</span>.</p>
+ <ol>
- <p>If the <span><code title="">form</code> element pointer</span>
- is not null and the newly created element doesn't have a <code
- title="attr-fae-form">form</code> attribute, then <span
- title="concept-form-association">associate</span> the newly
- created <code>textarea</code> element with the <code>form</code>
- element pointed to by the <span><code title="">form</code> element
- pointer</span>.</p>
+ <li><p><span>Insert an HTML element</span> for the
+ token.</p></li>
- <p>Switch the tokeniser's <span>content model flag</span> to
- the RCDATA state.</p>
+ <li><p>If the <span><code title="">form</code> element
+ pointer</span> is not null and the newly created element doesn't
+ have a <code title="attr-fae-form">form</code> attribute, then
+ <span title="concept-form-association">associate</span> the newly
+ created <code>textarea</code> element with the <code>form</code>
+ element pointed to by the <span><code title="">form</code>
+ element pointer</span>.</p></li>
- <p>If the next token is a U+000A LINE FEED (LF) character
- token, then ignore that token and move on to the next
- one. (Newlines at the start of <code>textarea</code> elements
- are ignored as an authoring convenience.)</p>
+ <li><p>If the next token is a U+000A LINE FEED (LF) character
+ token, then ignore that token and move on to the next
+ one. (Newlines at the start of <code>textarea</code> elements are
+ ignored as an authoring convenience.)</p></li>
- <p>Then, collect all the character tokens that the tokeniser
- returns until it returns a token that is not a character
- token, or until it stops tokenizing.</p>
+ <li><p>Append the new element to the <span>current
+ node</span>.</p></li>
- <p>If this process resulted in a collection of character
- tokens, append a single <code>Text</code> node, whose contents
- is the concatenation of all those tokens' characters, to the
- new element node.</p>
+ <li><p>Switch the tokeniser's <span>content model flag</span> to
+ the RCDATA state.</p></li>
- <p>The tokeniser's <span>content model flag</span> will have
- switched back to the PCDATA state.</p>
+ <li><p>Let the <span>original insertion mode</span> be the
+ current <span>insertion mode</span>.</p>
- <p>If the next token is an end tag token with the tag name
- "textarea", ignore it. Otherwise, this is a <span>parse
- error</span>.</p>
+ <li><p>Switch the <span>insertion mode</span> to "<span
+ title="insertion mode: in CDATA/RCDATA">in
+ CDATA/RCDATA</span>".</p></li>
+ </ol>
+
</dd>
<dt>A start tag whose tag name is one of: "iframe", "noembed"</dt>
More information about the Commit-Watchers
mailing list