-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The NodeFilter callback interface doesn't make sense #186
Comments
I'm not aware of any issues with the specification. I'm aware that this is the most special of all callback interfaces though. |
Sigh. I've done some more testing in Gecko and Edge and looked closer at what the WebIDL spec says. I was honestly hoping to find a big mess of some sort, but actually it looks looks pretty well defined. That It doesn't really seem like this allows for any meaningful simplification. I had the idea of splitting acceptNode out from NodeFilter so that there would no longer be any callback interfaces that also have interface objects, but the interface object for what would remain of NodeFilter would still be just as special. Will comment on Chromium issue that implementing this as current specified seems like the best path forward. |
WebIDL says "The internal [[Prototype]] property of an interface object for a callback interface must be the Object.prototype object." I think that means that |
Aha, it looks like |
Hmm, not similar whatwg/webidl#83 ? |
Yes, very similar, and quite possibly the fix is the same. |
https://dom.spec.whatwg.org/#interface-nodefilter
Quoting a Blink commit message I wrote:
As it turns out, the usage was for too high to consider such changes. Quoting a Chromium issue comment:
So, now the trouble is that this doesn't make much sense and I wonder if it could be tweaked somehow. Is what Gecko does how this is intended to work?
The text was updated successfully, but these errors were encountered: