Skip to main content

Bug Tracker

Side navigation

#1170 closed bug (fixed)

Opened May 11, 2007 04:38PM UTC

Closed May 13, 2008 12:42AM UTC

Last modified May 13, 2008 05:28PM UTC

attr("style","...") doesn't work in IE7

Reported by: bilcorry Owned by: john
Priority: minor Milestone: 1.2.4
Component: core Version: 1.1.3
Keywords: ie7 attr style Cc:
Blocked by: Blocking:
Description

In IE7, this doesn't work on an <img> element (and possibly others, didn't test it):

$(".pics").attr("style","border-style: solid; border-width: 1px; border-color: white;");

But this does work for IE7:

$(".pics").css("border-style","solid").css("border-width","1px").css("border-color","white");

Both work in FF2.

Attachments (0)
Change History (5)

Changed July 21, 2007 12:05AM UTC by john comment:1

milestone: 1.1.31.1.4
owner: → john
version: 1.1.21.1.3

Changed July 21, 2007 12:13AM UTC by john comment:2

resolution: → fixed
status: newclosed

Fixed in SVN rev [2432].

Changed February 12, 2008 07:17PM UTC by harningt comment:3

resolution: fixed
status: closedreopened

Note: This breaks XML that might potentially use the 'style' attribute. Any suggestions on how to fix this?

Changed May 13, 2008 12:42AM UTC by flesler comment:4

resolution: → fixed
status: reopenedclosed

Won't break it anymore.

Fixed at [5575].

Changed May 13, 2008 05:28PM UTC by flesler comment:5

milestone: 1.1.41.2.4