jQuery: The Write Less, Do More JavaScript Library

Ticket #1170 (closed bug: fixed)

Opened 1 year ago

Last modified 3 months ago

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

Reported by: bilcorry Assigned to: john
Type: bug Priority: minor
Milestone: 1.2.4 Component: core
Version: 1.1.3 Keywords: ie7 attr style
Cc: Needs: Review

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

Change History

Changed 1 year 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

Changed 1 year ago by john

  • status changed from new to closed
  • resolution set to fixed

Fixed in SVN rev [2432].

Changed 6 months ago by harningt

  • status changed from closed to reopened
  • resolution deleted

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

Changed 3 months ago by flesler

  • status changed from reopened to closed
  • resolution set to fixed

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

Changed 3 months ago by flesler

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