LVel / ie7-js

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

Advanced selectors on src attribute of transparent PNGs use wrong value #215

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When using an advanced selector like img[src*="foo"] on a transparent PNG 
that has been fixed for IE6, instead of operating on the URL of the PNG, 
it operates on the URL of blank.gif because that is what src points to by 
this point.

Making the CSS get fixed before the HTML seems like a bad idea since I'm 
sure it's the other way round for good reason. I know that the PNG URL is 
still available as pngSrc but IE7._getAttribute() already handles that. 
The advanced selector code only uses this function if no operator is 
given. I'm not sure why. Is this performance-related? I've changed the 
condition from 'if (operator)' to 'if (operator && attr != "src")' which 
works for me. I don't expect it would have any ill effects in other cases.

What do you think?

Original issue reported on code.google.com by JerseyChewi@gmail.com on 17 Dec 2009 at 4:54

GoogleCodeExporter commented 8 years ago
This is fixed in the next release (2.1).

Original comment by dean.edw...@gmail.com on 10 Feb 2010 at 9:54