duckfly-tw / ie7-js

A JavaScript library to make MSIE behave like a standards-compliant browser.
http://code.google.com/p/ie7-js
0 stars 0 forks source link

Breaks CSS in IE7 #253

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As far as I can tell, this library doesn't work in IE7 at all. The JS 
script removes all CSS styles without re-applying them.

What steps will reproduce the problem?
1. Setup a page to use IE8.js or IE9.js.
2. Load the page in IE7 or IE8 compatibility mode.

What is the expected output? What do you see instead?
Expected: Page with CSS styles applied.
Actual: Page with CSS stripped.

What version of the product are you using? On what operating system?
*Windows XP and up
*IE7, and IE8 in compatibility mode
*IE9.js v2.1 beta4

Please provide any additional information below.
Demo page (w/ JS alerts): http://dev.arrowquick.com/ie7js-test/

Original issue reported on code.google.com by arrowqui...@gmail.com on 3 Jun 2010 at 8:03

GoogleCodeExporter commented 9 years ago
I was having this issue in IE6 and IE7 but not IE8.

I had only 1 stylesheet for the screen and a one for IE only.

My HTML was valid HTML5, my JavaScript showed no issues in JSLint while 
checking "The Good Parts", though my CSS was invalid due to including the 
styles generated by the jQuery UI theme roller and also the YUI 
reset/base/fonts styles.

Upon including the YUI styles directly from the Yahoo site, and moving the UI 
theme into its own file, suddenly IE9.js began to work.

I presume this either has something to do with the length of my CSS file (I've 
heard IE can only handle a maximum number of lines) or because both the YUI 
reset and the jQuery UI theme both had loads of non-valid rules in them.  Or 
maybe it is something to do with the amount of CSS link elements in the head of 
the document, though that is contrary to a suggestion/observation on this post: 
http://code.google.com/p/ie7-js/issues/detail?id=256

Original comment by karlito....@gmail.com on 5 Aug 2010 at 3:17

GoogleCodeExporter commented 9 years ago
Also having the exact same problem!

Original comment by perryro...@gmail.com on 15 Jan 2011 at 3:46

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It seems this problem is related to bug 273.  Adding
a space after every open brace character in the
minified css gets things working again here.

http://code.google.com/p/ie7-js/issues/detail?id=273

Original comment by sean.est...@gmail.com on 20 Feb 2011 at 5:30