logo       

Re: [xmlc] getElementsByTagName in XHTML ?: msg#00005

java.enhydra.xmlc

Subject: Re: [xmlc] getElementsByTagName in XHTML ?

At 08:06 PM 8/11/2005 -0500, you wrote:
>At 11:27 PM 8/11/2005 +0200, you wrote:
> >Jacob Kjome pí¹e v Pá 05. 08. 2005 v 10:46 -0500:

>I guess I'm still unclear on the results, though. I suspected that you
>were mistakenly reporting this because you had stated that you expected the
>results to be children of the current tag, plus the current tag
>itself. That's clearly wrong. It should only be the children. So, you
>say you tested this? What were your results? More below...
>
> >> If you were to do node.getElementsByTagName("td") and the
> >> current node is a "td", I wouldn't expect to have any results returned
>unless
> >> you were using nested tables.
> >
> >well of course I did node.getParentNode().getElementsByTagName("td").
>
>Which, again, unless you were using nested tables, would return an empty
>node list so it would be pretty pointless to do.
>

Whoops, I meant a nodelist of 1 element which, of course, is the original node that you already had a handle on. That's why it's pointless, not that it would return an empty list, but a list of 1 node which you already knew about, so why bother?

Jake


--
You receive this message as a subscriber of the xmlc@xxxxxxxxxxxxx mailing list.
To unsubscribe: mailto:xmlc-unsubscribe@xxxxxxxxxxxxx
For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise