WebCore:
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 May 2006 16:27:49 +0000 (16:27 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 May 2006 16:27:49 +0000 (16:27 +0000)
commit6b1743ab14d6c9785d05fd030727a181dda38aa9
tree523820b27e6d5779b466ad1a68e8ccb4375e19c9
parent611f7d9b744b3a70271ed16fabe012dbae33708c
WebCore:

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

        Reviewed by Maciej.

        http://bugzilla.opendarwin.org/show_bug.cgi?id=9017
        Weather2.css incorrectly treated as JavaScript file @ www.live.com

        * dom/Element.cpp:
        (WebCore::Element::getAttribute):
        (WebCore::Element::setAttribute):
        (WebCore::Element::removeAttribute):
        (WebCore::Element::getAttributeNode):
        (WebCore::Element::hasAttribute):
        Use new getAttributeItem method.

        * dom/NamedAttrMap.cpp:
        (WebCore::NamedAttrMap::getNamedItem):
        (WebCore::NamedAttrMap::removeNamedItem):
        Use new getAttributeItem method.

        (WebCore::NamedAttrMap::getAttributeItem):
        * dom/NamedAttrMap.h:
        New method which returns the attribute based on the nodeName.

LayoutTests:

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

        Reviewed by Maciej.

        Update tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=9017
        Weather2.css incorrectly treated as JavaScript file @ www.live.com

        * dom/svg/level3/xpath/XPathNSResolver_lookupNamespaceURI_nist_dmstc-expected.txt:
        This fails in a different way now.

        * dom/xhtml/level3/core/nodelookupnamespaceuri17-expected.txt:
        * dom/xhtml/level3/core/nodelookupnamespaceuri20-expected.txt:
        * dom/xhtml/level3/core/nodelookupprefix17-expected.txt:
        * dom/xhtml/level3/core/nodelookupprefix20-expected.txt:
        * dom/xhtml/level3/core/noderemovechild28-expected.txt:
        * dom/xhtml/level3/core/noderemovechild29-expected.txt:
        These now pass.

        * fast/dom/attribute-namespaces-get-set-expected.txt: Added.
        * fast/dom/attribute-namespaces-get-set.html: Added.
        Add new tests.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
LayoutTests/ChangeLog
LayoutTests/dom/svg/level3/xpath/XPathNSResolver_lookupNamespaceURI_nist_dmstc-expected.txt
LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri17-expected.txt
LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri20-expected.txt
LayoutTests/dom/xhtml/level3/core/nodelookupprefix17-expected.txt
LayoutTests/dom/xhtml/level3/core/nodelookupprefix20-expected.txt
LayoutTests/dom/xhtml/level3/core/noderemovechild28-expected.txt
LayoutTests/dom/xhtml/level3/core/noderemovechild29-expected.txt
LayoutTests/fast/dom/attribute-namespaces-get-set-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/attribute-namespaces-get-set.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Element.cpp
WebCore/dom/NamedAttrMap.cpp
WebCore/dom/NamedAttrMap.h