Opened 13 years ago
Closed 13 years ago
#5714 closed bug (invalid)
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
Change History (2)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
"The HTML string cannot contain elements that are invalid within a div, such as html, head, body, or title elements."
Note: See
TracTickets for help on using
tickets.
Looks like this may be an issue with the
<title>
element specifically, which is strange.