Skip to content Skip to sidebar Skip to footer

Do Any Browsers Support The Form Attribute On Input Elements?

The HTML5 spec allows form-associated elements to refer to their associated
element via the [form] attribute. Do any browsers support this natively?

Solution 1:

See:

The form attribute is supported since Firefox 4, Opera 9.5, Safari 5.1 and Chrome 10, but not on IE yet.

Here's a test page:

http://www.impressivewebs.com/demo-files/html5-form-attribute/

Solution 2:

Opera 9.5+, Safari 5.1+, Firefox 4+, Chrome 10+

Solution 3:

Chrome v25 does not seem to recognize the use of the form attribute. A form that contains an element that has "form='xxx'" in it will not show up in that form's submitted content if the form name/id does not match the value of the form attrib. Also if the form attrib contains two form names, it will not show up at all, even if one of the names matches the form's name/id. Strange behavior.

Post a Comment for "Do Any Browsers Support The Form Attribute On Input Elements?"