Closed Bug 937790 Opened 12 years ago Closed 12 years ago

<input> form Attribute cannot refer to more than one form

Categories

(Core :: DOM: Core & HTML, defect)

28 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mikhail.v.gavrilov, Unassigned)

Details

(Whiteboard: [bugday-20131113])

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 (Beta/Release) Build ID: 20131112040208 Steps to reproduce: On page http://www.w3schools.com/html/html5_form_attributes.asp described form Attribute. And said Tip: To refer to more than one form, use a space-separated list of form ids. I try this in example: <!DOCTYPE html> <html> <body> <form action="demo_form.asp" id="form2"> </form> <form action="demo_form.asp" id="form1"> </form> <input type="text" name="fname1" form="form1"><br> <input type="text" name="fname2" form="form2 form1"><br> <input type="submit" value="Submit" form="form1"> <input type="submit" value="Submit" form="form2"> </body> </html> fname2 should sent by pressing any button, but the value is never sent. This is browser bug or mistake in w3schools manual?
I guess reproduced with 2013-11-13-03-02-05-mozilla-central-firefox-28.0a1.en-US.linux-x86_64.
Component: Untriaged → General
Whiteboard: [bugday-20131113]
Component: General → DOM
Product: Firefox → Core
Boris, can you please take a look ?
From the spec: If a reassociateable form-associated element has a form attribute specified, then that attribute's value must be the ID of a form element in the element's owner Document. So having a list of IDs here is not in fact valid per the spec. As in, w3schools is (as usual) wrong.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Mikhail, thank you for reporting this, by the way. Would you be willing to let w3schools know about this problem in their documentation? They seem to be filtering all mail from me directly to trash...
Yes, I try report about this issue to w3schools, but without any success. So described on w3schools behavior be better. For example I could take several forms and one form button submit1 would save select1, input1, input2 in database. submit2 sent value of select1 in a modal window to get a detailed description of the selected object in select1
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: