keithclark / selectivizr

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

Error in IE8 when there is "input:focus:invalid" in css #60

Closed PG-kura closed 11 years ago

PG-kura commented 11 years ago

To "Twitter Bootstrap 2.3.1" contains the css like this.

input:focus:invalid,
textarea:focus:invalid,
select:focus:invalid {
  color: #b94a48;
  border-color: #ee5f5b;
}

Error dialog similar to the following is displayed in IE8 using both selectivizr.js above.

invalid error

benjamincharity commented 11 years ago

I don't believe that IE8 supports multiple pseudo classes. Also, Selectivizr adds CSS selector support to various Javascript libraries...not the browser itself. So the above CSS will still throw an error, but you would be able to use the selectors within your Javascript: eg $('div:last-child')...

PG-kura commented 11 years ago

All right. Thank you.