This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11221 - Contradiction regarding isindex (the special form input field)
Summary: Contradiction regarding isindex (the special form input field)
Status: RESOLVED WORKSFORME
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P2 editorial
Target Milestone: ---
Assignee: Travis Leithead [MSFT]
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard: whatwg-resolved
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-04 15:42 UTC by Damian W
Modified: 2016-07-06 20:05 UTC (History)
6 users (show)

See Also:


Attachments

Description Damian W 2010-11-04 15:42:08 UTC
Where isindex is defined (http://www.w3.org/TR/html5/association-of-controls-and-forms.html#attr-fe-name-isindex) it states:
> This value, if used as the name of a Text control that is the only control in a
> form that is submitted using the application/x-www-form-urlencoded mechanism,
> causes the submission to only include the value of this control, with no name.
So an isindex can be the only control in the form.

The urlencoded encoding algorithm (http://www.w3.org/TR/html5/association-of-controls-and-forms.html#application-x-www-form-urlencoded-encoding-algorithm) states on step 4.5:
> If the entry's name is "isindex", its type is "text", and this is the first
> entry in the form data set, then append the value to result and skip the rest of
> the substeps for this entry, moving on to the next entry, if any, or the next
> step in the overall algorithm otherwise.
So an isindex doesn't have to be the only control - merely the first (in the tree).

To me, the former makes more sense than the latter. It also reduces the risk of someone accidentally (eg) using a hidden form field named "isindex" in their form, then discovering that it doesn't show up in the submission as the expected isindex=value pair.
Comment 1 Robin Berjon 2013-01-21 15:59:15 UTC
Mass move to "HTML WG"
Comment 2 Robin Berjon 2013-01-21 16:02:02 UTC
Mass move to "HTML WG"
Comment 3 Travis Leithead [MSFT] 2016-04-15 21:44:10 UTC
HTML5.1 Bugzilla Bug Triage: The isindex element as a formal element has been removed (sometime in the past). This should resolve the contradiction.

If this resolution is not satisfactory, please copy the relevant bug details/proposal into a new issue at the W3C HTML5 Issue tracker: https://github.com/w3c/html/issues/new where it will be re-triaged. Thanks!
Comment 4 Simon Pieters 2016-07-06 20:05:48 UTC
https://github.com/whatwg/html/pull/1095