A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/heycam/webidl/issues/96 below:

Object.getPrototypeOf(NodeFilter) should be Function.prototype, not Object.prototype · Issue #96 · whatwg/webidl · GitHub

http://heycam.github.io/webidl/#interface-object

The internal [[Prototype]] property of an interface object for a callback interface must be the Object.prototype object.

This doesn't match Edge and Gecko, where Object.getPrototypeOf(NodeFilter) === Function.prototype holds true. It looks like this could be fixed by using the same language as for non-callback interfaces that don't inherit from any other interface:

If the interface doesn't inherit from any other interface, the value of [[Prototype]] is %FunctionPrototype%

This was discussed in #83 and I just noticed it in whatwg/dom#186 (comment)

#78 is also more general issue about the interface objects of callback interface objects.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3