Skip to content
  • morrita@google.com's avatar
    ShadowRoot.cloneNode() must always throw a DATA_CLONE_ERR exception. · 3fb96f93
    morrita@google.com authored
    https://bugs.webkit.org/show_bug.cgi?id=91704
    
    Reviewed by Kentaro Hara.
    
    Source/WebCore:
    
    This change implement ShadowRoot::cloneNode() which throws an exception.
    This also adds an overloaded version cloneNode() to ShadowRoot.idl
    which is enabled only for JavaScript instead of changing the
    signature of Node::cloneNode().
    
    Note that changing the existing signature can break GObject bindings
    compatibility.
    
    Test: fast/dom/shadow/shadowroot-clonenode.html
    
    * dom/ShadowRoot.cpp:
    (WebCore::ShadowRoot::cloneNode):
    (WebCore):
    * dom/ShadowRoot.h:
    (ShadowRoot):
    * dom/ShadowRoot.idl:
    
    LayoutTests:
    
    * fast/dom/shadow/shadowroot-clonenode-expected.txt: Added.
    * fast/dom/shadow/shadowroot-clonenode.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127580 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    3fb96f93