Re: [whatwg/dom] Unspecified behavior when NodeFilter#acceptNode returns null (Issue #1075)

https://webidl.spec.whatwg.org/#es-unsigned-short forwards to https://webidl.spec.whatwg.org/#abstract-opdef-converttoint, which in step 8 (after calling `ToNumber`) does: _If x is NaN, +0, +∞, or −∞, then return +0._

So `undefined`-> `NaN` -> `+0` and `null` -> `+0`-> `+0`.

`TreeWalker`'s `nextNode()` only checks for the value not being `FILTER_REJECT` or the value being `FILTER_ACCEPT`, so it seems correct that any other value is treated as similar to `FILTER_SKIP`.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1075#issuecomment-1108245045

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1075/1108245045@github.com>

Received on Monday, 25 April 2022 08:28:20 UTC