[whatwg] Canvas element

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