HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2314WF2: required='' only applies to mutable text controls; <output> .value, .defaultValue2008-10-10 00:26
@@ -28887,31 +28887,33 @@ function AddCloud(data, x, y) { ... }</pre>
   result is a number greater than zero, then the user agent should
   ensure that at least that many characters are visible.</p>
 
   <p class="XXX">The rendering section will define this in more
   detail.</p>
 
   <p>The <code title="dom-input-size">size</code> DOM attribute
   <span>limited to only positive non-zero numbers</span>.</p>
 
 
+
   <h6>The <code title="attr-input-required">required</code> attribute</h6>
 
   <p>The <dfn title="attr-input-required"><code>required</code></dfn>
   attribute is a <span>boolean attribute</span>. When specified, the
   element is <dfn
   title="concept-input-required"><i>required</i></dfn>.</p>
 
   <p><strong>Constraint validation:</strong> If the element is <i
   title="concept-input-required">required</i>, and its <code
   title="dom-input-value">value</code> DOM attribute applies and is in
   the mode <span title="dom-input-value-value">value</span>, and the
+  element is <i title="concept-input-mutable">mutable</i>, and the
   element's <span title="concept-fe-value">value</span> is the empty
   string, then the element is <span>suffering from being
   missing</span>.</p>
 
 
 
   <h6>The <code title="attr-input-maxlength">maxlength</code> attribute</h6>
 
   <p>The <dfn
   title="attr-input-maxlength"><code>maxlength</code></dfn> attribute,
@@ -30245,35 +30247,35 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
   the <span>codepoint length</span> of the value of the element's
   <code>textContent</code> DOM attribute is equal to or less than the
   element's <span>maximum allowed value length</span>.</p>
 
   <p>The <dfn
   title="attr-textarea-required"><code>required</code></dfn> attribute
   is a <span>boolean attribute</span>.</p>
 
   <p><strong>Constraint validation:</strong> If the element has its
   <code title="attr-textarea-required">required</code> attribute
-  specified, and the element's <span
-  title="concept-fe-value">value</span> is the empty string, then the
-  element is <span>suffering from being missing</span>.</p>
+  specified, and the element is <span
+  title="concept-textarea-mutable">mutable</span>, and the element's
+  <span title="concept-fe-value">value</span> is the empty string,
+  then the element is <span>suffering from being missing</span>.</p>
 
   <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>
   attribute represents the element's name. The <code
   title="attr-fe-disabled">disabled</code> attribute is used to make
   the control non-interactive and to prevent its value from being
   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
+  <p>The <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 <code title="dom-textarea-cols">cols</code> and <code
   title="dom-textarea-rows">rows</code> attributes are <span>limited
   to only positive non-zero numbers</span>. 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.
@@ -30332,30 +30334,88 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
   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>;
 
   readonly attribute boolean <span title="dom-cva-willValidate">willValidate</span>;
   readonly attribute <span>ValidityState</span> <span title="dom-cva-validity">validity</span>;
   readonly attribute DOMString <span title="dom-cva-validationMessage">validationMessage</span>;
   boolean <span title="dom-cva-checkValidatity">checkValidity</span>();
   void <span title="dom-cva-setCustomValidity">setCustomValidity</span>(in DOMString error);
 };</pre>
-   </dd> 
+   </dd>
   </dl>
 
   <p class="XXX">...</p>
 
   <p>The <code title="attr-fae-form">form</code> attribute is used to
   explicitly associate the <code>output</code> element with its
   <span>form owner</span>. The <code title="attr-fe-name">name</code>
   attribute represents the element's name.</p>
 
+  <p>The element has a <dfn 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 <span
+  title="concept-output-mode">value mode flag</span> must be set to <i
+  title="concept-output-mode-default">default</i>.</p>
+
+  <p>When the to <span title="concept-output-mode">value mode
+  flag</span> 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 <span title="concept-output-mode">value mode
+  flag</span> 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">defaultValue</code> DOM
+  attribute.</p>
+
+  <p>The element also has a <dfn
+  title="concept-output-defaultValue">default value</dfn>. Initially,
+  the <span title="concept-output-defaultValue">default value</span>
+  must be the empty string.</p>
+
+  <p>Whenever the element's descendants are changed in any way, if the
+  <span title="concept-output-mode">value mode flag</span> is in mode
+  <i title="concept-output-mode-default">default</i>, the element's
+  <span title="concept-output-defaultValue">default 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 <code>textContent</code> DOM attribute to the value of the
+  element's <code title="dom-output-defaultValue">defaultValue</code>
+  DOM attribute (thus replacing the element's child nodes), and then
+  to set the element's <span title="concept-output-mode">value mode
+  flag</span> to <i
+  title="concept-output-mode-default">default</i>.</p>
+
+  <p>The <dfn title="dom-output-value"><code>value</code></dfn> DOM
+  attribute must act like the element's <code>textContent</code> DOM
+  attribute, except that on setting, in addition, before the child
+  nodes are changed, the element's <span
+  title="concept-output-mode">value mode flag</span> must be set to <i
+  title="concept-output-mode-value">value</i>.</p>
+
+  <p>The <dfn
+  title="dom-output-defaultValue"><code>defaultValue</code></dfn> DOM
+  attribute, on getting, must return the element's <span
+  title="concept-output-defaultValue">default value</span>. On
+  setting, the attribute must set the element's <span
+  title="concept-output-defaultValue">default value</span>, and, if
+  the element's <span title="concept-output-mode">value mode
+  flag</span> is in the mode <i
+  title="concept-output-mode-default">default</i>, set the element's
+  <code>textContent</code> DOM attribute as well.</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>
   attributes, and the <code
   title="dom-cva-checkValidatity">checkValidity()</code> and
   <code
   title="dom-cva-setCustomValidity">setCustomValidity()</code>
   methods, are part of the <span>constraint validation API</span>.</p>
 
   <p><strong>Constraint validation:</strong> <code>output</code>

|