[whatwg] Canvas and DOM elements

Ian Hickson ian at hixie.ch
Fri May 19 08:26:00 PDT 2006


On Thu, 4 May 2006, Andrew Fedoniouk wrote:
> 
> Having dedicated DOM element (<canvas>) for drawings looks a bit strange 
> as a design decision. Logically any block DOM element can provide 
> graphics. Ideally getContext method should have one more parameter - 
> layer - background/content/foreground - so graphics could be mixed with 
> the content of the element, drawn on top and/or below the content.

In practice, major browser vendors have difficulty writing Web browsers 
that handle generic concepts like this. <object>, for example, which is a 
very generic feature, has been historically very badly implemented. So it 
was felt better to make things more specific to one element.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list