WebCore:
authorandrew@webkit.org <andrew@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 6 Jan 2008 11:27:45 +0000 (11:27 +0000)
committerandrew@webkit.org <andrew@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 6 Jan 2008 11:27:45 +0000 (11:27 +0000)
commitd25398312b79b0c11c87e9fcf35c71d015459d60
treec74464f7c4225995306cd5a1b453a576128c3cc1
parent3bff1a69540d5a12447bf627a8d8a0c8ae401f4a
WebCore:

        Reviewed by Darin.

        DOMRange.cloneContents does not work (Acid3 bug)
        http://bugs.webkit.org/show_bug.cgi?id=16748

        When cloning an empty range, return an empty DocmentFragment instead of
        null or undefined.

        Test: fast/dom/Range/range-clone-empty.html

        * dom/Range.cpp:
        (WebCore::Range::processContents):

LayoutTests:

        Reviewed by Darin.

        DOMRange.cloneContents does not work (Acid3 bug)
        http://bugs.webkit.org/show_bug.cgi?id=16748

        When cloning an empty range, return an empty DocmentFragment instead of
        null or undefined.

        * fast/dom/Range/range-clone-empty-expected.txt: Added.
        * fast/dom/Range/range-clone-empty.html: Added.
        * fast/dom/Range/resources/range-clone-empty.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29207 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/Range/range-clone-empty-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/Range/range-clone-empty.html [new file with mode: 0644]
LayoutTests/fast/dom/Range/resources/range-clone-empty.js [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Range.cpp