edusis / ie7-js

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

Some differences between MSIE6 and MSIE7/8 regarding attribute selectors #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The purpose of IE7.js is to make IE6 as fonctionnal as IE7, but in this
case it adds fonctionnalities that are not existing in IE7.

In IE7 you can't style an element by pointing the attributes width and
height having a value :

CSS

img[width="100"]{margin:2px;padding:2px;border:2px dashed #f00;} OR
img[width=100]{margin:2px;padding:2px;border:2px dashed #f00;}

HTML

<img src="http://farm1.static.flickr.com/214/464702412_4643429fe4_m.jpg"
alt="ordinateur Apple" width="100" height="89" />

It doesn't work in IE7 with OR without the scripts IE7.js or ie8.js
However it works in IE6 with any of the two scripts 

Original issue reported on code.google.com by eric.eri...@gmail.com on 6 Mar 2008 at 2:37

Attachments:

GoogleCodeExporter commented 8 years ago
Just wanted to point out that IE7.js was made prior to IE7 being officially
announced. As such, it could not have had its purpose to make IE6 as functional 
as
the official IE7. And, in many cases, IE7.js supports CSS properties that no 
other
browsers support.

But, rather than IE7.js going too far, you're suggesting that it's not going far
enough because it does not manipulate selectors in IE7, itself. Correct?

Original comment by wayne.el...@gmail.com on 25 Aug 2008 at 12:59

GoogleCodeExporter commented 8 years ago
This seems to be a bug in MSIE7. IE7.js does not bother to fix attribute 
selectors in 
MSIE7+ because they are supposed to work. Most attribute selectors seem to work 
OK but 
I may have to fix a select few (e.g. img[width]). I'm going to change this to 
low 
priority and fix it in another release.

Original comment by dean.edw...@gmail.com on 11 Feb 2010 at 2:00

GoogleCodeExporter commented 8 years ago

Original comment by dean.edw...@gmail.com on 12 Feb 2010 at 2:56

GoogleCodeExporter commented 8 years ago
Issue 52 has been merged into this issue.

Original comment by dean.edw...@gmail.com on 14 Feb 2010 at 10:49