[whatwg] Unnecessary loading of fallback content in canvas element
Benjamin Poulain
benjamin.poulain at nokia.com
Sat Jan 8 08:41:33 PST 2011
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
More information about the whatwg
mailing list