Bug Tracker

Modify

Ticket #7564 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

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

comment:1 Changed 2 years ago by snover

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

comment:2 Changed 2 years ago by snover

Duplicate of #3923.

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

View

Add a comment

Modify Ticket

Action
as closed
Author


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

 
Note: See TracTickets for help on using tickets.