NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 130 - Make <input type=hidden> not be taken out of <table> elements unless the <table> element has gotten tainted. (Basically, treat them the space as spaces.)
Make <input type=hidden> not be taken out of <table> elements unless the <tab...
Classification: Unclassified
Component: HTML parser
All All
: P2 normal
Assigned To: Henri Sivonen
Depends on:
  Show dependency treegraph
Reported: 2008-03-04 11:20 CET by Nobody
Modified: 2008-03-07 16:24 CET (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Nobody 2008-03-04 11:20:29 CET
Index: source
--- source	(revision 1330)
+++ source	(revision 1331)
@@ -40226,6 +40226,34 @@
     <p><span>Parse error</span>. Ignore the token.</p>
+   <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>