[html5] r2528 - [giow] (2) WF2: Change <legend> to be treated more like <option> than like a ful [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Dec 2 17:27:37 PST 2008


Author: ianh
Date: 2008-12-02 17:27:37 -0800 (Tue, 02 Dec 2008)
New Revision: 2528

Modified:
   index
   source
Log:
[giow] (2) WF2: Change <legend> to be treated more like <option> than like a fully-fledged form-associatd element. Simpler to implement.

Modified: index
===================================================================
--- index	2008-12-02 11:35:07 UTC (rev 2527)
+++ index	2008-12-03 01:27:37 UTC (rev 2528)
@@ -17,7 +17,7 @@
   <div class=head>
    <p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <h1>HTML 5</h1>
-   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 2 December 2008</h2>
+   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 3 December 2008</h2>
    <p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <dl><dt>Multiple-page version:</dt>
@@ -23130,11 +23130,9 @@
   elements</a> can be, depending on their attributes, <dfn id=concept-button title=concept-button>buttons</dfn>. The prose below defines when
   an element is a button. Some buttons are specifically <dfn id=concept-submit-button title=concept-submit-button>submit buttons</dfn>.</p>
 
-  <p class=note>The <code><a href=#the-object-element>object</a></code> amd <code><a href=#the-legend-element>legend</a></code>
-  elements are also <a href=#form-associated-element title="form-associated
-  element">form-associated elements</a>. With the use of a suitable
-  <a href=#plugin>plugin</a>, the <code><a href=#the-object-element>object</a></code> element can even
-  partake in form submission.</p>
+  <p class=note>The <code><a href=#the-object-element>object</a></code> element is also a
+  <a href=#form-associated-element>form-associated element</a> and can, with the use of a
+  suitable <a href=#plugin>plugin</a>, partake in form submission.</p>
 
 
   <h4 id=the-form-element><span class=secno>4.10.1 </span>The <dfn><code>form</code></dfn> element</h4>
@@ -27787,7 +27785,7 @@
   or has a <code><a href=#the-colgroup-element>colgroup</a></code> element as its parent and that
   <code><a href=#the-colgroup-element>colgroup</a></code> element has a <code><a href=#the-select-element>select</a></code> element as
   its parent, then the <code title=dom-option-form><a href=#dom-option-form>form</a></code> DOM
-  attribute must return the same value as the <code title=dom-select-form>form</code> DOM attribute on that
+  attribute must return the same value as the <code title=dom-fae-form><a href=#dom-fae-form>form</a></code> DOM attribute on that
   <code><a href=#the-select-element>select</a></code> element. Otherwise, it must return null.</p>
 
   <p>Several constructors are provided for creating
@@ -32200,7 +32198,7 @@
   <h4 id=the-legend-element><span class=secno>4.12.1 </span>The <dfn><code>legend</code></dfn> element</h4>
 
   <dl class=element><dt>Categories</dt>
-   <dd><a href=#form-associated-element>Form-associated element</a>.</dd>
+   <dd>None.</dd>
    <dt>Contexts in which this element may be used:</dt>
    <dd>As the first child of a <code><a href=#the-fieldset-element>fieldset</a></code> element.</dd>
    <dd>As the first child of a <code><a href=#the-details-element>details</a></code> element.</dd>
@@ -32208,23 +32206,26 @@
    <dt>Content model:</dt>
    <dd><a href=#phrasing-content-0>Phrasing content</a>.</dd>
    <dt>Element-specific attributes:</dt>
-   <dd><code title=attr-fae-form><a href=#attr-fae-form>form</a></code></dd>
+   <dd>None.</dd>
    <dt>DOM interface:</dt>
    <dd>
-<pre class=idl>interface <dfn id=htmllegendelement>HTMLLegendElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
-  readonly attribute <a href=#htmlformelement>HTMLFormElement</a> <a href=#dom-fae-form title=dom-fae-form>form</a>;
+    <pre class=idl>interface <dfn id=htmllegendelement>HTMLLegendElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
+  readonly attribute <a href=#htmlformelement>HTMLFormElement</a> <a href=#dom-legend-form title=dom-legend-form>form</a>;
 };</pre>
-   </dd> 
+   </dd>
   </dl><p>The <code><a href=#the-legend-element>legend</a></code> element represents a title or explanatory
   caption for the rest of the contents of the <code><a href=#the-legend-element>legend</a></code>
   element's parent element.</p>
 
