Skip to main content

Bug Tracker

Side navigation

#14024 closed bug (cantfix)

Opened June 14, 2013 02:13PM UTC

Closed June 14, 2013 08:08PM UTC

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/

Attachments (0)
Change History (1)

Changed June 14, 2013 08:08PM UTC by gibson042 comment:1

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.