• rniwa@webkit.org's avatar
    Implement Document.cloneNode() · 62d23d55
    rniwa@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=11646
    
    Reviewed by Darin Adler.
    
    Source/WebCore: 
    
    Merge https://chromium.googlesource.com/chromium/blink/+/dc7879025e01d63be9fcf6a84ca6c9b8b5768a80
    
    Implement the behavior specified in the current DOM4 working draft:
    http://www.w3.org/TR/2013/WD-dom-20131107/#dom-node-clonenode
    
    Tests: fast/dom/Document/clone-node.html
           fast/dom/HTMLDocument/clone-node-quirks-mode.html
           svg/custom/clone-node.html
    
    * dom/Document.cpp:
    (WebCore::Document::cloneNode):
    (WebCore::Document::cloneDocumentWithoutChildren):
    (WebCore::Document::cloneDataFromDocument):
    * dom/Document.h:
    * html/HTMLDocument.cpp:
    (WebCore::HTMLDocument::cloneDocumentWithoutChildren):
    * html/HTMLDocument.h:
    * svg/SVGDocument.cpp:
    (WebCore::SVGDocument::cloneDocumentWithoutChildren):
    * svg/SVGDocument.h:
    
    LayoutTests: 
    
    * dom/xhtml/level3/core/documentgetinputencoding04-expected.txt:
    * dom/xhtml/level3/core/documentgetxmlencoding05-expected.txt:
    * dom/xhtml/level3/core/nodeisequalnode01-expected.txt:
    * dom/xhtml/level3/core/nodeisequalnode21-expected.txt:
    * dom/xhtml/level3/core/nodeisequalnode25-expected.txt:
    * dom/xhtml/level3/core/nodeisequalnode26-expected.txt:
    * fast/dom/Document/clone-node-expected.txt: Added.
    * fast/dom/Document/clone-node.html: Added.
    * fast/dom/HTMLDocument/clone-node-quirks-mode-expected.txt: Added.
    * fast/dom/HTMLDocument/clone-node-quirks-mode.html: Added.
    * svg/custom/clone-node-expected.txt: Added.
    * svg/custom/clone-node.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    62d23d55
Name
Last commit
Last update
..
html Loading commit data...
svg/level3/xpath Loading commit data...
xhtml Loading commit data...