Reviewed by Trey.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Mar 2003 18:28:40 +0000 (18:28 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Mar 2003 18:28:40 +0000 (18:28 +0000)
commit344813eb338501674066b2fdaf61c2fa2bcf6203
treeed938c58a1dfff865e90531bcb0563297b1d4a6c
parent4c8de21bf9953bdce569ee460b3524f9ede1c721
    Reviewed by Trey.

- fixed 3180364 -- infinite loop in JavaScript at www.vw.dk (due to document.anchors problem) leads to hang

        The underlying problem was that our document.anchors had all the anchors in it.
        But here's what the Gecko DOM reference documentation says about document.anchors:
        "For reasons of backwards compatibility, the returned set of anchors only contains
        those anchors created with the name attribute, not those created with the id attribute."

        * khtml/html/html_miscimpl.cpp:
        (HTMLCollectionImpl::calcLength): Include only A elements with NAME attributes in the DOC_ANCHORS case.
        (HTMLCollectionImpl::getItem): Ditto.
        (HTMLCollectionImpl::getNamedItem): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@3725 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog-2003-10-25
WebCore/ChangeLog-2005-08-23
WebCore/khtml/html/html_miscimpl.cpp