[html5] some question about canvas

Jason Cole champ_5_ at msn.com
Mon Jan 19 21:52:44 PST 2009


I believe that <script> needs  type="text/javascript" to work. It certainly wouldn't hurt.

From: caoyp at cn.fujitsu.com
To: help at lists.whatwg.org
Date: Tue, 20 Jan 2009 09:45:30 +0800
Subject: [html5] some question about canvas
























I wrote a html file like this:

<canvas id=”mycanvas”>

         <script>
alert(“hello”)

         </script>

</canvas>

 

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 

 

Regards

C.Y.P.

 

Cao Yipeng

Development Dept.I

Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)

8/F., Civil Defense Building, No.189
  Guangzhou Road,

Nanjing, 210029, China

TEL: +86+25-86630566-817

COINS: 79955-817

FAX: +86+25-83317685

MAIL: caoyp at cn.fujitsu.com

 


_________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20090120/974d2988/attachment-0002.htm>


More information about the Help mailing list