W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2001

getElementsByTagNameNS

From: Julian F. Reschke <julian.reschke@greenbytes.de>
Date: Thu, 23 Aug 2001 15:28:34 +0200
To: <www-dom@w3.org>
Message-ID: <JIEGINCHMLABHJBIGKBCKEMOCOAA.julian.reschke@greenbytes.de>
Hi,

a quick question.

Is getElementsByTagNameNS supposed to be able to find elements that are in
no namespace? If yes, how? It seems that Xerces accepts null as
namespaceUri, which seems to be right.

If getElementsByTagNameNS can not match elements which aren't in a
namespace, what's the behaviour of the DOM level 1 method
getElementsByTagName? From what I read it will ignore the namespaceUri and
will only check the name, making it useless for documents where namespaced
elements occur...

Julian
Received on Thursday, 23 August 2001 09:28:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:49 GMT