- From: Anne van Kesteren <notifications@github.com>
- Date: Mon, 25 Apr 2022 00:56:18 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 25 April 2022 07:56:30 UTC
Essentially creating a PR for https://github.com/web-platform-tests/wpt/tree/master/dom/traversal to cover this behavior. That's the repository we use for tests covering the standard. Also, all non-number return values seem to be treated as FILTER_SKIP, rather than coerced. That means that `acceptNode()` has to be amended to return `any` instead of `unsigned short`. And it seems that if the value is a number, `Math.floor()` is applied to it. However, according to https://searchfox.org/mozilla-central/source/dom/webidl/NodeFilter.webidl#32 Firefox does have the "accurate" Web IDL for this. @petervanderbeken are we simply not enforcing that as required (see https://github.com/whatwg/dom/issues/1075#issuecomment-1106410304)? Makes me wonder if there's a larger issue here or maybe I'm just missing something. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/1075#issuecomment-1108207867 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/1075/1108207867@github.com>
Received on Monday, 25 April 2022 07:56:30 UTC