Re: [heycam/webidl] Add [[PlatformBrand]] internal slot to all platform objects (#97)

Is the [[PlatfromBrand]] on the instance (for example a text node in the DOM, not the Text interface or Text interface prototype object?)

For what it is worth Blink implements the check for HTMLElement in custom elements as if the brand is on the instance; see [CustomElementDefinition::checkConstructorResult](https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp?sq=package:chromium&dr=CSs&rcl=1472642334&l=76). Sorry for the C++, but basically it checks the element instance is a HTMLElement; it doesn't consult JavaScript prototypes or anything.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/97#issuecomment-243991301

Received on Thursday, 1 September 2016 06:50:18 UTC