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
--
You receive this message as a subscriber of the enhydra@xxxxxxxxxxxxx mailing
list.
To unsubscribe: mailto:enhydra-unsubscribe@xxxxxxxxxxxxx
For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
|
|