gehuangyi20 / ie7-js

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

:first-child:before content bug in IE9.js #267

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use ie9.js v2.1(beta 4) on your page
1. add :before to a list of elements and change their "content" css tag
2. add :first-child:before to an element and try to change it's "content" CSS 
tag to something different
3. the :first-child:before content will not change as it should

What is the expected output? What do you see instead?
I made a test case showing off ie8.js and ie9.js here: 
http://coffeeandcode.com/sandbox/ie7.js/ie9-testing.html

It works properly if you do not use ie9.js on IE8, but works correctly in IE8 
by itself. I have still included ie8.js on the page for IE 7 and below.

What version of the product are you using? On what operating system?
IE9.js v2.1 (beta4) on IE8 on Windows 7.

Please provide any additional information below.

Original issue reported on code.google.com by jonkn...@me.com on 22 Jul 2010 at 1:21

GoogleCodeExporter commented 9 years ago
Hello,

Yes I've had a similar problem using ie9.js and IE7. The following selector:

ul li:first-child:before {
... [STYLES HERE]
}

... is not honoured by IE7. Styles appear as expected in other (non-IE) 
browsers.

Comments would be appreciated.

Regards,

Grant Bailey

Original comment by grantmal...@gmail.com on 14 Oct 2010 at 8:13

GoogleCodeExporter commented 9 years ago
i have a similar problem, li:last-child:after{ not working, i believe it's 
because of the double-pseudo-class

Original comment by catalin....@filipnet.ro on 23 Sep 2011 at 11:47

GoogleCodeExporter commented 9 years ago
Hopefully it can be fixed soon.

Original comment by grantmal...@gmail.com on 24 Sep 2011 at 6:40

GoogleCodeExporter commented 9 years ago
Same problem on IE8 with :first-child:before.
IE7 and IE9 are working fine with IE9.js v2.1 (beta4).

Original comment by kreative...@gmail.com on 1 Jun 2012 at 1:53

GoogleCodeExporter commented 9 years ago
Speaking up that this is an issue for me also with the latest IE9.js

Original comment by R3mo...@gmail.com on 10 Jul 2012 at 1:41

GoogleCodeExporter commented 9 years ago
temporary fix (tested on IE8 only):
in IE9.js v2.1 beta4 (src file): remove "first" from line 2333

Original comment by deke...@gmail.com on 18 Dec 2012 at 1:32

GoogleCodeExporter commented 9 years ago
Thanks, It worked :-)

Original comment by win...@gmail.com on 16 Apr 2014 at 11:50