org.joox.wrapper.jdom2.JElement.getElementsByTagName returns self, but should only return descendants #73

Closed
lukaseder opened this Issue Apr 18, 2012 · 2 comments

Comments

Projects
None yet
2 participants

According to the Javadocs of org.w3c.dom.Element#getElementsByTagName(String), the element itself should not be returned in the resulting list. This is slightly different from Document#getElementsByTagName(String), where the root element is returned. The relevant sentence in the Javadoc reads:

Returns a NodeList of all descendant Elements with a given tag name, in document order.

Collaborator

rolfl commented Apr 18, 2012

Heh. I'm on course today ... ;-) Will fix later this evening

Fast as lightning! Thanks a lot!

rolfl closed this in 7d8ee21 Apr 19, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment