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: http://svn.webkit.org/repository/webkit/trunk@14534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed