Opened 10 years ago
Closed 10 years ago
#12710 closed bug (notabug)
Complex :not fails in IE 8
Reported by: | 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 10 years ago by
Component: | unfiled → selector |
---|---|
Resolution: | → notabug |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
:lang
is not supported by jQuery, but will still work in modern environments withquerySelectorAll
.