W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2005

[whatwg] Canvas element

From: Sjoerd Visscher <sjoerd@w3future.com>
Date: Wed, 20 Apr 2005 23:45:39 +0200
Message-ID: <4266CD83.2020308@w3future.com>
Dimitri Glazkov wrote:
> I would rather see this:
> 
> <ol id="weightedTags">
> <li class="weight-3">Stuff</li>
> <!-- ... more tags -->
> </ol>
> 
> with this as bound behavior:
> 
> var weightedTags = document.getElementById("weightedTags");
> var context = weightedTags.getContext("CanvasRenderingContext2D");
> // use content of the weightedTags to draw with context
> // ...
> 
> Does this make any sense?

I think it does, I really like it. It is comparable with allowing the 
src attribute on any element, as XHTML2 is doing.

-- 
Sjoerd Visscher
http://w3future.com/weblog/
Received on Wednesday, 20 April 2005 14:45:39 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:22 UTC