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 9 years ago by john

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

comment:2 Changed 9 years ago by john

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

Fixed in SVN rev [2432].

comment:3 Changed 9 years ago by harningt

  • Resolution fixed deleted
  • Status changed from closed to reopened

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 set to fixed
  • Status changed from reopened to closed

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

comment:5 Changed 9 years ago by flesler

  • Milestone changed from 1.1.4 to 1.2.4
Note: See TracTickets for help on using tickets.