Add convenience methods to iterate only over child and descendant elements instead of all nodes.#158
Add convenience methods to iterate only over child and descendant elements instead of all nodes.#158cfvescovo merged 1 commit intorust-scraper:masterfrom adamreichold:element-iterators
Conversation
…ments instead of all nodes.
|
Why not add the trait (e.g. I wouldn't say it closes #157 as it currently adresses only half of the suggestion. |
As written above
i.e. I don't think the additional complexity is warranted especially since one will most likely stay within the |
|
LGTM |
Note that we cannot easily extend
NodeRefas the types comes fromego-tree, notscaper.(We could use an extension trait and such, but I think starting from an
ElementRefis common enough, especially when using these iterators to stay within the elements.)Closes #157