spec/Overview.html 1.1487 2314 WF2: required='' only applies to mutable

WF2: required='' only applies to mutable text controls; <output> .value,
.defaultValue (whatwg r2314)

maxLength
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1487.html#dom-textarea-maxlength
cols
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1487.html#dom-textarea-cols
value
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1487.html#dom-output-value
defaultValue
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1487.html#dom-output-defaultvalue
default value
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1487.html#concept-output-defaultvalue
4.10.4.2.6 The maxlength attribute
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1487.html#the-maxlength-attribute
value mode flag
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1487.html#concept-output-mode
HTMLOutputElement
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1487.html#htmloutputelement
required
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1487.html#attr-textarea-required
required
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1487.html#concept-input-required
4.10.4.2.5 The required attribute
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1487.html#the-required-attribute

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1486&r2=1.1487&f=h
http://html5.org/tools/web-apps-tracker?from=2313&to=2314

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1486
retrieving revision 1.1487
diff -u -d -r1.1486 -r1.1487
--- Overview.html 10 Oct 2008 00:00:37 -0000 1.1486
+++ Overview.html 10 Oct 2008 00:26:05 -0000 1.1487
@@ -21018,6 +21018,7 @@
   attribute is a <a href=#boolean-attribute>boolean attribute</a>. When specified, the
   element is <dfn id=concept-input-required title=concept-input-required><i>required</i></dfn>.<p><strong>Constraint validation:</strong> If the element is <i title=concept-input-required><a href=#concept-input-required>required</a></i>, and its <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute applies and is in
   the mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>, and the
+  element is <i title=concept-input-mutable><a href=#concept-input-mutable>mutable</a></i>, and the
   element's <a href=#concept-fe-value title=concept-fe-value>value</a> is the empty
   string, then the element is <a href=#suffering-from-being-missing>suffering from being
   missing</a>.<h6 id=the-maxlength-attribute><span class=secno>4.10.4.2.6 </span>The <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code> attribute</h6><p>The <dfn id=attr-input-maxlength title=attr-input-maxlength><code>maxlength</code></dfn> attribute,
@@ -21797,15 +21798,15 @@
   element's <a href=#maximum-allowed-value-length>maximum allowed value length</a>.<p>The <dfn id=attr-textarea-required title=attr-textarea-required><code>required</code></dfn> attribute
   is a <a href=#boolean-attribute>boolean attribute</a>.<p><strong>Constraint validation:</strong> If the element has its
   <code title=attr-textarea-required><a href=#attr-textarea-required>required</a></code> attribute
-  specified, and the element's <a href=#concept-fe-value title=concept-fe-value>value</a> is the empty string, then the
-  element is <a href=#suffering-from-being-missing>suffering from being missing</a>.<p>The <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute is used to
+  specified, and the element is <a href=#concept-textarea-mutable title=concept-textarea-mutable>mutable</a>, and the element's
+  <a href=#concept-fe-value title=concept-fe-value>value</a> is the empty string,
+  then the element is <a href=#suffering-from-being-missing>suffering from being missing</a>.<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>
   attribute represents the element's name. The <code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code> attribute is used to make
   the control non-interactive and to prevent its value from being
   submitted. The <code title=attr-fe-autofocus><a href=#attr-fe-autofocus>autofocus</a></code>
-  attribute controls focus.<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
+  attribute controls focus.<p>The <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 <code title=dom-textarea-cols><a href=#dom-textarea-cols>cols</a></code> and <code title=dom-textarea-rows><a href=#dom-textarea-rows>rows</a></code> attributes are <a href=#limited-to-only-positive-non-zero-numbers>limited
   to only positive non-zero numbers</a>. The <dfn id=dom-textarea-maxlength title=dom-textarea-maxLength><code>maxLength</code></dfn> DOM
@@ -21841,8 +21842,8 @@
            attribute DOMString <a href=#dom-fe-name title=dom-fe-name>name</a>;
 
   readonly attribute DOMString <span title=dom-output-type>type</span>;
