HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2280WF2: <button>.2008-10-04 01:21
@@ -26397,21 +26397,22 @@ function AddCloud(data, x, y) { ... }</pre>
   title="attr-input-readonly">readonly</code> attribute can also in
   some cases make an <code>input</code> element <i
   title="concept-input-immutable">immutable</i>.</p>
 
   <p>The <code title="attr-fae-form">form</code> attribute is used to
   explicitly associate the <code>input</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.</p>
+  submitted. The <code title="attr-fe-autofocus">autofocus</code>
+  attribute controls focus.</p>
 
   <p>The <dfn title="dom-input-accept"><code>accept</code></dfn>, <dfn
   title="dom-input-alt"><code>alt</code></dfn>, <dfn
   title="dom-input-autocomplete"><code>autocomplete</code></dfn>, <dfn
   title="dom-input-max"><code>max</code></dfn>, <dfn
   title="dom-input-min"><code>min</code></dfn>, <dfn
   title="dom-input-pattern"><code>pattern</code></dfn>, <dfn
   title="dom-input-required"><code>required</code></dfn>, <dfn
   title="dom-input-size"><code>size</code></dfn>, <dfn
   title="dom-input-src"><code>src</code></dfn>, <dfn
@@ -28085,20 +28086,26 @@ function AddCloud(data, x, y) { ... }</pre>
   <p>If the element is <i title="concept-input-mutable">mutable</i>,
   the user should allow the user to activate the element.</p>
 
   <!-- XXX event timing; activation behavior -->
 
   <p>When the element is activated, if the element has a <span>form
   owner</span>, the element must <span
   title="concept-form-submit">submit</span> the <span>form
   owner</span> from the <code>input</code> element.</p>
 
+  <p>The <code title="attr-fs-action">action</code>, <code
+  title="attr-fs-enctype">enctype</code>, <code
+  title="attr-fs-method">method</code>, and <code
+  title="attr-fs-target">target</code> attributes control the form
+  submission.</p>
+
   <p>The following common <code>input</code> element content
   attributes and DOM attributes apply to the element:
   <code title="attr-fs-action">action</code>,
   <code title="attr-fs-enctype">enctype</code>,
   <code title="attr-fs-method">method</code>, and
   <code title="attr-fs-target">target</code> content attributes;
   <code title="dom-input-value">value</code> DOM attribute.</p>
 
   <p>The <code title="dom-input-value">value</code> DOM attribute is
   in mode <span title="dom-input-value-default">default</span>.</p>
@@ -28265,20 +28272,26 @@ function AddCloud(data, x, y) { ... }</pre>
   coordinate</dfn> must consist of an <var title="">x</var>-component
   and a <var title="">y</var>-component. The <var
   title="">x</var>-component must be greater than or equal to zero,
   and less than or equal to the rendered width, in CSS pixels, of the
   image. The <var title="">y</var>-component must be greater than or
   equal to zero, and less than or equal to the rendered height, in CSS
   pixels, of the image.</p>
 
   <hr>
 
+  <p>The <code title="attr-fs-action">action</code>, <code
+  title="attr-fs-enctype">enctype</code>, <code
+  title="attr-fs-method">method</code>, and <code
+  title="attr-fs-target">target</code> attributes control the form
+  submission.</p>
+
   <p>The following common <code>input</code> element content
   attributes and DOM attributes apply to the element:
   <code title="attr-fs-action">action</code>,
   <code title="attr-input-alt">alt</code>,
   <code title="attr-fs-enctype">enctype</code>,
   <code title="attr-fs-method">method</code>, 
   <code title="attr-input-src">src</code>, and
   <code title="attr-fs-target">target</code> content attributes;
   <code title="dom-input-value">value</code> DOM attribute.</p>
 
@@ -29050,29 +29063,105 @@ function AddCloud(data, x, y) { ... }</pre>
 
   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> 
   </dl>
 
