W3C home > Mailing lists > Public > www-dom-ts@w3.org > November 2001

L2-core-getElementsByTagNameNS02

From: David Brownell <david-b@pacbell.net>
Date: Fri, 16 Nov 2001 18:02:22 -0800
To: www-dom-ts@w3.org
Message-id: <05dd01c16f0b$e5bee1a0$6800000a@brownell.org>
I was looking at this and I think either the test needs to change
or the specification does.  The relevant parts of the test (in Java):

    newList = doc.getElementsByTagNameNS ("*", "employee");
    newElement = (Element)newList.item (3);

The problem is that only two elements have a namespace URI,
and that "*" is supposed to match "all namespaces".  Those two
elements are:

    - <employee> ... EMP0001, Margaret Martin
    - <emp:employee> ... EMP0004, Jeny Oconnor

Now, either the spec should be changed so that "*" means to
ignore any namespaces (and thereby match elements that are
not in any namespace), or (preferably) the test should change
so that it accesses item 1, not item 3.

- Dave
Received on Friday, 16 November 2001 21:03:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 April 2009 12:58:45 GMT