Modify ↓
Ticket #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: | |
| Blocking: | Blocked by: |
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
comment:1 Changed 6 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 6 years ago by john
- Status changed from new to closed
- Resolution set to fixed
Fixed in SVN rev [2432].
comment:3 Changed 5 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?
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