-           attribute DOMString <span title=dom-output-defaultValue>defaultValue</span>;
-           attribute DOMString <span title=dom-output-value>value</span>;
+           attribute DOMString <a href=#dom-output-defaultvalue title=dom-output-defaultValue>defaultValue</a>;
+           attribute DOMString <a href=#dom-output-value title=dom-output-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>;
@@ -21850,11 +21851,40 @@
   boolean <a href=#dom-cva-checkvalidatity title=dom-cva-checkValidatity>checkValidity</a>();
   void <a href=#dom-cva-setcustomvalidity title=dom-cva-setCustomValidity>setCustomValidity</a>(in DOMString error);
 };</pre>
-   </dd> 
+   </dd>
   </dl><p class=XXX>...<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-output-element>output</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>
-  attribute represents the element's name.<p>The <code title=dom-cva-willValidate><a href=#dom-cva-willvalidate>willValidate</a></code>,
+  attribute represents the element's name.<p>The element has a <dfn id=concept-output-mode title=concept-output-mode>value mode
+  flag</dfn> which is either <i title=concept-output-mode-value>value</i> or <i title=concept-output-mode-default>default</i>. Initially the <a href=#concept-output-mode title=concept-output-mode>value mode flag</a> must be set to <i title=concept-output-mode-default>default</i>.<p>When the to <a href=#concept-output-mode title=concept-output-mode>value mode
+  flag</a> is in mode <i title=concept-output-mode-default>default</i>, the contents of the
+  element represent both the value of the element and its default
+  value. When the <a href=#concept-output-mode title=concept-output-mode>value mode
+  flag</a> is in mode <i title=concept-output-mode-value>value</i>, the contents of the
+  element represent the value of the element only, and the default
+  value is only accessible using the <code title=dom-output-defaultValue><a href=#dom-output-defaultvalue>defaultValue</a></code> DOM
+  attribute.<p>The element also has a <dfn id=concept-output-defaultvalue title=concept-output-defaultValue>default value</dfn>. Initially,
+  the <a href=#concept-output-defaultvalue title=concept-output-defaultValue>default value</a>
+  must be the empty string.<p>Whenever the element's descendants are changed in any way, if the
+  <a href=#concept-output-mode title=concept-output-mode>value mode flag</a> is in mode
+  <i title=concept-output-mode-default>default</i>, the element's
+  <a href=#concept-output-defaultvalue title=concept-output-defaultValue>default value</a> must
+  be set to the value of the element's <code><a href=#textcontent>textContent</a></code> DOM
+  attribute.<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 <code><a href=#textcontent>textContent</a></code> DOM attribute to the value of the
+  element's <code title=dom-output-defaultValue><a href=#dom-output-defaultvalue>defaultValue</a></code>
+  DOM attribute (thus replacing the element's child nodes), and then
+  to set the element's <a href=#concept-output-mode title=concept-output-mode>value mode
+  flag</a> to <i title=concept-output-mode-default>default</i>.<p>The <dfn id=dom-output-value title=dom-output-value><code>value</code></dfn> DOM
+  attribute must act like the element's <code><a href=#textcontent>textContent</a></code> DOM
+  attribute, except that on setting, in addition, before the child
+  nodes are changed, the element's <a href=#concept-output-mode title=concept-output-mode>value mode flag</a> must be set to <i title=concept-output-mode-value>value</i>.<p>The <dfn id=dom-output-defaultvalue title=dom-output-defaultValue><code>defaultValue</code></dfn> DOM
+  attribute, on getting, must return the element's <a href=#concept-output-defaultvalue title=concept-output-defaultValue>default value</a>. On
+  setting, the attribute must set the element's <a href=#concept-output-defaultvalue title=concept-output-defaultValue>default value</a>, and, if
+  the element's <a href=#concept-output-mode title=concept-output-mode>value mode
+  flag</a> is in the mode <i title=concept-output-mode-default>default</i>, set the element's
+  <code><a href=#textcontent>textContent</a></code> DOM attribute as well.<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>

Received on Friday, 10 October 2008 00:30:04 UTC