gopycc / ie7-js

Automatically exported from code.google.com/p/ie7-js
0 stars 0 forks source link

:not pseudo-selector not working in IE8? #292

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

- I will try to build a more specific test-case and repost here. But generally, 
I have the :not selector being used in a larger chain selector, as follows:

ul#nav_main li:not(.current_section) ul {...do stuff...}

This works in all modern browsers (FF, Chrome, Safari) that have native support 
for CSS3 :not selector.

And using the ie7-js script, this selector also works in IE7.

However, the entire selector is ignored in IE8.

A quick test with a simpler selector:

div:not(#header) {background:#99FF00; }

Assume html has several divs, including a #header div. In IE7, all divs get 
that background color except the #header div. In IE8, the selector is 
completely ignored - no divs get the color.

What version of the product are you using? On what operating system?

- I am using the IE9 version:
http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js

Original issue reported on code.google.com by david.go...@gmail.com on 18 Nov 2010 at 11:43

GoogleCodeExporter commented 9 years ago
Ah, OK - no need for me to build a test case. The test demo hosted here shows 
the same problem:

http://ie7-js.googlecode.com/svn/test/not.html

- this works in IE7... sorta. I don't have IE7 installed, but the IE Tab 
extension in Firefox shows it working.

- does not work in IE8

btw - OS is Win/XP.

Original comment by david.go...@gmail.com on 18 Nov 2010 at 11:53

GoogleCodeExporter commented 9 years ago
Sorry, another update: seems that perhaps the script is not working in IE8 at 
all. I've just noticed other IE7-js script-enabled CSS selectors that aren't 
working in IE8 that do work in IE7 - e.g.: first-of-type is not working in IE8, 
works in IE7.

Additional info:
I have a fresh install of IE8, just installed it, as an update over my previous 
IE7 version. 

I am using the "Browser Mode: IE7" view mode (available through IE8's developer 
tools) to see this in IE7, and confirm the script appears to be working.

Using the default IE8 browser mode, the script appears to not work as detailed 
above.

Original comment by david.go...@gmail.com on 18 Nov 2010 at 1:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Yes, I couldn't get this to work running IE 9 in IE 8 mode, and gave up.  As 
you said, even http://ie7-js.googlecode.com/svn/test/not.html was failing.

Original comment by kingmot...@gmail.com on 12 Oct 2012 at 7:05