On Dec 31, 2012, at 8:08 AM, Boris Zbarsky <bzbar...@mit.edu> wrote:
> On 12/30/12 2:16 PM, Robert O'Callahan wrote: >> How bad would it be to make "<expr> instanceof <expression resolving to >> WebIDL interface>" special-cased to re-map the RHS to the appropriate >> WebIDL interface object for <expr>? > > In terms of implementation complexity on our end, it's trivial as long as we > don't follow the WebIDL spec and make things like HTMLAnchorElement actual > Function instances. > > In terms of specs and getting other UAs to go along... I don't know. In this sea of terrible choices, how about making HTMLAnchorElement an actual function, but having it return "object" for typeof? That should be reasonably Web-compatible. Andreas > > -Boris > > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform