WebCore:
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 May 2006 19:26:09 +0000 (19:26 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 May 2006 19:26:09 +0000 (19:26 +0000)
commit1ffb2262c2143b13cc6fc5d79dba69b963862a8e
treeef6a0b108ca7459221fa2745d61abbb6e70f1eb2
parent730002f6eb0684c8623dc431186eb5d0002b365c
WebCore:

2006-05-24  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Maciej.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=9093
        Implement document.scripts

        * bindings/js/kjs_html.cpp:
        (KJS::JSHTMLDocument::getValueProperty):
        Return document.scripts() instead of a placeholder object.

        * dom/Document.cpp:
        (WebCore::Document::scripts):
        * dom/Document.h:
        Add Document::scripts.

        * html/HTMLCollection.cpp:
        (WebCore::HTMLCollection::traverseNextItem):
        * html/HTMLCollection.h:
        (WebCore::HTMLCollection::):
        Add scripts collection type which traverses all script elements.

LayoutTests:

2006-05-24  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Maciej.

        Add tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=9093
        Implement document.scripts

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

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14564 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/document-scripts-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/document-scripts.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/bindings/js/kjs_html.cpp
WebCore/dom/Document.cpp
WebCore/dom/Document.h
WebCore/html/HTMLCollection.cpp
WebCore/html/HTMLCollection.h