2011-06-01 Abhishek Arya <inferno@chromium.org>
authorAbhishek Arya <inferno@chromium.org>
Wed, 1 Jun 2011 23:13:53 +0000 (23:13 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Tue, 21 Jun 2011 21:38:29 +0000 (18:38 -0300)
commit5719fe245d43b220511fb2ecb9cca2fd2781e030
treef7d18c8d2589c7e304e80ee35313f070c97dfc8e
parent645d1010f47ef32a414101746e027e7e6236401f
2011-06-01  Abhishek Arya  <inferno@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Fix setting of document.body
        https://bugs.webkit.org/show_bug.cgi?id=60831

        1. Only allowing setting to an element if it has a body tag.
        2. If element is from another document, import it.

        Test: fast/dom/document-set-body.html

        * dom/Document.cpp:
        (WebCore::Document::setBody):
2011-06-01  Abhishek Arya  <inferno@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Tests setting document.body to non body elements, elements in other
        documents.
        https://bugs.webkit.org/show_bug.cgi?id=60831

        * fast/dom/document-set-body-expected.txt: Added.
        * fast/dom/document-set-body.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87863 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/document-set-body-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/document-set-body.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/dom/Document.cpp