Bug Tracker

Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#1170 closed bug (fixed)

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.

Change History (5)

comment:1 Changed 10 years ago by john

Milestone: 1.1.31.1.4
Owner: set to john
Version: 1.1.21.1.3

comment:2 Changed 10 years ago by john

Resolution: fixed
Status: newclosed

Fixed in SVN rev [2432].

comment:3 Changed 9 years ago by harningt

Resolution: fixed
Status: closedreopened

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

comment:4 Changed 9 years ago by flesler

Resolution: fixed
Status: reopenedclosed

Won't break it anymore. Fixed at [5575].

comment:5 Changed 9 years ago by flesler

Milestone: 1.1.41.2.4
Note: See TracTickets for help on using tickets.