Browse files

[] (0) WF2: editing a <textarea>.

git-svn-id: http://svn.whatwg.org/webapps@2305 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent cdc813b commit 304837a3ea6dd40caca6608d4c890afbc9996dd0 @Hixie Hixie committed Oct 8, 2008
Showing with 62 additions and 16 deletions.
  1. +27 −8 index
  2. +35 −8 source
View
35 index
@@ -26810,28 +26810,47 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
};</pre>
</dd>
</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>
+ text edit control for the element's <a href=#concept-fe-value title=concept-fe-value>value</a>. The contents of the control
+ represent the control's default value.</p>
- <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 -->
+ <p>The <dfn id=attr-textarea-readonly title=attr-textarea-readonly><code>readonly</code></dfn> attribute
+ is a <a href=#boolean-attribute>boolean attribute</a> used to control whether the text
+ can be edited by the user or not.</p>
<p><strong>Constraint validation:</strong> If the <code title=attr-textarea-readonly><a href=#attr-textarea-readonly>readonly</a></code> attribute is
specified on a <code><a href=#the-textarea-element>textarea</a></code> element, the element is
<a href=#barred-from-constraint-validation>barred from constraint validation</a>.</p>
- <p class=XXX> ... <dfn id=attr-textarea-cols title=attr-textarea-cols><code>cols</code></dfn>
- <p class=XXX> ... <dfn id=attr-textarea-rows title=attr-textarea-rows><code>rows</code></dfn>
+ <p>A <code><a href=#the-textarea-element>textarea</a></code> element is <dfn id=concept-textarea-mutable title=concept-textarea-mutable>mutable</dfn> if it is neither
+ <a href=#concept-fe-disabled title=concept-fe-disabled>disabled</a> nor has a <code title=attr-textarea-readonly><a href=#attr-textarea-readonly>readonly</a></code> attribute
+ specified.</p>
- <p class=XXX> ... <dfn id=attr-textarea-wrap title=attr-textarea-wrap><code>wrap</code></dfn>
+ <p>When a <code><a href=#the-textarea-element>textarea</a></code> is <a href=#concept-textarea-mutable title=concept-textarea-mutable>mutable</a>, its <a href=#concept-fe-value title=concept-fe-value>value</a> should be editable by the
+ user.</p>
- <p class=XXX> ... <dfn id=attr-textarea-maxlength title=attr-textarea-maxlength><code>maxlength</code></dfn>
- <p class=XXX> ... <dfn id=attr-textarea-required title=attr-textarea-required><code>required</code></dfn>
+ <p>A <code><a href=#the-textarea-element>textarea</a></code> element has a <dfn id=concept-textarea-dirty title=concept-textarea-dirty>dirty value flag</dfn>, which must be
+ initially set to false, and must be set to true whenever the user
+ interacts with the control in a way that changes the <a href=#concept-fe-value title=concept-fe-value>value</a>.</p>
+
+ <p>When the <code><a href=#the-textarea-element>textarea</a></code> element's <code><a href=#textcontent>textContent</a></code>
+ DOM attribute changes value, if the element's <a href=#concept-textarea-dirty title=concept-textarea-dirty>dirty value flag</a> is false,
+ then the element's <a href=#concept-fe-value title=concept-fe-value>value</a> must
+ be set to the value of the element's <code><a href=#textcontent>textContent</a></code> DOM
+ attribute.</p>
<p>The <a href=#concept-form-reset-control title=concept-form-reset-control>reset
algorithm</a> for <code><a href=#the-textarea-element>textarea</a></code> elements is to set the
element's <a href=#concept-fe-value title=concept-fe-value>value</a> to the value
of the element's <code><a href=#textcontent>textContent</a></code> DOM attribute.</p>
+ <p class=XXX> ... <dfn id=attr-textarea-cols title=attr-textarea-cols><code>cols</code></dfn>
+ <p class=XXX> ... <dfn id=attr-textarea-rows title=attr-textarea-rows><code>rows</code></dfn>
+
+ <p class=XXX> ... <dfn id=attr-textarea-wrap title=attr-textarea-wrap><code>wrap</code></dfn>
+
+ <p class=XXX> ... <dfn id=attr-textarea-maxlength title=attr-textarea-maxlength><code>maxlength</code></dfn>
+ <p class=XXX> ... <dfn id=attr-textarea-required title=attr-textarea-required><code>required</code></dfn>
+
<p class=XXX> ... <dfn id=attr-textarea-accept title=attr-textarea-accept><code>accept</code></dfn>
<p>The <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute is used to
View
43 source
@@ -30064,29 +30064,56 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
<p>The <code>textarea</code> element represents a multiline plain
text edit control for the element's <span
- title="concept-fe-value">value</span>.</p>
+ title="concept-fe-value">value</span>. The contents of the control
+ represent the control's default value.</p>
- <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 -->
+ <p>The <dfn
+ title="attr-textarea-readonly"><code>readonly</code></dfn> attribute
+ is a <span>boolean attribute</span> used to control whether the text
+ can be edited by the user or not.</p>
<p><strong>Constraint validation:</strong> If the <code
title="attr-textarea-readonly">readonly</code> attribute is
specified on a <code>textarea</code> element, the element is
<span>barred from constraint validation</span>.</p>
- <p class="XXX"> ... <dfn title="attr-textarea-cols"><code>cols</code></dfn>
- <p class="XXX"> ... <dfn title="attr-textarea-rows"><code>rows</code></dfn>
+ <p>A <code>textarea</code> element is <dfn
+ title="concept-textarea-mutable">mutable</dfn> if it is neither
+ <span title="concept-fe-disabled">disabled</span> nor has a <code
+ title="attr-textarea-readonly">readonly</code> attribute
+ specified.</p>
- <p class="XXX"> ... <dfn title="attr-textarea-wrap"><code>wrap</code></dfn>
+ <p>When a <code>textarea</code> is <span
+ title="concept-textarea-mutable">mutable</span>, its <span
+ title="concept-fe-value">value</span> should be editable by the
+ user.</p>
- <p class="XXX"> ... <dfn title="attr-textarea-maxlength"><code>maxlength</code></dfn>
- <p class="XXX"> ... <dfn title="attr-textarea-required"><code>required</code></dfn>
+ <p>A <code>textarea</code> element has a <dfn
+ title="concept-textarea-dirty">dirty value flag</dfn>, which must be
+ initially set to false, and must be set to true whenever the user
+ interacts with the control in a way that changes the <span
+ title="concept-fe-value">value</span>.</p>
+
+ <p>When the <code>textarea</code> element's <code>textContent</code>
+ DOM attribute changes value, if the element's <span
+ title="concept-textarea-dirty">dirty value flag</span> is false,
+ then the element's <span title="concept-fe-value">value</span> must
+ be set to the value of the element's <code>textContent</code> DOM
+ attribute.</p>
<p>The <span title="concept-form-reset-control">reset
algorithm</span> for <code>textarea</code> elements is to set the
element's <span title="concept-fe-value">value</span> to the value
of the element's <code>textContent</code> DOM attribute.</p>
+ <p class="XXX"> ... <dfn title="attr-textarea-cols"><code>cols</code></dfn>
+ <p class="XXX"> ... <dfn title="attr-textarea-rows"><code>rows</code></dfn>
+
+ <p class="XXX"> ... <dfn title="attr-textarea-wrap"><code>wrap</code></dfn>
+
+ <p class="XXX"> ... <dfn title="attr-textarea-maxlength"><code>maxlength</code></dfn>
+ <p class="XXX"> ... <dfn title="attr-textarea-required"><code>required</code></dfn>
+
<p class="XXX"> ... <dfn title="attr-textarea-accept"><code>accept</code></dfn>
<p>The <code title="attr-fae-form">form</code> attribute is used to

0 comments on commit 304837a

Please sign in to comment.