Forum Moderators: not2easy

Message Too Old, No Replies

user agents ignoring /*

requesting code commented out

         

smallcompany

3:04 am on Jul 23, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have some code in css file that is commented out by "/* ... */" characters.

I still get few 404s every day coming from user agents (browsers) that are requesting an image from that part (image has been deleted). UAs seem to be different.

What could cause this?

lavazza

4:52 am on Jul 23, 2009 (gmt 0)

10+ Year Member



I have a hunch that maybe you're unwittingly/unintentionally invoking something like a CSS IE Hack [google.com]

See [positioniseverything.net...]

In 2005 Microsoft started cleaning up a lot of its selector support problems, but a lot of coders were using these IE problems to hack special rules for the Explorer browser. In the long run the newly-supported CSS selectors will make our jobs easier, but in the short run it mean rewriting stylesheets and updating our IE-coddling methods so they don't explode in our faces.

A number of CSS hacks that relied on IEwin's failure to support certain advanced selectors are failing to "work" because IE7 now supports those selectors and so reads CSS rules not intended for it. If this is you, read on... <snip/>