[html5] r2421 - [] (0) Make <object> a form-associated element.

whatwg at whatwg.org whatwg at whatwg.org
Wed Nov 19 17:51:25 PST 2008


Author: ianh
Date: 2008-11-19 17:51:23 -0800 (Wed, 19 Nov 2008)
New Revision: 2421

Modified:
   index
   source
Log:
[] (0) Make <object> a form-associated element.

Modified: index
===================================================================
--- index	2008-11-20 00:38:02 UTC (rev 2420)
+++ index	2008-11-20 01:51:23 UTC (rev 2421)
@@ -15911,6 +15911,7 @@
 
   <dl class=element><dt>Categories</dt>
    <dd><a href=#embedded-content-1>Embedded content</a>.</dd>
+   <dd><a href=#form-associated-element>Form-associated element</a>.</dd>
    <dt>Contexts in which this element may be used:</dt>
    <dd>Where <a href=#embedded-content-1>embedded content</a> is expected.</dd>
    <dt>Content model:</dt>
@@ -15920,6 +15921,7 @@
    <dd><code title=attr-object-type><a href=#attr-object-type>type</a></code></dd>
    <dd><code title=attr-object-name><a href=#attr-object-name>name</a></code></dd>
    <dd><code title=attr-hyperlink-usemap><a href=#attr-hyperlink-usemap>usemap</a></code></dd>
+   <dd><code title=attr-fae-form><a href=#attr-fae-form>form</a></code></dd>
    <dd><code title=attr-dim-width><a href=#attr-dim-width>width</a></code></dd>
    <dd><code title=attr-dim-height><a href=#attr-dim-height>height</a></code></dd>
    <dt>DOM interface:</dt>
@@ -15929,6 +15931,7 @@
            attribute DOMString <a href=#dom-object-type title=dom-object-type>type</a>;
            attribute DOMString <a href=#dom-object-name title=dom-object-name>name</a>;
            attribute DOMString <a href=#dom-object-usemap title=dom-object-useMap>useMap</a>;
+  readonly attribute <a href=#htmlformelement>HTMLFormElement</a> <a href=#dom-fae-form title=dom-fae-form>form</a>;
            attribute DOMString <a href=#dom-dim-width title=dom-dim-width>width</a>;
            attribute DOMString <a href=#dom-dim-height title=dom-dim-height>height</a>;<!--
   readonly attribute Document <span title="dom-object-contentDocument">contentDocument</span>;
@@ -16234,6 +16237,10 @@
   map</a>. The attribute must be ignored if the <code><a href=#the-object-element>object</a></code>
   element doesn't represent an image.</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-object-element>object</a></code> element with its
+  <a href=#form-owner>form owner</a>.</p>
+
   <p>The <code><a href=#the-object-element>object</a></code> element supports <a href=#dimension-attributes>dimension
   attributes</a>.</p>
 
@@ -22950,7 +22957,11 @@
   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>For historical reasons, the <code><a href=#the-object-element>object</a></code>
+  element, which is not otherwise considered to be related to forms,
+  is also a <a href=#form-associated-element>form-associated element</a>.</p>
 
+
   <h4 id=the-form-element><span class=secno>4.10.1 </span>The <dfn><code>form</code></dfn> element</h4>
 
   <dl class=element><dt>Categories</dt>
@@ -47954,8 +47965,8 @@
     "p" had been seen.</p>
 
     <p><a href=#insert-an-html-element>Insert an HTML element</a> for the token, and set the
-    <code title=form><a href=#the-form-element>form</a></code> element pointer to point to the
-    element created.</p>
+    <a href=#form-element-pointer><code title=form>form</code> element pointer</a> to
+    point to the element created.</p>
 
    </dd>
 
@@ -48477,7 +48488,7 @@
    </dd>
 
    <dt>A start tag token whose tag name is one of: "applet",
-   "marquee", "object"</dt>
+   "marquee"</dt>
    <dd>
 
     <p><a href=#reconstruct-the-active-formatting-elements>Reconstruct the active formatting elements</a>, if
@@ -48490,6 +48501,26 @@
 
    </dd>
 
