Re: [whatwg/dom] Suggestion: new method - getNodesByType (#992)

@liamquin I have been using this approach for about 9 years, and it absolutely opens up new possibilities developers never would have considered otherwise, because the existing methods forcefully suggest the only way to navigate a document is via query of elements.

Most of the benefits provided by this are second and third order consequences to tooling.  For example, this code has allowed me to write a getElementsByText method where I can get all text nodes and then filter that list matching against a string fragment.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/992#issuecomment-865417729

Received on Monday, 21 June 2021 23:46:02 UTC