Do any browsers support the form attribute on input elements?

前端 未结 3 694
一向
一向 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 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.

提交回复
热议问题