spec/Overview.html 1.1334 2161 WF2: Categorise form elements; redefine

WF2: Categorise form elements; redefine form.elements; define
fieldset.elements; add more steps to form submission (still a work in
progress) (whatwg r2161)

DOCTYPE legacy string
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#doctype6
input
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#input0
HTMLFieldSetElement
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#htmlfieldsetelement
8.1.2 Elements
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#elements1
elements
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#elements3
elements
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#elements4
elements
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#elements5
select
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#select
4.9.1 The form element
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#the-form
Tags
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#tags
4.9 Forms
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#forms
field
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#field
form owner
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#form-owner
listed form element
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#listed
4.9.13 Processing models
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#processing1
8.1 Writing HTML documents
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#writing0
fieldset
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#fieldset
form
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#form
empty data cell
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#empty0
If form is in a Document that has no associated browsing context or whose browsing context has its sandboxed forms browsing context flag set, then abort these steps without doing anything.
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#sandboxSubmitBlocked
4.9.12 Association of controls and forms
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#association
textarea
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#textarea
4.9.13.1. Constraint validation
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#constraint
button
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#button
4.9.3 The input element
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#the-input
length
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#length6
form
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#form1
output
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#output
form-associated elements
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1334.html#form-associated

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1333&r2=1.1334&f=h
http://html5.org/tools/web-apps-tracker?from=2160&to=2161

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1333
retrieving revision 1.1334
diff -u -d -r1.1333 -r1.1334
--- Overview.html 8 Sep 2008 23:49:50 -0000 1.1333
+++ Overview.html 10 Sep 2008 10:41:51 -0000 1.1334
@@ -27,7 +27,7 @@
     for HTML and XHTML</h2>
 
    <h2 class="no-num no-toc" id=editors0><!-- "W3C Working Draft" -->
-    Editor's Draft <!--ZZZ--> 8 September 2008</h2>
+    Editor's Draft <!--ZZZ-->10 September 2008</h2>
 
    <dl><!-- ZZZ: update the month/day
     <dt>This Version:</dt>
@@ -199,7 +199,7 @@
 
   <p>The W3C <a href="http://www.w3.org/html/wg/">HTML Working Group</a> is
    the W3C working group responsible for this specification's progress along
-   the W3C Recommendation track. <!--ZZZ:--> This specification is the 8
+   the W3C Recommendation track. <!--ZZZ:--> This specification is the 10
    September 2008 <!--ZZZ "Working Draft"-->Editor's Draft. <!--:ZZZ--></p>
   <!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST -->
   <!-- relationship to other work (required) -->
@@ -1071,7 +1071,7 @@
         models</a>
         <ul class=toc>
          <li><a href="#constraint"><span class=secno>4.9.13.1.
-          </span>Constraint checking</a>
+          </span>Constraint validation</a>
 
          <li><a href="#form-submission"><span class=secno>4.9.13.2.
           </span>Form submission</a>
@@ -26510,6 +26510,34 @@
 
   <h3 id=forms><span class=secno>4.9 </span>Forms</h3>
 
+  <p>Forms allow unscripted client-server interaction: given a form, a user
+   can provide data, submit it to the server, and have the server act on it
+   accordingly (e.g. returning the results of a search or calculation). The
+   elements used in forms can also be used for user interaction with no
+   associated submission mechanism, in conjunction with scripts.
+
+  <p>Mostly for historical reasons, elements in this section fall into
+   several overlapping (but subtly different) categories in addition to the
+   usual ones like <a href="#flow-content0">flow content</a>, <a
+   href="#phrasing0">phrasing content</a>, and <a
+   href="#interactive1">interactive content</a>.
+
+  <p>A number of the elements are <dfn id=form-associated
+   title="form-associated element">form-associated elements</dfn>, which
+   means they can have a <a href="#form-owner">form owner</a> and, to expose
+   this, have a <code title=attr-fae-form><a href="#form0">form</a></code>
+   content attribute with a matching <code title=dom-fae-form><a
+   href="#form1">form</a></code> DOM attribute.
+
+  <p>The controls that end up being submitted back to the server are in the
+   <dfn id=field title=category-field>field</dfn> category.
+
+  <p>The controls that are exposed to the <code title=dom-form-elements><a
+   href="#elements3"><var title="">form</var>.elements</a></code> and <code
+   title=dom-fieldset-elements><a href="#elements4"><var
+   title="">fieldset</var>.elements</a></code> APIs are in the <dfn id=listed
+   title=category-listed-form-element>listed form element</dfn> category.
+
   <h4 id=the-form><span class=secno>4.9.1 </span>The <dfn
    id=form><code>form</code></dfn> element</h4>
 
