[html5] some question about canvas
ian at hixie.ch
Mon Jan 19 22:21:51 PST 2009
On Tue, 20 Jan 2009, caoyipeng wrote:
> I wrote a html file like this:
> <canvas id="mycanvas">
> <script> alert("hello")
> In firefox safari chrome the hello dialog showed. But didn't in opera.
> I remember that in html5 it says that the context in canvas tag should
> be ignored.
> But I can find where it says so. What is the relationship on earth
> between canvas and
> Other tag ? thank you for taking time and trouble to consider my problem
The insides of the <canvas> shouldn't render/display, but the scripts
should still execute. This seems like an Opera bug.
Does that answer your question.
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the Help