[whatwg] Canvas 2d methods

Vladimir Vukicevic vladimirv at gmail.com
Mon Jul 3 21:47:12 PDT 2006

Even without using |with|, why not just create a simple JS wrapper for
the context object that can have return-this or any other desired
semantics?  This would avoid a change that would have some apps
require "canvas 2D 2.0" or some such, and require authors to do
version checks to see which version of canvas is supported -- and
still write "old" code for quite some time.  Adding "a different way"
to do the same things that can be done now without much benefit in
simplicity or efficiency doesn't seem useful.

Canvas supports multiple contexts for a reason; if there are
compelling arguments for a complete rev of the 2D API, then a new
context can be introduced to support that.

   - Vlad

More information about the whatwg mailing list