[html5] r2301 - [] (0) Set up the infrastructure for <textarea>.

whatwg at whatwg.org whatwg at whatwg.org
Tue Oct 7 22:05:20 PDT 2008


Author: ianh
Date: 2008-10-07 22:05:19 -0700 (Tue, 07 Oct 2008)
New Revision: 2301

Modified:
   index
   source
Log:
[] (0) Set up the infrastructure for <textarea>.

Modified: index
===================================================================
--- index	2008-10-08 00:49:38 UTC (rev 2300)
+++ index	2008-10-08 05:05:19 UTC (rev 2301)
@@ -26770,37 +26770,35 @@
    <dt>Content model:</dt>
    <dd>Text.</dd>
    <dt>Element-specific attributes:</dt>
-   <dd><code title=attr-textarea-accept>accept</code></dd>
+   <dd><code title=attr-textarea-accept><a href=#attr-textarea-accept>accept</a></code></dd>
    <dd><code title=attr-fe-autofocus><a href=#attr-fe-autofocus>autofocus</a></code></dd>
-   <dd><code title=attr-textarea-cols>cols</code></dd>
+   <dd><code title=attr-textarea-cols><a href=#attr-textarea-cols>cols</a></code></dd>
    <dd><code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code></dd>
    <dd><code title=attr-fae-form><a href=#attr-fae-form>form</a></code></dd>
-   <dd><code title=attr-textarea-maxlength>maxlength</code></dd>
+   <dd><code title=attr-textarea-maxlength><a href=#attr-textarea-maxlength>maxlength</a></code></dd>
    <dd><code title=attr-fe-name><a href=#attr-fe-name>name</a></code></dd>
-   <dd><code title=attr-textarea-pattern>pattern</code></dd>
-   <dd><code title=attr-textarea-readonly>readonly</code></dd>
-   <dd><code title=attr-textarea-required>required</code></dd>
-   <dd><code title=attr-textarea-rows>rows</code></dd>
-   <dd><code title=attr-textarea-wrap>wrap</code></dd>
+   <dd><code title=attr-textarea-readonly><a href=#attr-textarea-readonly>readonly</a></code></dd>
+   <dd><code title=attr-textarea-required><a href=#attr-textarea-required>required</a></code></dd>
+   <dd><code title=attr-textarea-rows><a href=#attr-textarea-rows>rows</a></code></dd>
+   <dd><code title=attr-textarea-wrap><a href=#attr-textarea-wrap>wrap</a></code></dd>
    <dt>DOM interface:</dt>
    <dd>
 <pre class=idl>interface <dfn id=htmltextareaelement>HTMLTextAreaElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
-           attribute DOMString <span title=dom-textarea-accept>accept</span>;
+           attribute DOMString <a href=#dom-textarea-accept title=dom-textarea-accept>accept</a>;
            attribute boolean <a href=#dom-fe-autofocus title=dom-fe-autofocus>autofocus</a>;
-           attribute unsigned long <span title=dom-textarea-cols>cols</span>;
+           attribute unsigned long <a href=#dom-textarea-cols title=dom-textarea-cols>cols</a>;
            attribute boolean <a href=#dom-fe-disabled title=dom-fe-disabled>disabled</a>;
   readonly attribute <a href=#htmlformelement>HTMLFormElement</a> <a href=#dom-fae-form title=dom-fae-form>form</a>;
-           attribute long <span title=dom-textarea-maxLength>maxLength</span>;
+           attribute long <a href=#dom-textarea-maxlength title=dom-textarea-maxLength>maxLength</a>;
            attribute DOMString <a href=#dom-fe-name title=dom-fe-name>name</a>;
-           attribute DOMString <span title=dom-textarea-pattern>pattern</span>;
-           attribute boolean <span title=dom-textarea-readOnly>readOnly</span>;
-           attribute boolean <span title=dom-textarea-required>required</span>;
-           attribute unsigned long <span title=dom-textarea-rows>rows</span>;
-           attribute DOMString <span title=dom-textarea-wrap>wrap</span>;
+           attribute boolean <a href=#dom-textarea-readonly title=dom-textarea-readOnly>readOnly</a>;
+           attribute boolean <a href=#dom-textarea-required title=dom-textarea-required>required</a>;
+           attribute unsigned long <a href=#dom-textarea-rows title=dom-textarea-rows>rows</a>;
+           attribute DOMString <a href=#dom-textarea-wrap title=dom-textarea-wrap>wrap</a>;
 
