Skip to main content

Bug Tracker

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>

http://jsfiddle.net/tvtds/

Attachments (0)
Change History (1)

Changed October 12, 2012 03:25AM UTC by gibson042 comment:1

component: unfiledselector
resolution: → notabug
status: newclosed

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