@@ -26573,18 +26601,14 @@
    title=dom-form-elements><code>elements</code></dfn> DOM attribute must
    return an <code><a
    href="#htmlformcontrolscollection0">HTMLFormControlsCollection</a></code>
-   rooted at the <code>Document</code> node, whose filter matches <code><a
-   href="#input0">input</a></code>, <code><a
-   href="#output">output</a></code>, <code><a
-   href="#select">select</a></code>, <code><a
-   href="#textarea">textarea</a></code>, <code><a
-   href="#button">button</a></code>, and <code><a
-   href="#fieldset">fieldset</a></code> elements whose <a
-   href="#form-owner">form owner</a> is the <code><a
+   rooted at the <code>Document</code> node, whose filter matches <a
+   href="#listed" title=category-listed-form-element>listed form elements</a>
+   whose <a href="#form-owner">form owner</a> is the <code><a
    href="#form">form</a></code> element, with the exception of <code><a
    href="#input0">input</a></code> elements whose <code
    title=attr-input-type>type</code> attribute is in the <span>Image
-   Button</span> state.
+   Button</span> state, which must, for historical reasons, be excluded from
+   this particular collection.
 
   <p>The <dfn id=length6 title=dom-form-length><code>length</code></dfn> DOM
    attribute must return the number of nodes <a href="#represents"
@@ -26619,6 +26643,9 @@
 
    <dd><a href="#form-associated">Form-associated element</a>.
 
+   <dd><a href="#listed" title=category-listed-form-element>Listed form
+    element</a>.
+
    <dt>Contexts in which this element may be used:
 
    <dd>Where <a href="#flow-content0">flow content</a> is expected.
@@ -26643,7 +26670,7 @@
 
   readonly attribute DOMString <span title=dom-select-type>type</span>;
 
-  readonly attribute <a href="#htmlformcontrolscollection0">HTMLFormControlsCollection</a> <span title=dom-fieldset-elements>elements</span>;
+  readonly attribute <a href="#htmlformcontrolscollection0">HTMLFormControlsCollection</a> <a href="#elements4" title=dom-fieldset-elements>elements</a>;
 
   readonly attribute boolean <span title=dom-fieldset-willValidate>willValidate</span>;
   readonly attribute <span>ValidityState</span> <span title=dom-fieldset-validity>validity</span>;
@@ -26655,6 +26682,15 @@
 
   <p class=big-issue>...
 
+  <p>The <dfn id=elements4
+   title=dom-fieldset-elements><code>elements</code></dfn> DOM attribute must
+   return an <code><a
+   href="#htmlformcontrolscollection0">HTMLFormControlsCollection</a></code>
+   rooted at the <code>Document</code> node, whose filter matches <a
+   href="#listed" title=category-listed-form-element>listed form elements</a>
+   that are descendants of the <code><a href="#fieldset">fieldset</a></code>
+   element.
+
   <h4 id=the-input><span class=secno>4.9.3 </span>The <dfn
    id=input0><code>input</code></dfn> element</h4>
 
@@ -26667,6 +26703,11 @@
 
    <dd><a href="#form-associated">Form-associated element</a>.
 
+   <dd><a href="#field" title=category-field>Field</a>.
+
+   <dd><a href="#listed" title=category-listed-form-element>Listed form
+    element</a>.
+
    <dt>Contexts in which this element may be used:
 
    <dd>Where <a href="#phrasing0">phrasing content</a> is expected.
@@ -26794,6 +26835,11 @@
 
    <dd><a href="#form-associated">Form-associated element</a>.
 
+   <dd><a href="#field" title=category-field>Field</a>.
+
+   <dd><a href="#listed" title=category-listed-form-element>Listed form
+    element</a>.
+
    <dt>Contexts in which this element may be used:
 
    <dd>Where <a href="#phrasing0">phrasing content</a> is expected.
@@ -26903,6 +26949,11 @@
 
    <dd><a href="#form-associated">Form-associated element</a>.
 
+   <dd><a href="#field" title=category-field>Field</a>.
+
+   <dd><a href="#listed" title=category-listed-form-element>Listed form
+    element</a>.
+
    <dt>Contexts in which this element may be used:
 
    <dd>Where <a href="#phrasing0">phrasing content</a> is expected.
@@ -27106,6 +27157,11 @@
 
    <dd><a href="#form-associated">Form-associated element</a>.
 
+   <dd><a href="#field" title=category-field>Field</a>.
+
+   <dd><a href="#listed" title=category-listed-form-element>Listed form
+    element</a>.
+
    <dt>Contexts in which this element may be used:
 
    <dd>Where <a href="#phrasing0">phrasing content</a> is expected.
