Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#9551 closed bug (invalid)

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:
Blocked by: Blocking:

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 (2)

comment:1 Changed 12 years ago by timmywil

Component: unfiledmanipulation
Priority: undecidedlow
Resolution: invalid
Status: newclosed

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 12 years ago by andy

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

Note: See TracTickets for help on using tickets.