Skip to content

Commit 884dfc4

Browse files
authored
Make hidden input _charset_ checks case insensitive
Fixes #5914.
1 parent ec13a5e commit 884dfc4

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

source

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45117,9 +45117,10 @@ interface <dfn>HTMLInputElement</dfn> : <span>HTMLElement</span> {
4511745117

4511845118
</div>
4511945119

45120-
<p>If the <code data-x="attr-fe-name">name</code> attribute is present and has a value that is
45121-
<span>identical to</span> "<code data-x="attr-fe-name-charset">_charset_</code>", then the
45122-
element's <code data-x="attr-input-value">value</code> attribute must be omitted.</p>
45120+
<p>If the <code data-x="attr-fe-name">name</code> attribute is present and has a value that is an
45121+
<span>ASCII case-insensitive</span> match for "<code
45122+
data-x="attr-fe-name-charset">_charset_</code>", then the element's <code
45123+
data-x="attr-input-value">value</code> attribute must be omitted.</p>
4512345124

4512445125
<div class="bookkeeping">
4512545126

@@ -52655,9 +52656,9 @@ interface <dfn>HTMLLegendElement</dfn> : <span>HTMLElement</span> {
5265552656
is no longer allowed.</p>
5265652657

5265752658
<p>Other than <code data-x="">isindex</code>, any non-empty value for <code
52658-
data-x="attr-form-name">name</code> is allowed. The name <dfn><code
52659-
data-x="attr-fe-name-charset">_charset_</code></dfn> is special: if used as the name of a <span
52660-
data-x="attr-input-type-hidden">Hidden</span> control with no <code
52659+
data-x="attr-form-name">name</code> is allowed. An <span>ASCII case-insensitive</span> match for
52660+
the name <dfn><code data-x="attr-fe-name-charset">_charset_</code></dfn> is special: if used as
52661+
the name of a <span data-x="attr-input-type-hidden">Hidden</span> control with no <code
5266152662
data-x="attr-input-value">value</code> attribute, then during submission the <code
5266252663
data-x="attr-input-value">value</code> attribute is automatically given a value consisting of the
5266352664
submission character encoding.</p>
@@ -56368,8 +56369,8 @@ fur
5636856369
<li>
5636956370
<p>Otherwise, if the <var>field</var> element is an <code>input</code> element whose <code
5637056371
data-x="attr-input-type">type</code> attribute is in the <span
56371-
data-x="attr-input-type-hidden">Hidden</span> state and <var>name</var> is "<code
56372-
data-x="attr-fe-name-charset">_charset_</code>":</p>
56372+
data-x="attr-input-type-hidden">Hidden</span> state and <var>name</var> is an <span>ASCII
56373+
case-insensitive</span> match for "<code data-x="attr-fe-name-charset">_charset_</code>":</p>
5637356374

5637456375
<ol>
5637556376
<li><p>Let <var>charset</var> be the <span data-x="encoding name">name</span> of

0 commit comments

Comments
 (0)