esp...@google.com
unread,Jun 25, 2016, 12:27:22 AM6/25/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to blink-reviews-bindings, ad...@chromium.org, yukis...@chromium.org, dom...@google.com, verw...@chromium.org, joc...@chromium.org, har...@chromium.org, bme...@google.com, mvst...@google.com
I'd really rather we didn't do this and just removed it from the spec, it's been years and no browser except Firefox does this, and they have a radically different binding system which makes it perhaps easier.
It's also of questionable value as you note. It's very strange to me that doing (e instanceof HTMLDivElement) might be true, but if you had modified HTMLDivElement.prototype to have new methods they'd be missing.
I'm fine providing some kind of Platform.isInstance like facility if authors actually want that, though I've never heard anyone ask for it (literally the only compliant I've ever heard was for Array, and Array.isArray fixed that.)