- From: Jake Archibald <notifications@github.com>
- Date: Mon, 26 Jan 2026 06:42:50 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 26 January 2026 14:42:54 UTC
jakearchibald left a comment (whatwg/dom#1189) Fwiw I used `NodeIterator` somewhat recently to iterate over text nodes, looking for a text match https://github.com/jakearchibald/social-video-editor/blob/04ad8b911b93b2073a7945d01e0114a9761caa3b/app/utils/findText.ts#L19. I can imagine folks wanting to do the same but also consider matches in shadow roots. It isn't too hard to write a crawler I guess, but I used `NodeIterator` because it's already there. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/1189#issuecomment-3799950926 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/1189/3799950926@github.com>
Received on Monday, 26 January 2026 14:42:54 UTC