-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example for <output> uses name
instead of id
when referring to for
elements
#3312
Labels
Comments
To me this looks like a straightforward spec bug. Good catch! Would you be interested in submitting a pull request to fix it? |
Sure, I can work on this tomorrow. Just to clarify: the example should use IDs, right? |
Yep, that'll do the trick. |
frigus02
added a commit
to frigus02/html
that referenced
this issue
Dec 28, 2017
The first example of the output element incorrectly referenced input elements in the "for" attribute by their names. This changes the example to reference input by their ids instead (whatwg#3312).
frigus02
added a commit
to frigus02/html
that referenced
this issue
Dec 28, 2017
The first example of the output element incorrectly referenced input elements in the "for" attribute by their names. This changes the example to reference input elements by their ids instead (whatwg#3312).
frigus02
added a commit
to frigus02/html
that referenced
this issue
Dec 30, 2017
The first example of the output element incorrectly referenced input elements in the "for" attribute by their names. This changes the example to reference input elements by their ids instead (whatwg#3312).
domenic
pushed a commit
that referenced
this issue
Jan 2, 2018
The first example of the output element incorrectly referenced input elements in the "for" attribute by their names. This changes the example to reference input elements by their ids instead. Fixes #3312.
alice
pushed a commit
to alice/html
that referenced
this issue
Jan 8, 2019
The first example of the output element incorrectly referenced input elements in the "for" attribute by their names. This changes the example to reference input elements by their ids instead. Fixes whatwg#3312.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm a bit confused by the text about the
<output>
element and itsfor
attribute.When I understand it correctly, it says the
for
attribute is a list of IDs of other form elements:The spec then shows an example, which demonstrates how to use the
<output>
element. Here it uses a list of names of other form elements:I assume I'm missing something. Is the name of a form element considered an id? Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: