Skip to content

Commit

Permalink
Remove <isindex> and <input name=isindex>
Browse files Browse the repository at this point in the history
Fixes #1088. Edge and Chrome have removed parser support. Chrome has
removed name=isindex support. And Firefox plans on removing support.
  • Loading branch information
annevk committed Apr 22, 2016
1 parent 2ced624 commit 8721d92
Showing 1 changed file with 23 additions and 124 deletions.
147 changes: 23 additions & 124 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -52040,32 +52040,11 @@ out of 233&#x2009;257&#x2009;824 bytes available&lt;/meter>&lt;/p></pre>
data-x="dom-form-elements">elements</code> object. If the attribute is specified, its value must
not be the empty string.</p>

<p>Any non-empty value for <code data-x="attr-form-name">name</code> is allowed, but the names
"<code data-x="attr-fe-name-charset">_charset_</code>" and "<code
data-x="attr-fe-name-isindex">isindex</code>" are special:</p>

<dl>

<dt><dfn><code data-x="attr-fe-name-isindex">isindex</code></dfn></dt>
<dd>

<p>This value, if used as the name of a <span data-x="attr-input-type-text">Text</span> control
that is the first control in a form that is submitted using the <code
data-x="attr-fs-enctype-urlencoded">application/x-www-form-urlencoded</code> mechanism, causes
the submission to only include the value of this control, with no name.</p>

</dd>

<dt><dfn><code data-x="attr-fe-name-charset">_charset_</code></dfn></dt>
<dd>

<p>This value, if used as the name of a <span data-x="attr-input-type-hidden">Hidden</span>
control with no <code data-x="attr-input-value">value</code> attribute, is automatically given a
value during submission consisting of the submission character encoding.</p>

</dd>

</dl>
<p>Any non-empty value for <code data-x="attr-form-name">name</code> is allowed. The name
<dfn><code data-x="attr-fe-name-charset">_charset_</code></dfn> is special: If used as the name of
a <span data-x="attr-input-type-hidden">Hidden</span> control with no <code
data-x="attr-input-value">value</code> attribute, is automatically given a value during submission
consisting of the submission character encoding.</p>

<div w-nodev>

Expand Down Expand Up @@ -100746,19 +100725,19 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
<code>h5</code>, <code>h6</code>, <code>head</code>, <code>header</code>, <code>hgroup</code>,
<code>hr</code>, <code>html</code>, <code>iframe</code>, <!-- <code>image</code>, (commented out
because this isn't an element that can end up on the stack, so it doesn't matter) -->
<code>img</code>, <code>input</code>, <code>isindex</code>, <code>li</code>, <code>link</code>,
<code>listing</code>, <code>main</code>, <code>marquee</code>, <code>menu</code>,
<code>menuitem</code>, <code>meta</code>, <code>nav</code>, <code>noembed</code>,
<code>noframes</code>, <code>noscript</code>, <code>object</code>, <code>ol</code>,
<code>p</code>, <code>param</code>, <code>plaintext</code>, <code>pre</code>,
<code>script</code>, <code>section</code>, <code>select</code>, <code>source</code>,
<code>style</code>, <code>summary</code>, <code>table</code>, <code>tbody</code>,
<code>td</code>, <code>template</code>, <code>textarea</code>, <code>tfoot</code>,
<code>th</code>, <code>thead</code>, <code>title</code>, <code>tr</code>, <code>track</code>,
<code>ul</code>, <code>wbr</code>; <span>MathML <code>mi</code></span>, <span>MathML
<code>mo</code></span>, <span>MathML <code>mn</code></span>, <span>MathML <code>ms</code></span>,
<span>MathML <code>mtext</code></span>, and <span>MathML <code>annotation-xml</code></span>; and
<span>SVG <code>foreignObject</code></span>, <span>SVG <code>desc</code></span>, and <span>SVG
<code>img</code>, <code>input</code>, <code>li</code>, <code>link</code>, <code>listing</code>,
<code>main</code>, <code>marquee</code>, <code>menu</code>, <code>menuitem</code>,
<code>meta</code>, <code>nav</code>, <code>noembed</code>, <code>noframes</code>,
<code>noscript</code>, <code>object</code>, <code>ol</code>, <code>p</code>, <code>param</code>,
<code>plaintext</code>, <code>pre</code>, <code>script</code>, <code>section</code>,
<code>select</code>, <code>source</code>, <code>style</code>, <code>summary</code>,
<code>table</code>, <code>tbody</code>, <code>td</code>, <code>template</code>,
<code>textarea</code>, <code>tfoot</code>, <code>th</code>, <code>thead</code>,
<code>title</code>, <code>tr</code>, <code>track</code>, <code>ul</code>, <code>wbr</code>;
<span>MathML <code>mi</code></span>, <span>MathML <code>mo</code></span>, <span>MathML
<code>mn</code></span>, <span>MathML <code>ms</code></span>, <span>MathML
<code>mtext</code></span>, and <span>MathML <code>annotation-xml</code></span>; and <span>SVG
<code>foreignObject</code></span>, <span>SVG <code>desc</code></span>, and <span>SVG
<code>title</code></span>.</p></dd> <!-- we could actually put all non-HTML elements in this
list, I think -->

Expand Down Expand Up @@ -105490,86 +105469,6 @@ document.body.appendChild(text);
ask.)</p>
</dd>

