[whatwg] Canvas element - Keep It Simple
bkn3 at columbia.edu
Mon Apr 25 12:06:10 PDT 2005
At 09:42 AM 4/24/2005, Jim Ley wrote:
>On 4/24/05, Kornel Lesinski <kornel at ldreams.net> wrote:
> > On Sun, 24 Apr 2005 16:14:29 +0100, Jim Ley <jim.ley at gmail.com> wrote:
> > Drawable <img> is pretty easy to implement (change to internal bitmap),
>So the proposal to have img alone switch to drawable seems a good one.
> The WHAT-WG members have previously said that new elements are a bad
>idea as they're more complicated to implement - re-using image seems a
>good option. Especially as it would give us the ability to use the
>image itself as a background - and to provide fallback support for the
>Look at google maps, it draws on top of img elements, adding in extra
>canvas elements would seem to be highly redundant?
> > > The existence of an HTMLCanvasElement prototype is not standard
> > > currently
> > It's in current draft, with width/height properties and getContext method.
>Could you point to where? Or was I not clear enough about talking
>about the _prototype_ that's the thing that is not currently specified
>and I believe is hugely unwarranted.
> > But such coupling is already there for every current form element.
> > Prototypes are required by ECMA script already.
>Could you point me to the part of the specification? Because by my
>reading of the ECMA spec prototypes are not required on host objects
>such as the DOM in a webbrowser.
True, but having prototypes on DOM objects can be extremely useful and
provide all sorts of very powerful options. Mozilla allows manipulation of
the prototype object on DOM objects (except for removing the original
native methods and attributes, for security reasons). Unfortunately, IE
doesn't support this, so this ability can't really be used in practice.
Brad Neuberg, bkn3 at columbia.edu
Senior Software Engineer, Rojo Networks
Check out Rojo, an RSS and Atom news aggregator that I work on. Visit
http://rojo.com for more info. Feel free to ask me for an invite!
Rojo is Hiring! If you're interested in RSS, Weblogs, Social Networking,
Java, Open Source, etc... then come work with us at Rojo. If you recommend
someone and we hire them you'll get a free iPod! See
More information about the whatwg