Bug Tracker

Opened 7 years ago

Closed 7 years ago

#12710 closed bug (notabug)

Complex :not fails in IE 8

Reported by: robert@… Owned by:
Priority: undecided Milestone: None
Component: selector Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:

Description

This works in firefox, and IE 9, but fails in IE 8 (shows both instead of just English): <div lang='en'>

<h1 class='en-only'>English</h1> <h1 class='de-only'>German</h1>

</div> <script> $(document).ready(function(){

$('.en-only:not(:lang(en)),.de-only:not(:lang(de))').hide();

}) </script> http://jsfiddle.net/tvtds/

Change History (1)

comment:1 Changed 7 years ago by gibson042

Component: unfiledselector
Resolution: notabug
Status: newclosed

:lang is not supported by jQuery, but will still work in modern environments with querySelectorAll.

Note: See TracTickets for help on using tickets.