spec/Overview.html 1.1594 2422 Also make <output> have the same form-as

Also make <output> have the same form-association magic, for
consistency. (Also, simplify how this magic is specified.) (And note the
previous checkin, which means that <object> is now also affected by this
magic.) (whatwg r2422)
insert an HTML element
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1594.html#insert-an-html-element
A start tag whose tag name is "isindex"
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1594.html#isindex
8.2.5.10 The "in body" insertion mode
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1594.html#parsing-main-inbody
insert a foreign element
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1594.html#insert-a-foreign-element
8.2.5.12 The "in table" insertion mode
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1594.html#parsing-main-intable
An end tag whose tag name is one of: "a", "b", "big", "em", "font", "i", "nobr", "s", "small", "strike", "strong", "tt", "u"
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1594.html#adoptionAgency
http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1593&r2=1.1594&f=h
http://html5.org/tools/web-apps-tracker?from=2421&to=2422
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1593
retrieving revision 1.1594
diff -u -d -r1.1593 -r1.1594
--- Overview.html 20 Nov 2008 01:51:28 -0000 1.1593
+++ Overview.html 20 Nov 2008 02:03:33 -0000 1.1594
@@ -37715,7 +37715,14 @@
 same steps except that it must insert or append the new node in the
 location specified instead of appending it to the <a href=#current-node>current
 node</a>. (This happens in particular during the parsing of
- tables with invalid content.)</p><hr><p>When the steps below require the UA to <dfn id=insert-a-foreign-element>insert a foreign
+ tables with invalid content.)<p>If an element created by the <a href=#insert-an-html-element>insert an HTML element</a>
+ algorithm is a <a href=#form-associated-element>form-associated element</a>, and 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, the user agent must
+ <a href=#concept-form-association title=concept-form-association>associate</a> the newly
+ created 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> before
+ inserting it wherever it is to be inserted.</p><hr><p>When the steps below require the UA to <dfn id=insert-a-foreign-element>insert a foreign
 element</dfn> for a token, the UA must first <a href=#create-an-element-for-the-token>create an element
 for the token</a> in the given namespace, and then append this
 node to the <a href=#current-node>current node</a>, and push it onto the
@@ -38567,9 +38574,9 @@
 <!-- the normal ones -->
 <dt>A start tag whose tag name is one of: "address", "article",
 "aside", "blockquote", "center", "datagrid", "details", "dialog",
- "dir", "div", "dl", "figure", "footer", "h1", "h2", "h3", "h4",
- "h5", "h6", "header", "menu", "nav", "ol", "p", "section",
- "ul"</dt>
+ "dir", "div", "dl", "fieldset", "figure", "footer", "h1", "h2",
+ "h3", "h4", "h5", "h6", "header", "menu", "nav", "ol", "p",
+ "section", "ul"</dt>
 <dd>
 
 <!-- As of May 2008 this doesn't match any browser exactly, but is
@@ -38638,25 +38645,6 @@
 
 </dd>
 
- <!-- as normal, but associated with the form element pointer -->
- <dt>A start tag whose tag name is "fieldset"</dt>
- <dd>
-
- <p>If the <a href=#stack-of-open-elements>stack of open elements</a> <a href=#has-an-element-in-scope title="has
- an element in scope">has a <code>p</code> element in
- scope</a>, then act as if an end tag with the tag name
- "p" had been seen.</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-fieldset-element>fieldset</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>
-
- </dd>
-
 <!-- as normal, but imply </li> when there's another <li> open in weird cases -->
 <dt>A start tag whose tag name is "li"</dt>
 <dd>
@@ -39144,33 +39132,13 @@
 
 <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
- <code><a href=#the-button-element>button</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>A start tag token whose tag name is one of: "applet",
- "marquee"</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>Insert a marker at the end of the <a href=#list-of-active-formatting-elements>list of active
- formatting elements</a>.</p>
-
- </dd>
-
- <!-- as for applet and marquee, but interacts with the form element pointer -->
- <dt>A start tag token whose tag name is "object"</dt>
+ "marquee", "object"</dt>
 <dd>
 
 <p><a href=#reconstruct-the-active-formatting-elements>Reconstruct the active formatting elements</a>, if
@@ -39178,12 +39146,6 @@
 
 <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>
 
@@ -39239,7 +39201,7 @@
 </dd>
 
 <dt>A start tag whose tag name is one of: "area", "basefont",
- "bgsound", "br", "embed", "img", "spacer", "wbr"</dt>
+ "bgsound", "br", "embed", "img", "input", "spacer", "wbr"</dt>
 <dd>
 
 <p><a href=#reconstruct-the-active-formatting-elements>Reconstruct the active formatting elements</a>, if
@@ -39291,45 +39253,6 @@
 <image> element. -->
 </dd>
 
- <dt>A start tag whose tag name is "input"</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. Immediately
- pop the <a href=#current-node>current node</a> off the <a href=#stack-of-open-elements>stack of open
- elements</a>.</p>
-
- <p><a href=#acknowledge-self-closing-flag title="acknowledge self-closing flag">Acknowledge the
- token's <i>self-closing flag</i></a>, if it is set.</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-input-element>input</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>
-
- </dd>
-
- <dt>A start tag whose tag name is "label"</dt>
- <dd>
-
- <!-- XXX should this close open <label> elements? -->
-
- <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-label-element>label</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>
-
- </dd>
-
 <dt id=isindex>A start tag whose tag name is "isindex"</dt>
 <dd>
 
@@ -39410,14 +39333,6 @@
 <ol><li><p><a href=#insert-an-html-element>Insert an HTML element</a> for the
 token.</li>
 
- <li><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-textarea-element>textarea</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>.</li>
-
 <li><p>If the next token is a U+000A LINE FEED (LF) character
 token, then ignore that token and move on to the next
 one. (Newlines at the start of <code><a href=#the-textarea-element>textarea</a></code> elements are
@@ -39451,12 +39366,6 @@
 
 <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
- <code><a href=#the-select-element>select</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>If the <a href=#insertion-mode>insertion mode</a> is one of <a href=#parsing-main-intable title="insertion mode: in table">in table</a>", "<a href=#parsing-main-incaption title="insertion mode: in caption">in caption</a>", "<a href=#parsing-main-incolgroup title="insertion mode: in column group">in column group</a>",
 "<a href=#parsing-main-intbody title="insertion mode: in table body">in table
 body</a>", "<a href=#parsing-main-intr title="insertion mode: in row">in
@@ -39884,9 +39793,9 @@
 
 <p>If the token does not have an attribute with the name "type",
 or if it does, but that attribute's value is not an <a href=#ascii-case-insensitive>ASCII
- case-insensitive</a> match for the string "hidden", or, if the
- <a href=#current-table>current table</a> is <a href=#tainted>tainted</a>, then: act as
- described in the "anything else" entry below.</p>
+ case-insensitive</a> match for the string "<code title="">hidden</code>", or, if the <a href=#current-table>current table</a> is
+ <a href=#tainted>tainted</a>, then: act as described in the "anything
+ else" entry below.</p>
 
 <p>Otherwise:</p>
 
@@ -39894,11 +39803,6 @@
 
 <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, then <span>associate</span><!--XXX
- xref! --> the <code><a href=#the-input-element>input</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>Pop that <code><a href=#the-input-element>input</a></code> element off the <a href=#stack-of-open-elements>stack of
 open elements</a>.</p>

Received on Thursday, 20 November 2008 02:07:15 UTC

AltStyle によって変換されたページ (->オリジナル) /