[Webkit-unassigned] [Bug 38984] document.documentElement cannot be replaced

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 12 16:54:52 PDT 2010


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





--- Comment #5 from gildas <gildas.lormeau at gmail.com>  2010-05-12 16:54:52 PST ---
(In reply to comment #4)
> You don't have to, but having a test case - or steps to reproduce with a live Web site - makes it much clearer what problem is being discussed.

Ok,

Here are the detailed steps to reproduce the bug.

1 - open a new window/tab
2 - enter this URL : http://groups.google.com/a/chromium.org/group/chromium-extensions/browse_thread/thread/2f56dc162846c27b#
3 - wait until the page is fully loaded
4 - open the web developer javascript console (ctrl-shift-j on chrome, ctrl-option-i on safari)
5 - type into the input console : document.replaceChild(document.documentElement.cloneNode(true), document.documentElement); 
6 - press enter
7 - the page becomes blank

Expected result : the page should not become blank. It should remain intact since this script replace document.documentElement by its clone.

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