Bug Tracker

Opened 10 years ago

Closed 10 years ago

#14024 closed bug (cantfix)

The 'contains' attribute selector is failing in IE8

Reported by: spiderplant0 Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.1
Keywords: Cc:
Blocked by: Blocking:

Description

This selector doesnt seem to work with internet explorer 8:

$('img[style*="float"][style*="left"]')

For html like this ...

<img src="http://jsfiddle.net/img/logo.png" style="float:left" width="100" height="100">

jsFiddle...

http://jsfiddle.net/spiderplant0/KZGFD/

Due to issues with IE8 need to run the fiddle through special link ...

http://fiddle.jshell.net/spiderplant0/KZGFD/show/light/

Change History (1)

comment:1 Changed 10 years ago by gibson042

Resolution: cantfix
Status: newclosed

IE normalizes the case of style declarations (in your case, to FLOAT: left); we are not aware of a way to get the unmodified values. Consider matching on classes instead, or—if you must use style—employing a filter function instead of a string selector.

Note: See TracTickets for help on using tickets.