How can I check if a browser supports the formtarget or the form attribute?
Modernizr is no help here and I couldn’t even find something on the web on the current state of form support in browsers. Although a quick test revealed all current browsers except IE 9 do support them.
So how can I check if a browser handles the form* attributes?
The form attribute on input is a special case. It was used before the HTML5 feature, to reference the parent form, but now it’s used as an attribute as well, so you will have false positives on IE.
There is a checking function but it involves interaction with DOM which will probably affect performance, but here you go anyway. Hope it helps.