keithclark / selectivizr

selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8.
1.71k stars 246 forks source link

IE7 does have broken attribute selectors with HTML5 forms #33

Open kylemacfarlane opened 12 years ago

kylemacfarlane commented 12 years ago

Even with the html5 shiv you can't style the new HTML5 inputs in IE7 with attribute selectors (e.g. [type="number"]). Presumably IE7 is setting them to type="text" before the styles are applied and Selectivizr doesn't take this into account and applies the wrong styles (often making the situation worse than if Selectivizr wasn't used at all).

So BROKEN_ATTR_IMPLEMENTATIONS needs to have a value for IE7. I don't really see a good way of doing this without listing out all the new HTML5 inputs. The quick fix is to just change it to ieVersion>7.