Bug Tracker

Modify

Ticket #9551 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

not work dynamic append css file to head without full path to css file

Reported by: andy Owned by:
Priority: low Milestone: 1.next
Component: manipulation Version: 1.5.2
Keywords: Cc:
Blocking: Blocked by:

Description

IE 6/7/8 bug with jQuery 1.5.2-1.6.1 not work dynamic append css file to head without full path to css file

$('head').append('<link href="/css/style.css" rel="StyleSheet" type="text/css"/>'); - NOT WORK  http://jsfiddle.net/DVkzZ/2/

$('head').append('<link href=" http://jsfiddle.net/css/style.css" rel="StyleSheet" type="text/css"/>'); - WORK!  http://jsfiddle.net/DVkzZ/3/

Change History

comment:1 Changed 2 years ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to manipulation

I don't think this is actually an issue with jQuery. jQuery does not affect what is passed and if it did, I'm not sure we could consistently predict which urls need to be absolute or if link tags are a special case. Either way, it would be extra code. If using the absolute url fixes the problem, I don't think this is something we want to tackle.

comment:2 Changed 2 years ago by andy

ok, but in version 1.4.x or older this work correctly

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.