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-1129930503
You are receiving this because you are subscribed to this thread.

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

Received on Wednesday, 18 May 2022 12:13:30 UTC