- From: petervanderbeken <notifications@github.com>
- Date: Mon, 25 Apr 2022 01:28:04 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 25 April 2022 08:28:20 UTC
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