Re: [PHP-XML-DEV] getElementsByTagName returns subset if elements are arbitrarily nested

[email protected] ("Rob Richards") Mon, 8 Dec 2003 12:11:27 -0500
Newsgroups php.xml.dev
Message-ID <[email protected]>
Was a bug and now fixed.

Thanks!

Rob

From: Philip Fletcher

> According to the w3c spec the method 'getElementsByTagName' "returns a
> NodeList of all the Elements in document order with a given tag name and
> arecontained in the document".
> However, in practice, if there is some interesting (but legal) nesting
> going on, then everything outside of the parent of the first match is
> ignored.