NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 328 - 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.
WF2: Oops, <textarea> parsing wasn't fixed when it should have been. Also, WF...
Status: NEW
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Nobody
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-24 22:01 CET by Henri Sivonen
Modified: 2009-11-23 17:17 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2008-11-24 22:01:02 CET
Index: source
===================================================================
--- source	(revision 2301)
+++ source	(revision 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,41 +54718,38 @@
    <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>
+
+     <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>Append the new element to the <span>current
+     node</span>.</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>
-
-    <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>