W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2009

[whatwg] Exposing EventTarget to JavaScript

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 01 Jun 2009 21:09:31 -0400
Message-ID: <4A247BCB.20202@mit.edu>
Alex Russell wrote:
> Think bigger. I want to create a concrete Element class (that's what a
> <span> is, for all intents and purposes)

As a minor nit, a <span> is basically an HTMLElement, not an Element.

> and make it subclassable (or treat it as a Trait for purposes of composition) so
> that we can do a component system that lets you introduce new elements
> that act sanely both in the HTML and JavaScript senses.

This has pretty serious security issues of various sorts, depending on 
what your subclassing would allow you to override.

-Boris
Received on Monday, 1 June 2009 18:09:31 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:12 UTC