[Webkit-unassigned] [Bug 43953] New: innerHTML Delete HEAD and BODY tags

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 13 00:28:19 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=43953

           Summary: innerHTML Delete HEAD and BODY tags
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rob at silentrob.me


Given 

main = document.getElementsByTagName("BODY")[0];
var div = document.createElement('DIV');
div.innerHTML = "<head>This is Second Head Node</HEAD>";
main.appendChild(div);

The HEAD tag is not created. Same for Body.

This approach does work.
main = document.getElementsByTagName("BODY")[0];
var div = document.createElement('DIV');
var body = document.createElement('BODY');
div.appendChild(body);
main.appendChild(div);

This issue appears to be identical to this FF issue.
https://bugzilla.mozilla.org/show_bug.cgi?id=189051

Cheers
Rob

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list