- From: Nige White <notifications@github.com>
- Date: Thu, 05 Aug 2021 02:55:12 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 5 August 2021 09:55:24 UTC
https://dom.spec.whatwg.org/commit-snapshots/f2a2dedd8831cbae9afeab87b915e1234c49cba1/#interface-nodefilter > Interface NodeFilter According to the current standard, the filter return values can be - FILTER_ACCEPT (1); - FILTER_REJECT (2); - FILTER_SKIP (3). I propose a fourth: FILTER_ABORT (4) If the filter implementor can detect that the traverse has reached an end point, it should be possible to terminate the traverse early. It's possible to `throw` right now and most implementations seem to silently terminate the traverse, but that's not a good solution I feel. -- 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/1005
Received on Thursday, 5 August 2021 09:55:24 UTC