1

I noticed selectivizr does not support [attr*=] using jQuery.

Any ideas on how I could support the following selector in ie8?

a:not([class*="st-"])
BoltClock
  • 700,868
  • 160
  • 1,392
  • 1,356
Jack Zerby
  • 135
  • 2
  • 8

1 Answers1

1

Quote from w3schools:

Note: IE8 and earlier do not support the :not selector.

I believe that's the only bit that doesn't work in IE8.

The [attribute*=value] selector is supported in all major browsers.

Note: For this selector to work in IE8 and earlier, a <!DOCTYPE> must be declared.

So if you have Selectivizr to fix the :not() part, I don't see why it shouldn't work.

Community
  • 1
  • 1
Mathijs Flietstra
  • 12,900
  • 3
  • 38
  • 67
  • Right, but selectivizr will help with :not – Jack Zerby May 17 '13 at 13:59
  • 2
    This isn't an answer, it's a comment. Also http://caniuse.com is a much better resource for browser support. – James Donnelly May 17 '13 at 14:00
  • @JamesDonnelly I felt like it was the only real valid answer. Only other thing he could have done is show *how* to get Selectivizr to fix the `:not()` part. – VoidKing May 17 '13 at 14:11
  • @VoidKing he has edited the answer since. This was the original: http://stackoverflow.com/revisions/a356bf94-0c66-4efe-9a31-ac1f6cae554a/view-source – James Donnelly May 17 '13 at 14:13