-  readonly attribute DOMString <span title=dom-textarea-type>type</span>;
-           attribute DOMString <span title=dom-textarea-defaultValue>defaultValue</span>;
-           attribute DOMString <span title=dom-textarea-value>value</span>;
+  readonly attribute DOMString <a href=#dom-textarea-type title=dom-textarea-type>type</a>;
+           attribute DOMString <a href=#dom-textarea-defaultvalue title=dom-textarea-defaultValue>defaultValue</a>;
+           attribute DOMString <a href=#dom-textarea-value title=dom-textarea-value>value</a>;
 
   readonly attribute boolean <a href=#dom-cva-willvalidate title=dom-cva-willValidate>willValidate</a>;
   readonly attribute <span>ValidityState</span> <a href=#dom-cva-validity title=dom-cva-validity>validity</a>;
@@ -26811,8 +26809,28 @@
   readonly attribute <span>NodeList</span> <a href=#dom-lfe-labels title=dom-lfe-labels>labels</a>;
 };</pre>
    </dd> 
-  </dl><!-- XXX add selectionStart and company --><p class=XXX>...</p>
+  </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 -->
+
+  <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-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 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>The <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute is used to
   explicitly associate the <code><a href=#the-textarea-element>textarea</a></code> element with its
   <a href=#form-owner>form owner</a>. The <code title=attr-fe-name><a href=#attr-fe-name>name</a></code>
@@ -26821,18 +26839,36 @@
   submitted. The <code title=attr-fe-autofocus><a href=#attr-fe-autofocus>autofocus</a></code>
   attribute controls focus.</p>
 
+  <p>The <dfn id=dom-textarea-accept title=dom-textarea-accept><code>accept</code></dfn>,
+  <dfn id=dom-textarea-cols title=dom-textarea-cols><code>cols</code></dfn>, <dfn id=dom-textarea-required title=dom-textarea-required><code>required</code></dfn>, <dfn id=dom-textarea-rows title=dom-textarea-rows><code>rows</code></dfn>, and <dfn id=dom-textarea-wrap title=dom-textarea-wrap><code>wrap</code></dfn> attributes must
+  <a href=#reflect>reflect</a> the respective content attributes of the same
+  name. The <dfn id=dom-textarea-maxlength title=dom-textarea-maxLength><code>maxLength</code></dfn> DOM
+  attribute must <a href=#reflect>reflect</a> the <code title=attr-textarea-maxlength><a href=#attr-textarea-maxlength>maxlength</a></code> content attribute.
+  The <dfn id=dom-textarea-readonly title=dom-textarea-readOnly><code>readOnly</code></dfn>
+  DOM attribute must <a href=#reflect>reflect</a> the <code title=attr-textarea-readonly><a href=#attr-textarea-readonly>readonly</a></code> content
+  attribute.</p>
+
+  <p>The <dfn id=dom-textarea-type title=dom-textarea-type><code>type</code></dfn> DOM
+  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>
+
+  <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
+  element's <a href=#concept-fe-value title=concept-fe-value>value</a> to the new
+  value.</p>
+
   <p>The <code title=dom-cva-willValidate><a href=#dom-cva-willvalidate>willValidate</a></code>, <code title=dom-cva-validity><a href=#dom-cva-validity>validity</a></code>, and <code title=dom-cva-validationMessage><a href=#dom-cva-validationmessage>validationMessage</a></code>
   attributes, and the <code title=dom-cva-checkValidatity><a href=#dom-cva-checkvalidatity>checkValidity()</a></code> and <code title=dom-cva-setCustomValidity><a href=#dom-cva-setcustomvalidity>setCustomValidity()</a></code>
   methods, are part of the <a href=#the-constraint-validation-api>constraint validation API</a>. The
   <code title=dom-lfe-labels><a href=#dom-lfe-labels>labels</a></code> attribute provides a list
   of the element's <code><a href=#the-label-element>label</a></code>s.</p>
 
-  <p><strong>Constraint validation:</strong> If the <code title=attr-textarea-readonly>readonly</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>
 
 
-
   <h4 id=the-output-element><span class=secno>4.10.11 </span>The <dfn><code>output</code></dfn> element</h4>
 
   <dl class=element><dt>Categories</dt>
@@ -39554,8 +39590,8 @@
    attribute; for <code><a href=#the-select-element>select</a></code> elements it means updating the
    <code><a href=#the-option-element>option</a></code> elements' <code title=dom-option-defaultSelected><a href=#dom-option-defaultselected>defaultSelected</a></code> DOM
    attribute as well as the <code title=dom-option-selected><a href=#dom-option-selected>selected</a></code> DOM attribute; for
