Closed parjanya closed 3 years ago
This does not deal with nodes properly that contain multiple classes, and only ever returns the first occurrence of the class. Typically for such a situation you would use the id
instead of a class, as classes are expected to be combined and used multiple times throughout the document.
In general for tree search operations like this it's better to rely on the CLSS library instead, which is linked in the readme.
Hi!
I’ve been using this function, slightly massaged out from the existing code. Perhaps it could be useful to add it to the package: