Bug Tracker

Modify

Ticket #6824 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

Path of Background Image wrapped by " cause browsers fail to display a image?

Reported by: daveygger Owned by:
Priority: Milestone:
Component: css Version: 1.4.2
Keywords: Cc:
Blocking: Blocked by:

Description

I used a script to generate a bunch of <li> and insert them into my page using jquery's prepend() function.

Then, I use jquery's CSS() function to set a background-image for them.

$(".myLi").css(...) Unfortunately no bg image was showed.

And I found no matter what I enter, what I saw in Firefox's DOM Source of Selection is: background-image: url(&quot;1.jpg&quot;);

Thanks for taking time to investigate my problem. Best, Davey

Change History

comment:1 Changed 3 years ago by daveygger

I found what's going on with my code. And problem solved.

This is not jQuery's bug but Firefox (I guess). Thanks.

comment:2 Changed 3 years ago by dmethvin

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

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.