Side navigation
#5714 closed bug (invalid)
Opened December 25, 2009 11:09PM UTC
Closed December 28, 2009 02:23AM UTC
append() Doesn't Work for <head> Elements in IE
Reported by: | gyrm | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | unfiled | Version: | 1.3.2 |
Keywords: | append, <head> | Cc: | |
Blocked by: | Blocking: |
Description
The following code demonstrates:
var head = $('head');
head.append('<title>Yeah!</title>');
alert(head.html()); "Yeah!" added in FF3.5, Chrome3; not in IE8
var title = document.createElement('title');
title.appendChild(document.createTextNode('Buddy!'));
head[0].appendChild(title);
alert(head.html()); "Buddy!" added in all
Looks like this may be an issue with the
element specifically, which is strange.