[whatwg] Canvas element
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 -->
> 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.
More information about the whatwg