@@ -27191,6 +27247,9 @@
 
    <dd><a href="#form-associated">Form-associated element</a>.
 
+   <dd><a href="#listed" title=category-listed-form-element>Listed form
+    element</a>.
+
    <dt>Contexts in which this element may be used:
 
    <dd>Where <a href="#phrasing0">phrasing content</a> is expected.
@@ -27234,9 +27293,12 @@
    and forms</h4>
   <!-- XXX consider xreffing the 'ID' term in this section -->
 
-  <p>A <dfn id=form-associated>form-associated element</dfn> is one that can
-   have a relationship with a <code><a href="#form">form</a></code> element,
-   which is called the element's <dfn id=form-owner>form owner</dfn>.
+  <p>A <a href="#form-associated">form-associated element</a> can have a
+   relationship with a <code><a href="#form">form</a></code> element, which
+   is called the element's <dfn id=form-owner>form owner</dfn>. If a <a
+   href="#form-associated">form-associated element</a> is not associated with
+   a <code><a href="#form">form</a></code> element, its <a
+   href="#form-owner">form owner</a> is said to be null.
 
   <p>A <a href="#form-associated">form-associated element</a> is, by default,
    associated with its nearest ancestor <code><a href="#form">form</a></code>
@@ -27330,7 +27392,7 @@
 
   <h4 id=processing1><span class=secno>4.9.13 </span>Processing models</h4>
 
-  <h5 id=constraint><span class=secno>4.9.13.1. </span>Constraint checking</h5>
+  <h5 id=constraint><span class=secno>4.9.13.1. </span>Constraint validation</h5>
 
   <p class=big-issue>...
 
@@ -27350,6 +27412,28 @@
      abort these steps without doing anything.
 
    <li>
+    <p>If the <var title="">submitter</var> is anything but a <code><a
+     href="#form">form</a></code> element, then <span>validate the
+     constraints</span> of <var title="">form</var> and examine the result:
+     if the result is negative (the constraint validation concluded that
+     there were invalid fields and informed the user of this) then abort
+     these steps.
+
+   <li>
+    <p>If the <var title="">submitter</var> is anything but a <code><a
+     href="#form">form</a></code> element, then <a href="#firing2">fire a
+     simple event</a> that bubbles<!--XXX-->, named <code
+     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).
+
+   <li>
+    <p>Let <var title="">controls</var> be a list of all the <a href="#field"
+     title=category-field>fields</a> whose <a href="#form-owner">form
+     owner</a> is <var title="">form</var>.
+
+   <li>
     <p class=big-issue>...
   </ol>
 
@@ -46118,7 +46202,7 @@
     and <a href="#space" title="space character">space characters</a>.
 
    <li>The root element, in the form of an <code><a
-    href="#html">html</a></code> <a href="#elements4"
+    href="#html">html</a></code> <a href="#elements5"
     title=syntax-elements>element</a>.
 
    <li>Any number of <a href="#comments0" title=syntax-comments>comments</a>
@@ -46270,7 +46354,7 @@
 
   <h4 id=elements1><span class=secno>8.1.2 </span>Elements</h4>
 
-  <p>There are five different kinds of <dfn id=elements4
+  <p>There are five different kinds of <dfn id=elements5
    title=syntax-elements>elements</dfn>: void elements, CDATA elements,
    RCDATA elements, foreign elements, and normal elements.
 
@@ -46358,7 +46442,7 @@
    is <em>not</em> marked as self-closing can have <a href="#text2"
    title=syntax-text>text</a>, <a href="#character5"
    title=syntax-charref>character references</a>, <a href="#cdata1"
-   title=syntax-cdata>CDATA sections</a>, other <a href="#elements4"
+   title=syntax-cdata>CDATA sections</a>, other <a href="#elements5"
    title=syntax-elements>elements</a>, and <a href="#comments0"
    title=syntax-comments>comments</a>, but the text must not contain the
    character U+003C LESS-THAN SIGN (<code>&lt;</code>) or an <a
@@ -46367,7 +46451,7 @@
 
   <p>Normal elements can have <a href="#text2" title=syntax-text>text</a>, <a
    href="#character5" title=syntax-charref>character references</a>, other <a
-   href="#elements4" title=syntax-elements>elements</a>, and <a
+   href="#elements5" title=syntax-elements>elements</a>, and <a
    href="#comments0" title=syntax-comments>comments</a>, but the text must
    not contain the character U+003C LESS-THAN SIGN (<code>&lt;</code>) or an
    <a href="#ambiguous" title=syntax-ambiguous-ampersand>ambiguous

Received on Wednesday, 10 September 2008 10:45:40 UTC