[Webkit-unassigned] [Bug 12339] New: XML DOM operations involving two documents don't match IE/Fx behavior

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 19 22:24:23 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=12339

           Summary: XML DOM operations involving two documents don't match
                    IE/Fx behavior
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: XML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jcostell at tibco.com


I think that Safari probably has the more spec-compliant implementation but I
report this for the sake of cross-browser AJAX compatibility.

appendChild, insertBefore, replaceChild, and setAttributeNode (could there be
more?) fail when the argument is a node from a different XML document. In IE
and Fx these methods behave as though the nodes are in the same document. No
special logic is necessary to test whether the ownerDocument property of the
two nodes is the same.

The work around is to use importNode(), call one of the above methods passing
in the imported node, and remove the argument node from its parent node in the
other document.


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



More information about the webkit-unassigned mailing list