<dt id="isindex">A start tag whose tag name is "isindex"</dt>
<dd>

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

<p>If there is no <code>template</code> element on the <span>stack of open elements</span> and
the <span><code data-x="">form</code> element pointer</span> is not null, then ignore the
token.</p>

<p>Otherwise:</p>

<p><span data-x="acknowledge self-closing flag">Acknowledge the token's <i data-x="self-closing flag">self-closing
flag</i></span>, if it is set.</p> <!-- purely to reduce the number of errors (we don't care if
they included the /, they're not supposed to be including the tag at all! -->

<p>Set the <span>frameset-ok flag</span> to "not ok".</p>

<!-- fake <form> -->
<p>If the <span>stack of open elements</span> <span data-x="has an element in button scope">has a
<code>p</code> element in button scope</span>, then <span>close a <code>p</code>
element</span>.</p>

<p><span>Insert an HTML element</span> for a "form" start tag token with no attributes, and, if
there is no <code>template</code> element on the <span>stack of open elements</span>, set the
<span><code data-x="form">form</code> element pointer</span> to point to the element
created.</p>

<p>If the token has an attribute called "action", set the <code
data-x="attr-fs-action">action</code> attribute on the resulting <code>form</code> element to the
value of the "action" attribute of the token.</p>

<!-- fake <hr> -->
<p><span>Insert an HTML element</span> for an "hr" start tag token with no attributes.
Immediately pop the <span>current node</span> off the <span>stack of open elements</span>.</p>

<!-- fake <label> -->
<p><span>Reconstruct the active formatting elements</span>, if any.</p>

<p><span>Insert an HTML element</span> for a "label" start tag token with no attributes.</p>

<!-- fake text -->
<p><span data-x="insert a character">Insert characters</span> (see below for <span
data-x="attr-isindex-prompt">what they should say</span>).</p>

<!-- fake <input> -->
<p><span>Insert an HTML element</span> for an "input" start tag token with all the attributes
from the "isindex" token except "name", "action", and "prompt", and with an attribute named
"name" with the value "isindex". (This creates an <code>input</code> element with the <code
data-x="attr-fe-name">name</code> attribute set to the magic value "<code
data-x="attr-fe-name-isindex">isindex</code>".) Immediately pop the <span>current node</span> off
the <span>stack of open elements</span>.</p>

<!-- fake text -->
<p><span data-x="insert a character">Insert more characters</span> (see below for <span
data-x="attr-isindex-prompt">what they should say</span>).</p>

<!-- fake </label> -->
<p>Pop the <span>current node</span> (which will be the <code>label</code> element created
earlier) off the <span>stack of open elements</span>.</p>

<!-- fake <hr> -->
<p><span>Insert an HTML element</span> for an "hr" start tag token with no attributes.
Immediately pop the <span>current node</span> off the <span>stack of open elements</span>.</p>

<!-- fake </form> -->
<p>Pop the <span>current node</span> (which will be the <code>form</code> element created
earlier) off the <span>stack of open elements</span>, and, if there is no <code>template</code>
element on the <span>stack of open elements</span>, set the <span><code
data-x="form">form</code> element pointer</span> back to null.</p>

<!-- explanation of text -->
<p><dfn data-x="attr-isindex-prompt"><strong>Prompt</strong></dfn>: If the token has an attribute
with the name "prompt", then the first stream of characters must be the same string as given in
that attribute, and the second stream of characters must be empty. Otherwise, the two streams of
character tokens together should, together with the <code>input</code> element, express the
equivalent of "This is a searchable index. Enter search keywords: (input field)" in the user's
preferred language.</p>

</dd>

<dt>A start tag whose tag name is "textarea"</dt>
<dd>

Expand Down Expand Up @@ -105748,9 +105647,9 @@ document.body.appendChild(text);
<dt>A start <!--or end--> tag whose tag name is one of: "caption", "col", "colgroup", "frame",
"head", "tbody", "td", "tfoot", "th", "thead", "tr"</dt>
<!--<dt>An end tag whose tag name is one of: "area", "base", "basefont", "bgsound", "embed",
"hr", "iframe", "image", "img", "input", "isindex", "keygen", "link", "meta", "noembed",
"noframes", "param", "script", "select", "source", "style", "table", "textarea", "title",
"track", "wbr"</dt>-->
"hr", "iframe", "image", "img", "input", "keygen", "link", "meta", "noembed", "noframes",
"param", "script", "select", "source", "style", "table", "textarea", "title", "track",
"wbr"</dt>-->
<!--<dt>An end tag whose tag name is "noscript", if the <span>scripting flag</span> is
enabled</dt>-->
<dd>
Expand Down Expand Up @@ -108484,8 +108383,8 @@ document.body.appendChild(text);
<code>param</code>, <code>source</code>, <code>track</code> or <code>wbr</code> element,
then continue on to the next child node at this point.</p>
<!-- VOIDLIST superset -->
<!-- also, i guess: image and isindex, but we don't list those because we don't consider
those "elements", more "macros", and thus we should never serialise them -->
<!-- also, i guess: image, but we don't list it because we don't consider it an "element",
more a "macro", and thus we should never serialise it -->

<p>If <var>current node</var> is a <code>pre</code>, <code>textarea</code>, or
<code>listing</code> element, and the first child node of the element, if any, is a
Expand Down

0 comments on commit 8721d92

Please sign in to comment.