04-19-2006, 02:14 AM
04-19-2006, 03:48 AM
I suppose so, though your question seems a bit vague.
I would rather use getElementsByTagName() as a subsequent reference instead of childNodes, as IE and Moz counts in different ways the possible textNodes (the so called "gaps"). Or, if using childNodes or sibling elements, I would check in a while loop is the element I am looking for is a tag or not (on using nodeType).
04-19-2006, 08:05 AM
you can distinguish between text and element nodes using nodeType
1 = element
3 = text node