HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2163WF2: More things that make form controls not be submitted.2008-09-11 00:25
@@ -23899,31 +23899,36 @@ function AddCloud(data, x, y) { ... }</pre>
   several overlapping (but subtly different) categories in addition to
   the usual ones like <span>flow content</span>, <span>phrasing
   content</span>, and <span>interactive content</span>.</p>
 
   <p>A number of the elements are <dfn title="form-associated
   element">form-associated elements</dfn>, which means they can have a
   <span>form owner</span> and, to expose this, have a <code
   title="attr-fae-form">form</code> content attribute with a matching
   <code title="dom-fae-form">form</code> DOM attribute.</p>
 
-  <p>The controls that end up being submitted back to the server are
-  <dfn title="category-field">field elements</dfn>.</p>
+  <p>The controls that can end up being submitted back to the server
+  are <dfn title="category-field">field elements</dfn>.</p>
 
   <p>The controls that are exposed to the <code
   title="dom-form-elements"><var title="">form</var>.elements</code>
   and <code title="dom-fieldset-elements"><var
   title="">fieldset</var>.elements</code> APIs are <dfn
   title="category-listed-form-element">listed form
   elements</dfn>. This is a superset of the <span
   title="category-field">field elements</span>.</p>
 
+  <p>Some <span title="category-field">field elements</span> can be,
+  depending on their attributes, <dfn
+  title="concept-button">buttons</dfn>. The prose below defines when
+  an element is a button.</p>
+
 
   <h4>The <dfn><code>form</code></dfn> element</h4>
 
   <dl class="element">
    <dt>Categories</dt>
    <dd><span>Flow content</span>.</dd>
    <dt>Contexts in which this element may be used:</dt>
    <dd>Where <span>flow content</span> is expected.</dd>
    <dt>Content model:</dt>
    <dd><span>Flow content</span>, but with no <code>form</code> element descendants.</dd>
@@ -23960,23 +23965,24 @@ function AddCloud(data, x, y) { ... }</pre>
   </dl>
 
   <p class="big-issue">...</p>
 
   <p>The <dfn title="dom-form-elements"><code>elements</code></dfn>
   DOM attribute must return an <code>HTMLFormControlsCollection</code>
   rooted at the <code>Document</code> node, whose filter matches <span
   title="category-listed-form-element">listed form elements</span>
   whose <span>form owner</span> is the <code>form</code> element, with
   the exception of <code>input</code> elements whose <code
-  title="attr-input-type">type</code> attribute is in the <span>Image
-  Button</span> state, which must, for historical reasons, be excluded
-  from this particular collection.</p>
+  title="attr-input-type">type</code> attribute is in the <span
+  title="attr-input-type-image-state">Image Button</span> state, which
+  must, for historical reasons, be excluded from this particular
+  collection.</p>
 
   <p>The <dfn title="dom-form-length"><code>length</code></dfn> DOM
   attribute must return the number of nodes <span title="represented
   by the collection">represented</span> by the <code
   title="dom-form-elements">elements</code> collection.</p>
 
   <!-- XXX7 and XXX8: in IE these are called item and namedItem, but
   they have deep magic involved to resolve name clashes with form
   controls of those names. In other browsers, they are anonymous. -->
 
@@ -24125,20 +24131,22 @@ function AddCloud(data, x, y) { ... }</pre>
   void <span title="dom-input-dispatchChange">dispatchChange</span>();
   void <span title="dom-input-dispatchFormChange">dispatchFormChange</span>();
 };</pre>
    </dd> 
   </dl>
 
   <!-- XXX add selectionStart and company -->
 
   <p class="big-issue">...</p>
 
+  <p class="big-issue">... <dfn title="concept-input-checked">checked</dfn></p>
+
 
   <h4>The <dfn><code>button</code></dfn> element</h4>
 
   <dl class="element">
    <dt>Categories</dt>
    <dd><span>Phrasing content</span>.</dd>
    <dd><span>Interactive content</span>.</dd>
    <dd><span>Form-associated element</span>.</dd>
    <dd><span title="category-field">Field element</span>.</dd>
    <dd><span title="category-listed-form-element">Listed form element</span>.</dd>
@@ -24613,21 +24621,21 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
    title="event-submit">submit</code>, at <var title="">form</var>. If
    the event's default action is prevented (i.e. if the event is
    canceled) then abort these steps. Otherwise, continue (effectively
    the default action is to perform the submission).</p></li>
 
    <li><p>Let <var title="">controls</var> be a list of all the <span
    title="category-field">field elements</span> whose <span>form
    owner</span> is <var title="">form</var>, in <span>tree
    order</span>.</p></li>
 
-   <li><p>Let the <dfn><var>form data set</var></dfn> be a list of
+   <li><p>Let the <var title="">form data set</var> be a list of
    name/value pairs, initially empty.</p></li>
 
    <li>
 
     <p>For each element <var title="">field</var> in <var
     title="">controls</var>, in <span>tree order</span>, run the
     following substeps:</p>
 
     <ol>
 
@@ -24639,31 +24647,56 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
       <ul>
 
        <li>The <var title="">field</var> element has a
        <code>datalist</code> element ancestor.</li>
 
        <li>The <var title="">field</var> element does not have a <code
        title="attr-fe-name">name</code> attribute specified, or its
        <code title="attr-fe-name">name</code> attribute's value is the
        empty string, and it is not an <code>input</code> elements
        whose <code title="attr-input-type">type</code> attribute is in
-       the <span>Image Button</span> state.</li>
+       the <span title="attr-input-type-image-state">Image
+       Button</span> state.</li>
 
        <li>The <var title="">field</var> element is <span
        title="concept-fe-disabled">disabled</span>.</li>
 
-       <li class="big-issue">...</li>
+       <li>The <var title="">field</var> element is a <span
+       title="concept-button">button</span> but it is not <var
+       title="">submitter</var>.</li>
+
+       <li>The <var title="">field</var> element is an
+       <code>input</code> element whose <code
+       title="attr-input-type">type</code> attribute is in the <span
+       title="attr-input-type-checkbox-state">Checkbox</span> state
+       and the control is not <span
+       title="concept-input-checked">checked</span>.</li>
+
+       <li>The <var title="">field</var> element is an
+       <code>input</code> element whose <code
+       title="attr-input-type">type</code> attribute is in the <span
+       title="attr-input-type-radio-state">Radio Button</span> state
+       and the control is not <span
+       title="concept-input-checked">checked</span>.</li>
+
+       <li>The <var title="">field</var> element is an
+       <code>input</code> element whose <code
+       title="attr-input-type">type</code> attribute is in the <span
+       title="attr-input-type-file-state">File Upload</span> state but
+       the control does not have any files selected.</li>
 
       </ul>
 
      </li>
 
+     <li class="big-issue">...</li>
+
     </ol>
 
    </li>
 
    <li><p class="big-issue">...</p></li>
 
   </ol>
 
 
 

|