[Webkit-unassigned] [Bug 38984] New: document.documentElement content replacing crash silently

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 12 04:43:04 PDT 2010


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

           Summary: document.documentElement content replacing crash
                    silently
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows 7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: gildas.lormeau at gmail.com


I have an issue when I run this script after a page is loaded into the web developer console on chrome and safari : 

doc = document.documentElement.cloneNode(true); 
document.replaceChild(doc, document.documentElement); 

It should replace the document element by its clone and remain intact. Most of the time, the page becomes blank or style sheets are not interpreted.

For example, on http://groups.google.com/a/chromium.org/group/chromium-extensions/browse_thread/thread/2f56dc162846c27b/017a1f103d5bf795#017a1f103d5bf795. 

All I get is a blank page with only 3 "script" elements in the "head" of and no "body" element in the document on chrome. On safari, I see is an additional "script" element after the 3 "style" elements.

This bug does not happen with firefox 3.6.3, opera 10.53 and ie8 for the same URL.

-- 
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