[Webkit-unassigned] [Bug 31029] New: Cannot add AJAX loaded content in hierarchy without clone it.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 2 13:19:22 PST 2009


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

           Summary: Cannot add AJAX loaded content in hierarchy without
                    clone it.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
               URL: http://www.agiasofia.gr/test/
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: XML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: gessos.paul at yahoo.gr


I load XHTML with following code:

var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", '?a=3', false);
xmlHttp.send(null);

Then replace a node in document with loaded content:

var where = document.getElementById('here_for_webkit_only');
where.parentNode.replaceChild(xmlHttp.responseXML.documentElement, where);

FAIL!!!!

I must use:

var where = document.getElementById('here_for_webkit_only');
where.parentNode.replaceChild(xmlHttp.responseXML.documentElement.cloneNode(true),
where);

SUCCESS!!!!

Is there a special reason for this?

Check it online at given URL. (the third bug in a row)

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