HTML5-Form-Shim icon indicating copy to clipboard operation
HTML5-Form-Shim copied to clipboard

select elements aren't shimmed by default

Open dancek opened this issue 12 years ago • 2 comments

Hi, and thanks for the good library!

I don't understand why the default for Form.options.inputs is "input, textarea". I'd hope for select to also be included.

If there's a good reason for this, it should be better documented in README. I also had trouble understanding how all shimmed forms can be (re-)initialized with support for select elements. (I had to read the source to figure it out)

dancek avatar Dec 17 '13 11:12 dancek

Thanks for the feedback. As for the select my reasons were - HTML5 specs hardly provide extension for select element. But I will work on README to make it better

dsheiko avatar Dec 17 '13 11:12 dsheiko

Thanks for the quick reply! :)

The required attribute is defined for selects. That was an important reason for me to use a polyfill in the first place.

dancek avatar Dec 17 '13 14:12 dancek