Re: [dom] The NodeFilter callback interface doesn't make sense (#186)

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 `instanceof NodeFilter` throws is explained by the fact that the NodeFilter interface object doesn't have a prototype, I think.

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.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/186#issuecomment-193699643

Received on Tuesday, 8 March 2016 10:03:55 UTC