<rdar://problem/
3993557> REGRESSION (125-180-ish): getElementsByTagName no longer works with namespace designations
* khtml/xml/dom_nodeimpl.cpp:
(NodeBaseImpl::getElementsByTagNameNS): When no namespace is specified, find elements
of the specified name in any namespace to match Mozilla and earlier Safari behavior.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8714
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-02-27 Maciej Stachowiak <mjs@apple.com>
+
+ Reviewed by Vicki.
+
+ <rdar://problem/3993557> REGRESSION (125-180-ish): getElementsByTagName no longer works with namespace designations
+
+ * khtml/xml/dom_nodeimpl.cpp:
+ (NodeBaseImpl::getElementsByTagNameNS): When no namespace is specified, find elements
+ of the specified name in any namespace to match Mozilla and earlier Safari behavior.
+
2005-02-25 Darin Adler <darin@apple.com>
Reviewed by Adele.
NodeImpl::Id idMask = namespaceMask | localNameMask;
if (localName->l && localName->s[0] == '*')
idMask &= ~localNameMask;
- if (namespaceURI && namespaceURI->l && namespaceURI->s[0] == '*')
+ if (!namespaceURI || (namespaceURI->l && namespaceURI->s[0] == '*'))
idMask &= ~namespaceMask;
Id id = 0; // 0 means "all items"