Bug Tracker


Ticket #1170 (closed bug: fixed)

Opened 7 years ago

Last modified 6 years ago

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:
Blocking: Blocked by:


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:


Both work in FF2.

Change History

comment:1 Changed 7 years ago by john

  • Owner set to john
  • Version changed from 1.1.2 to 1.1.3
  • Milestone changed from 1.1.3 to 1.1.4

comment:2 Changed 7 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in SVN rev [2432].

comment:3 Changed 6 years ago by harningt

  • Status changed from closed to reopened
  • Resolution fixed deleted

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

comment:4 Changed 6 years ago by flesler

  • Status changed from reopened to closed
  • Resolution set to fixed

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

comment:5 Changed 6 years ago by flesler

  • Milestone changed from 1.1.4 to 1.2.4

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


Add a comment

Modify Ticket

as closed

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.