• andersca's avatar
    2006-01-03 Anders Carlsson <andersca@mac.com> · c70d1c6a
    andersca authored
            Reviewed by Darin.
    
            - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=5177
            Javascript cloneNode(deep) does not clone form elements correctly
    
            * khtml/html/html_elementimpl.cpp:
            (HTMLElementImpl::cloneNode):
            Call copyNonAttributeProperties on the new node.
    
            * khtml/html/html_formimpl.cpp:
            (DOM::HTMLInputElementImpl::copyNonAttributeProperties):
            * khtml/html/html_formimpl.h:
            Copy m_value, m_checked and m_indeterminate here.
    
            * khtml/xml/dom_docimpl.cpp:
            (DocumentImpl::importNode):
            Call copyNonAttributeProperties on the new node.
    
            * khtml/xml/dom_elementimpl.cpp:
            (ElementImpl::cloneNode):
            Call copyNonAttributeProperties on the new node.
    
            * khtml/xml/dom_elementimpl.h:
            (DOM::ElementImpl::copyNonAttributeProperties):
            Add function declaration.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11852 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c70d1c6a
ChangeLog 75.2 KB