Skip to main content

Bug Tracker

Side navigation

#9551 closed bug (invalid)

Opened June 09, 2011 08:49AM UTC

Closed June 13, 2011 03:04PM UTC

Last modified June 14, 2011 02:59PM UTC

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/

Attachments (0)
Change History (2)

Changed June 13, 2011 03:04PM UTC by timmywil comment:1

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.

Changed June 14, 2011 02:59PM UTC by andy comment:2

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