Mozilla Adding Canvas Support

I just read today that support for the HTML canvas element has been checked in to the Mozilla source tree. As far as I know, this makes Mozilla the first browser to implement any part of the Web Applications 1.0 specification (still in working draft form at the moment).

For the uninitiated, the WHATWG is a loose collaboration of parties interested in extending current Web behavior to more appropriately support Web applications. This group, which has no relation to the W3C, has published several specifications relating to the extending of HTML. The one that has garnered the most interest to this point is Web Forms 2.0, which calls for extensions to the normal form components for use with Web applications.

The canvas element, part of Web Applications 1.0, allows developers to draw to a section of a Web page by using JavaScript. This could effectively be used for any number of things, including making custom controls and eliminating the need for downloadable graphics. Thanks to Mozilla for once again paving the way for Web advancement!

Update: Jose correctly pointed out that Safari 2.0 will also support the canvas element. Looks like Internet Explorer may really be left in the dust sometime soon.

Comments

  1. José Jeria

    Safari 2.0 will have support for the canvas tag as well. Dashboard uses it. Same thing if I am not mistaken.

    http://weblogs.mozillazine....

  2. Nicholas C. Zakas

    Wow, don&#039t know how I missed that. Good catch Jose!

  3. Erik Arvidsson

    The canvas element was created by Apple for their preview release of Safari 2.0. The WHATWG people found it so nice that they incorporated into their upcoming proposal for Web Applications 1.0.

    However, there are already compatibility issues. Safari uses an alt attribute where the specifcation is pretty clear that it should fall back on the content of the element (because this is backwards compatible). Mozilla therefore requires an end tag.

Understanding JavaScript Promises E-book Cover

Demystify JavaScript promises with the e-book that explains not just concepts, but also real-world uses of promises.

Download the Free E-book!

The community edition of Understanding JavaScript Promises is a free download that arrives in minutes.