[whatwg] Canvas element
Sjoerd Visscher
sjoerd at w3future.com
Wed Apr 20 14:45:39 PDT 2005
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/
More information about the whatwg
mailing list