Do any browsers support the form attribute on input elements?

前端 未结 3 695
一向
一向 2021-01-11 16:40

The HTML5 spec allows form-associated elements to refer to their associated

element via the [form] attribute. Do any browsers support this natively
相关标签:
3条回答
  • 2021-01-11 16:59

    See:

    • http://www.impressivewebs.com/html5-form-attribute/
    • http://swatelier.info/at/forms/HTML5attrib.asp

    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/

    0 讨论(0)
  • 2021-01-11 17:17

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

    0 讨论(0)
  • 2021-01-11 17:20

    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.

    0 讨论(0)
提交回复
热议问题