-  <p class="XXX">...</p>
+  <p>The <code>button</code> element represents a button. If the
+  element is not <span title="concept-fe-disabled">disabled</span>,
+  then the user agent should allow the user to activate the
+  button.</p>
+
+  <p>The <dfn title="attr-button-type"><code>type</code></dfn>
+  attribute controls the behavior of the button when it is activated.
+  It is an <span>enumerated attribute</span>. The following table
+  lists the keywords and states for the attribute &mdash; the keywords
+  in the left column map to the states in the cell in the second
+  column on the same row as the keyword.</p>
+
+  <table>
+   <thead>
+    <tr>
+     <th> Keyword
+     <th> State
+     <th> Brief description
+   <tbody>
+    <tr>
+     <td><dfn title="attr-button-type-submit"><code>submit</code></dfn>
+     <td><span title="attr-button-type-submit-state">Submit Button</span>
+     <td>Submits the form.
+    <tr>
+     <td><dfn title="attr-button-type-reset"><code>reset</code></dfn>
+     <td><span title="attr-button-type-reset-state">Reset Button</span>
+     <td>Resets the form.
+    <tr>
+     <td><dfn title="attr-button-type-button"><code>button</code></dfn>
+     <td><span title="attr-button-type-button-state">Button</span>
+     <td>Does nothing.
+  </table>
+
+  <p>The <i>missing value default</i> is the <span
+  title="attr-button-type-submit-state">Submit Button</span>
+  state.</p>
+
+  <p>If the element is not <span
+  title="concept-fe-disabled">disabled</span>, the <span>activation
+  behavior</span> of the <code>button</code> element is to run the
+  steps defined in the following list for the current state of the
+  element's <code title="attr-button-type">type</code> attribute.</p>
+
+  <dl>
+
+   <dt> <dfn title="attr-button-type-submit-state">Submit Button</dfn> </dt>
+
+   <dd><p>If the element has a <span>form owner</span>, the element
+   must <span title="concept-form-submit">submit</span> the <span>form
+   owner</span> from the <code>button</code> element.</p></dd>
+
+   <dt> <dfn title="attr-button-type-reset-state">Reset Button</dfn> </dt>
+
+   <dd><p>If the element has a <span>form owner</span>, the element
+   must <span title="concept-form-reset">reset</span> the <span>form
+   owner</span>.</p></dd>
+
+   <dt> <dfn title="attr-button-type-button-state">Button</dfn>
+
+   <dd><p>Do nothing.</p></dd>
+
+  </dl>
 
   <p>The <code title="attr-fae-form">form</code> attribute is used to
   explicitly associate the <code>button</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.</p>
+  submitted. The <code title="attr-fe-autofocus">autofocus</code>
+  attribute controls focus.
+  The <code title="attr-fs-action">action</code>, <code
+  title="attr-fs-enctype">enctype</code>, <code
+  title="attr-fs-method">method</code>, and <code
+  title="attr-fs-target">target</code> attributes  control
+  the form submission.</p>
+
+  <p>The <dfn title="attr-button-value"><code>value</code></dfn>
+  attribute gives the element's value for the purposes of form
+  submission. The <code title="attr-button-value">value</code>
+  attribute must not be present unless the <code
+  title="attr-fae-form">form</code> attribute is present. The
+  element's <span title="concept-fe-value">value</span> is the value
+  of the element's <code title="attr-button-value">value</code>
+  attribute, if there is one, or the empty string otherwise.</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>
 
@@ -29629,20 +29718,23 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
   <code>fieldset</code> element.)</p>
 
   <p class="XXX">An element <dfn
   title="concept-fv-valid">satisfies its constraints</dfn> if ...</p>
 
   <p class="XXX">... <dfn>suffering from being missing</dfn></p>
 
   <p class="XXX">... <dfn>suffering from a type
   mismatch</dfn></p>
 
+  <p class="XXX">... <dfn>suffering from a pattern
+  mismatch</dfn></p>
+
   <p class="XXX">... <dfn>suffering from being too
   long</dfn></p>
 
   <p class="XXX">... <dfn>suffering from an underflow</dfn></p>
 
   <p class="XXX">... <dfn>suffering from an overflow</dfn></p>
 
   <p class="XXX">... <dfn>suffering from a step
   mismatch</dfn></p>
 

|