[enhydra] getElementsByTagName in XHTML ?

Petr Stehlik <[email protected]> Fri, 05 Aug 2005 13:49:42 +0200
Newsgroups gmane.comp.java.enhydra.general,gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1123242623-26505-64
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

node.getTagName() returns "td" because that node is of type
HTMLTableCellElement...

The same node.getElementsByTagName("td") returns an empty NodeList while
it should contain at least itself, IMHO. Therefore I'd say that the
getElementsByTagName method doesn't work correctly (for XHTML only?).

Well, even if the getElementsByTagName was supposed to start from
children of the supplied node instead from the node itself then it still
doesn't work as I tested that case as well.

It's easy to write an implementation of getElementsByTagName that works
correctly and I am just doing that but I still wonder why the supplied
DOM method doesn't do what I'd expect.

Enhydra XMLC version 2.2, Enhydra 5.1.15.

Thanks.

Petr




------------=_1123242623-26505-64
Content-Type: text/plain; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: 8bit


--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

------------=_1123242623-26505-64--