+   <!-- as for applet and marquee, but interacts with the form element pointer -->
+   <dt>A start tag token whose tag name is "object"</dt>
+   <dd>
+
+    <p><a href=#reconstruct-the-active-formatting-elements>Reconstruct the active formatting elements</a>, if
+    any.</p>
+
+    <p><a href=#insert-an-html-element>Insert an HTML element</a> for the token.</p>
+
+    <p>If the <a href=#form-element-pointer><code title="">form</code> element pointer</a>
+    is not null and the newly created element doesn't have a <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute, then <a href=#concept-form-association title=concept-form-association>associate</a> the newly
+    created <code><a href=#the-object-element>object</a></code> element with the <code><a href=#the-form-element>form</a></code>
+    element pointed to by the <a href=#form-element-pointer><code title="">form</code> element
+    pointer</a>.</p>
+
+    <p>Insert a marker at the end of the <a href=#list-of-active-formatting-elements>list of active
+    formatting elements</a>.</p>
+
+   </dd>
+
    <dt>An end tag token whose tag name is one of: "applet", "button",
    "marquee", "object"</dt>
    <dd>

Modified: source
===================================================================
--- source	2008-11-20 00:38:02 UTC (rev 2420)
+++ source	2008-11-20 01:51:23 UTC (rev 2421)
@@ -17015,6 +17015,7 @@
   <dl class="element">
    <dt>Categories</dt>
    <dd><span>Embedded content</span>.</dd>
+   <dd><span>Form-associated element</span>.</dd>
    <dt>Contexts in which this element may be used:</dt>
    <dd>Where <span>embedded content</span> is expected.</dd>
    <dt>Content model:</dt>
@@ -17024,6 +17025,7 @@
    <dd><code title="attr-object-type">type</code></dd>
    <dd><code title="attr-object-name">name</code></dd>
    <dd><code title="attr-hyperlink-usemap">usemap</code></dd>
+   <dd><code title="attr-fae-form">form</code></dd>
    <dd><code title="attr-dim-width">width</code></dd>
    <dd><code title="attr-dim-height">height</code></dd>
    <dt>DOM interface:</dt>
@@ -17033,6 +17035,7 @@
            attribute DOMString <span title="dom-object-type">type</span>;
            attribute DOMString <span title="dom-object-name">name</span>;
            attribute DOMString <span title="dom-object-useMap">useMap</span>;
+  readonly attribute <span>HTMLFormElement</span> <span title="dom-fae-form">form</span>;
            attribute DOMString <span title="dom-dim-width">width</span>;
            attribute DOMString <span title="dom-dim-height">height</span>;<!--
   readonly attribute Document <span title="dom-object-contentDocument">contentDocument</span>;
@@ -17374,6 +17377,10 @@
   map</span>. The attribute must be ignored if the <code>object</code>
   element doesn't represent an image.</p>
 
+  <p>The <code title="attr-fae-form">form</code> attribute is used to
+  explicitly associate the <code>object</code> element with its
+  <span>form owner</span>.</p>
+
   <p>The <code>object</code> element supports <span>dimension
   attributes</span>.</p>
 
@@ -25551,7 +25558,11 @@
   an element is a button. Some buttons are specifically <dfn
   title="concept-submit-button">submit buttons</dfn>.</p>
 
+  <p class="note">For historical reasons, the <code>object</code>
+  element, which is not otherwise considered to be related to forms,
+  is also a <span>form-associated element</span>.</p>
 
+
   <h4>The <dfn><code>form</code></dfn> element</h4>
 
   <dl class="element">
@@ -54661,8 +54672,8 @@
     "p" had been seen.</p>
 
     <p><span>Insert an HTML element</span> for the token, and set the
-    <code title="form">form</code> element pointer to point to the
-    element created.</p>
+    <span><code title="form">form</code> element pointer</span> to
+    point to the element created.</p>
 
    </dd>
 
@@ -55240,7 +55251,7 @@
    </dd>
 
    <dt>A start tag token whose tag name is one of: "applet",
-   "marquee", "object"</dt>
+   "marquee"</dt>
    <dd>
 
     <p><span>Reconstruct the active formatting elements</span>, if
@@ -55253,6 +55264,28 @@
 
    </dd>
 
+   <!-- as for applet and marquee, but interacts with the form element pointer -->
+   <dt>A start tag token whose tag name is "object"</dt>
+   <dd>
+
+    <p><span>Reconstruct the active formatting elements</span>, if
+    any.</p>
+
+    <p><span>Insert an HTML element</span> for the token.</p>
+
+    <p>If the <span><code title="">form</code> element pointer</span>
+    is not null and the newly created element doesn't have a <code
+    title="attr-fae-form">form</code> attribute, then <span
+    title="concept-form-association">associate</span> the newly
+    created <code>object</code> element with the <code>form</code>
+    element pointed to by the <span><code title="">form</code> element
+    pointer</span>.</p>
+
+    <p>Insert a marker at the end of the <span>list of active
+    formatting elements</span>.</p>
+
+   </dd>
+
    <dt>An end tag token whose tag name is one of: "applet", "button",
    "marquee", "object"</dt>
    <dd>




More information about the Commit-Watchers mailing list