gehuangyi20 / ie7-js

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

safari css hack breaks ie7-js script #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Insert into a page, the ie7-js script and a safari css hack as this one:
/*\*/
html>body*.safari_search_button {padding-left:2px; }
/**/

2. Load the page into IE6

What is the expected output? What do you see instead?

It should behave normally, but the safari css hack breaks the script and 
IE6 informs you of a "javascript syntax error". The script doesn't do its 
job.

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

http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js

IE6 and WinXP

Please provide any additional information below.

Safari has a way to get styles only applied to it. It should be compatible 
with ie7 script.

Original issue reported on code.google.com by dbrou...@gmail.com on 7 Dec 2008 at 2:22

GoogleCodeExporter commented 9 years ago
Even if it is a well documented hack, it is still non-standard behavior and 
there is 
no guarantee that it won't break something else.

I can't agree that this is a bug since the point of IE8 is to avoid the use of 
CSS 
hacks.

Original comment by miles.ca...@gmail.com on 9 Dec 2008 at 5:34

GoogleCodeExporter commented 9 years ago
I have to agree with the previous comment. The point of IE7.js is to get rid of 
hacks. 
Presumably, IE7.js is parsing the CSS correctly and Safari is not.

Original comment by dean.edw...@gmail.com on 11 Feb 2010 at 6:40