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


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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:03 UTC