Re: [heycam/webidl] Should probably spec a hasInstance for DOM interface objects (#129)

This relates to #226 as well. I created a simple test
```html
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<div id=log></div>
<iframe></iframe>
<script>
test(() => {
  assert_true(document.body instanceof self[0].Element)
})
</script>
```
and other than Firefox nobody passes it. In the threads from 2013 only Travis expressed support as coming from another browser and Allen Wirfs-Brock specifically raised the point that if we want to solve this we should aim to solve it for JavaScript and the platform, not just platform objects. That point still makes a lot of sense and is also echoed above by @esprehn. If we need branding we should not just have it for arrays.

So the current state of things would actually argue for removing this from IDL, since there's only a single implementer.

-- 
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/129#issuecomment-292522793

Received on Friday, 7 April 2017 12:25:55 UTC