Skip to content

Commit

Permalink
[acgiowt] (2) Make <input type=hidden> not be taken out of <table> el…
Browse files Browse the repository at this point in the history
…ements unless the <table> element has gotten tainted. (Basically, treat them the space as spaces.)

git-svn-id: http://svn.whatwg.org/webapps@1331 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 4, 2008
1 parent 23af143 commit 7e3df33
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
26 changes: 26 additions & 0 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -43004,6 +43004,32 @@ mtd, maction
<dd>
<p><a href="#parse0">Parse error</a>. Ignore the token.</p>

<dt>A start tag whose tag name is "input"

<dd>
<p>If the token does not have an attribute with the name "type", or if it
does, but that attribute's value is not a case-insensitive
<!-- XXX ASCII --> match for the string "hidden", or, if the <a
href="#current5">current table</a> is <a href="#tainted">tainted</a>,
then: act as described in the "anything else" entry below.</p>

<p>Otherwise:</p>

<p><a href="#parse0">Parse error</a>.</p>

<p><a href="#insert" title="insert an html element">Insert an
<code>input</code> element</a> for the token.</p>

<p>If the <a href="#form-element"><code title="">form</code> element
pointer</a> is not null, then <span>associate</span><!--XXX
xref! -->
the <code>input</code> element with the <code>form</code> element
pointed to by the <a href="#form-element"><code title="">form</code>
element pointer</a>.</p>

<p>Pop that <code>input</code> element off the <a href="#stack">stack of
open elements</a>.</p>

<dt>Anything else

<dd>
Expand Down
28 changes: 28 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -40226,6 +40226,34 @@ mtd, maction
<p><span>Parse error</span>. Ignore the token.</p>
</dd>

<dt>A start tag whose tag name is "input"</dt>

<dd>

<p>If the token does not have an attribute with the name "type",
or if it does, but that attribute's value is not a
case-insensitive <!-- XXX ASCII --> match for the string "hidden",
or, if the <span>current table</span> is <span>tainted</span>,
then: act as described in the "anything else" entry below.</p>

<p>Otherwise:</p>

<p><span>Parse error</span>.</p>

<p><span title="insert an html element">Insert an
<code>input</code> element</span> for the token.</p>

<p>If the <span><code title="">form</code> element
pointer</span> is not null, then <span>associate</span><!--XXX
xref! --> the <code>input</code> element with the
<code>form</code> element pointed to by the <span><code
title="">form</code> element pointer</span>.</p>

<p>Pop that <code>input</code> element off the <span>stack of
open elements</span>.</p>

</dd>

<dt>Anything else</dt>
<dd>

Expand Down

0 comments on commit 7e3df33

Please sign in to comment.