Side navigation
#12710 closed bug (notabug)
Opened October 11, 2012 09:51PM UTC
Closed October 12, 2012 03:25AM UTC
Complex :not fails in IE 8
Reported by: | robert@mckee.org | 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>
Attachments (0)
Change History (1)
Changed October 12, 2012 03:25AM UTC by comment:1
component: | unfiled → selector |
---|---|
resolution: | → notabug |
status: | new → closed |
:lang
is not supported by jQuery, but will still work in modern environments withquerySelectorAll
.