-   <code><a href=#the-textarea-element>textarea</a></code> elements this means updating the <code title=dom-textarea-defaultValue>defaultValue</code> DOM attribute
-   as well as the <code title=dom-textarea-value>value</code> DOM
+   <code><a href=#the-textarea-element>textarea</a></code> elements this means updating the <code title=dom-textarea-defaultValue><a href=#dom-textarea-defaultvalue>defaultValue</a></code> DOM attribute
+   as well as the <code title=dom-textarea-value><a href=#dom-textarea-value>value</a></code> DOM
    attribute. (Updating the <code title="">default*</code> DOM
    attributes causes content attributes to be updated as well.)</dd>
 

Modified: source
===================================================================
--- source	2008-10-08 00:49:38 UTC (rev 2300)
+++ source	2008-10-08 05:05:19 UTC (rev 2301)
@@ -30026,7 +30026,6 @@
    <dd><code title="attr-fae-form">form</code></dd>
    <dd><code title="attr-textarea-maxlength">maxlength</code></dd>
    <dd><code title="attr-fe-name">name</code></dd>
-   <dd><code title="attr-textarea-pattern">pattern</code></dd>
    <dd><code title="attr-textarea-readonly">readonly</code></dd>
    <dd><code title="attr-textarea-required">required</code></dd>
    <dd><code title="attr-textarea-rows">rows</code></dd>
@@ -30041,7 +30040,6 @@
   readonly attribute <span>HTMLFormElement</span> <span title="dom-fae-form">form</span>;
            attribute long <span title="dom-textarea-maxLength">maxLength</span>;
            attribute DOMString <span title="dom-fe-name">name</span>;
-           attribute DOMString <span title="dom-textarea-pattern">pattern</span>;
            attribute boolean <span title="dom-textarea-readOnly">readOnly</span>;
            attribute boolean <span title="dom-textarea-required">required</span>;
            attribute unsigned long <span title="dom-textarea-rows">rows</span>;
@@ -30064,8 +30062,30 @@
 
   <!-- XXX add selectionStart and company -->
 
-  <p class="XXX">...</p>
+  <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>
 
+  <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 -->
+
+  <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-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 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>The <code title="attr-fae-form">form</code> attribute is used to
   explicitly associate the <code>textarea</code> element with its
   <span>form owner</span>. The <code title="attr-fe-name">name</code>
@@ -30075,6 +30095,38 @@
   submitted. The <code title="attr-fe-autofocus">autofocus</code>
   attribute controls focus.</p>
 
+  <p>The <dfn title="dom-textarea-accept"><code>accept</code></dfn>,
+  <dfn title="dom-textarea-cols"><code>cols</code></dfn>, <dfn
+  title="dom-textarea-required"><code>required</code></dfn>, <dfn
+  title="dom-textarea-rows"><code>rows</code></dfn>, and <dfn
+  title="dom-textarea-wrap"><code>wrap</code></dfn> attributes must
+  <span>reflect</span> the respective content attributes of the same
+  name. The <dfn
+  title="dom-textarea-maxLength"><code>maxLength</code></dfn> DOM
+  attribute must <span>reflect</span> the <code
+  title="attr-textarea-maxlength">maxlength</code> content attribute.
+  The <dfn title="dom-textarea-readOnly"><code>readOnly</code></dfn>
+  DOM attribute must <span>reflect</span> the <code
+  title="attr-textarea-readonly">readonly</code> content
+  attribute.</p>
+
+  <p>The <dfn title="dom-textarea-type"><code>type</code></dfn> DOM
+  attribute must return the value "<code title="">textarea</code>".</p>
+
+  <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>
+
+  <p>The <dfn title="dom-textarea-value"><code>value</code></dfn>
+  attribute must, on getting, return the element's <span
+  title="concept-fe-value">value</span>; on setting, it must set the
+  element's <span title="concept-fe-value">value</span> to the new
+  value.</p>
+
   <p>The <code title="dom-cva-willValidate">willValidate</code>, <code
   title="dom-cva-validity">validity</code>, and <code
   title="dom-cva-validationMessage">validationMessage</code>
@@ -30085,13 +30137,8 @@
   <code title="dom-lfe-labels">labels</code> attribute provides a list
   of the element's <code>label</code>s.</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>
 
 
-
   <h4>The <dfn><code>output</code></dfn> element</h4>
 
   <dl class="element">




More information about the Commit-Watchers mailing list