-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=62464 Enclosing an element means wrapping something around an element, not inserting something into an element. Therefore we need to check if the parent of the element allows insertion rather than checking the element itself. Patch by Zeno Albisser <zeno.albisser@nokia.com> on 2011-09-09 Reviewed by Andreas Kling. * Api/qwebelement.cpp: (QWebElement::prependOutside): (QWebElement::appendOutside): (QWebElement::encloseWith): * tests/qwebelement/tst_qwebelement.cpp: (tst_QWebElement::appendAndPrepend): (tst_QWebElement::encloseWith): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94852 268f45cc-cd09-0410-ab3c-d52691b4dbfc
41d51393