-  <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-label-element>label</a></code> element with its
-  <a href=#form-owner>form owner</a>.</p>
+  <p>The <dfn id=dom-legend-form title=dom-legend-form><code>form</code></dfn> DOM
+  attribute's behavior depends on whether the <code><a href=#the-legend-element>legend</a></code>
+  element is in a <code><a href=#the-fieldset-element>fieldset</a></code> element or not. If the
+  <code><a href=#the-legend-element>legend</a></code> has a <code><a href=#the-fieldset-element>fieldset</a></code> element as its
+  parent, then the <code title=dom-legend-form><a href=#dom-legend-form>form</a></code> DOM
+  attribute must return the same value as the <code title=dom-fae-form><a href=#dom-fae-form>form</a></code> DOM attribute on that
+  <code><a href=#the-fieldset-element>fieldset</a></code> element. Otherwise, it must return null.</p>
 
 
-
   <h4 id=the-div-element><span class=secno>4.12.2 </span>The <dfn><code>div</code></dfn> element</h4>
 
   <dl class=element><dt>Categories</dt>

Modified: source
===================================================================
--- source	2008-12-02 11:35:07 UTC (rev 2527)
+++ source	2008-12-03 01:27:37 UTC (rev 2528)
@@ -25771,11 +25771,9 @@
   an element is a button. Some buttons are specifically <dfn
   title="concept-submit-button">submit buttons</dfn>.</p>
 
-  <p class="note">The <code>object</code> amd <code>legend</code>
-  elements are also <span title="form-associated
-  element">form-associated elements</span>. With the use of a suitable
-  <span>plugin</span>, the <code>object</code> element can even
-  partake in form submission.</p>
+  <p class="note">The <code>object</code> element is also a
+  <span>form-associated element</span> and can, with the use of a
+  suitable <span>plugin</span>, partake in form submission.</p>
 
 
   <h4>The <dfn><code>form</code></dfn> element</h4>
@@ -31221,7 +31219,7 @@
   <code>colgroup</code> element has a <code>select</code> element as
   its parent, then the <code title="dom-option-form">form</code> DOM
   attribute must return the same value as the <code
-  title="dom-select-form">form</code> DOM attribute on that
+  title="dom-fae-form">form</code> DOM attribute on that
   <code>select</code> element. Otherwise, it must return null.</p>
 
   <p>Several constructors are provided for creating
@@ -36620,7 +36618,7 @@
 
   <dl class="element">
    <dt>Categories</dt>
-   <dd><span>Form-associated element</span>.</dd>
+   <dd>None.</dd>
    <dt>Contexts in which this element may be used:</dt>
    <dd>As the first child of a <code>fieldset</code> element.</dd>
    <dd>As the first child of a <code>details</code> element.</dd>
@@ -36628,25 +36626,29 @@
    <dt>Content model:</dt>
    <dd><span>Phrasing content</span>.</dd>
    <dt>Element-specific attributes:</dt>
-   <dd><code title="attr-fae-form">form</code></dd>
+   <dd>None.</dd>
    <dt>DOM interface:</dt>
    <dd>
-<pre class="idl">interface <dfn>HTMLLegendElement</dfn> : <span>HTMLElement</span> {
-  readonly attribute <span>HTMLFormElement</span> <span title="dom-fae-form">form</span>;
+    <pre class="idl">interface <dfn>HTMLLegendElement</dfn> : <span>HTMLElement</span> {
+  readonly attribute <span>HTMLFormElement</span> <span title="dom-legend-form">form</span>;
 };</pre>
-   </dd> 
+   </dd>
   </dl>
 
   <p>The <code>legend</code> element represents a title or explanatory
   caption for the rest of the contents of the <code>legend</code>
   element's parent element.</p>
 
-  <p>The <code title="attr-fae-form">form</code> attribute is used to
-  explicitly associate the <code>label</code> element with its
-  <span>form owner</span>.</p>
+  <p>The <dfn title="dom-legend-form"><code>form</code></dfn> DOM
+  attribute's behavior depends on whether the <code>legend</code>
+  element is in a <code>fieldset</code> element or not. If the
+  <code>legend</code> has a <code>fieldset</code> element as its
+  parent, then the <code title="dom-legend-form">form</code> DOM
+  attribute must return the same value as the <code
+  title="dom-fae-form">form</code> DOM attribute on that
+  <code>fieldset</code> element. Otherwise, it must return null.</p>
 
 
-
   <h4>The <dfn><code>div</code></dfn> element</h4>
 
   <dl class="element">




More information about the Commit-Watchers mailing list