[whatwg] Unnecessary loading of fallback content in canvas element

On 01/08/2011 12:57 AM, ext Charles Pritchard wrote:
> Let me know if this has been discussed before:
>
> Loading an html page containing:
> <canvas><img src="fallback.jpg" /></canvas>
> loads the fallback.jpg image, even when canvas is supported.
>
> Is this intentional, or simply the easiest route for the moment?

I would say that is the indented behavior.

If you look at the specification 
(http://dev.w3.org/html5/spec/the-canvas-element.html), regarding 
fallback content, you will find that it is still available when Canvas 
is supported.

For example:
"When a canvas element represents embedded content, the user can still 
focus descendants of the canvas element (in the fallback content)."

Since the content is available, I think it is normal for it to follow 
the normal behavior.

cheers,
Benjamin

Received on Saturday, 8 January 2011 08:41:33 UTC