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

https://dom.spec.whatwg.org/#concept-node-filter calls https://webidl.spec.whatwg.org/#call-a-user-objects-operation which in step 14 (through quite a bit of indirection) ends up running https://webidl.spec.whatwg.org/#es-unsigned-short  which does https://webidl.spec.whatwg.org/#abstract-opdef-converttoint which does https://tc39.es/ecma262/#sec-tonumber at some point which treats null as 0 and undefined as NaN (which then becomes an exception).

So I'd say this is defined. I haven't checked if this matches implementations.

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

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

Received on Friday, 22 April 2022 11:13:35 UTC