gehuangyi20 / ie7-js

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

ie7.js breaks when using invalid id's in the CSS file. #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When using CSS files with (admittedly), wrong CSS rules, ie.js breaks up.
With a css like this:

#MB_overlay[id] { position: fixed; }

IE complains about javascript errors while parsing the style. I don't
expect it to honor this rule, since it is plain wrong and has been posted
as a separate bug,

http://code.google.com/p/modalbox/issues/detail?id=180

But the point is, I would expect ie7 to graceful recover from this. A
javascript error because the CSS guy misnamed a selector may not be a good
idea.

Original issue reported on code.google.com by icol...@gmail.com on 1 Feb 2008 at 4:51

GoogleCodeExporter commented 9 years ago
#MB_overlay[id] actually this is a valid CSS selector. :-)

The where was a pretty bad bug in the first beta of IE7.js where it threw an 
error if
it couldn't find an ID. This will be fixed in the next beta.

Original comment by dean.edw...@gmail.com on 1 Feb 2008 at 5:02

GoogleCodeExporter commented 9 years ago

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