Modify ↓
Ticket #7564 (closed bug: duplicate)
Chrome and Safari seem to strip double quotes van result form .css()
| Reported by: | wj.vandenbrink@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.5 |
| Component: | unfiled | Version: | 1.4.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Using .css() gives different results depending on browser, namely minimally one difference between Firefox, IE, Opera on the one hand and Chrome and Safari on the other, specifically: double quotes are absent in the Crhome-result while present in the Fireforx-result:
backgroundurlnow = $('div.backgroundholder').css('background-image');////want to know background image
alert(backgroundurlnow);
gives in the alertbox:
url("http://localhost--etc--.jpg")
with Firefox, IE and Opera, but
url(http://localhost--etc--.jpg)
with Crhome and Safary
(jquery-1.4.4.min.js)
Change History
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.
