W3C home > Mailing lists > Public > public-canvas-api@w3.org > October to December 2011

Canvas issue with noscript

From: Charles Pritchard <chuck@jumis.com>
Date: Sat, 24 Dec 2011 18:33:01 -0800
Message-ID: <4EF68B5D.8050107@jumis.com>
To: software@informaction.com
CC: Canvas <public-canvas-api@w3.org>
NoScript Authors,

We need a means for noscript to show the fallback content of the Canvas 
element.
http://noscript.net/

I encourage you to post to public-canvas-api, contact me directly, or 
discuss with browser vendors how this can be done in an easy an 
effective way.

I've tried repeatedly to get something added to CSS to make it easier on 
your team, but so far, the browser vendors have not understood the use case.

The issue, simply, is this:

<p>This is my content and here is a canvas button:
<canvas><button>This is a button</button></canvas></p>

Now, with noscript turned on, or in any browser that does not support 
Canvas, such as IE8, the <button> should appear.

But, noscript does not fallback to the sub-tree content. It is supposed 
to, but this is rather difficult to code in Firefox.
It could be made very easy through CSS techniques, if the Firefox 
developers understood the need.

I've suggested things like:  "appearance: none"; that CSS item works 
with other things, like <button>, to fall back to old CSS only behavior. 
I've also suggested changes to the CSS "content: " attribute. Nothing 
has worked yet.

I'd really--really-- like NoScript to work well in this situation. 
Currently, I use some very nasty CSS and JS hacks to get the appropriate 
effect.


-Charles
Received on Sunday, 25 December 2011 02:33:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 25 December 2011 02:33:37 GMT