[prev in list] [next in list] [prev in thread] [next in thread] 

List:       html5-help
Subject:    [html5] =?gb2312?b?tPC4tDogIHNvbWUgcXVlc3Rpb24gYWJvdXQgY2FudmFz?=
From:       "caoyipeng" <caoyp () cn ! fujitsu ! com>
Date:       2009-01-20 5:54:09
Message-ID: 5E9EC708A1F64AA68BB64C0D0192F9E8 () FNSTcyp
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


  _____  

 

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

I don¡¯t think so, type=¡±text/javascript¡± can be omitted, and my problem
is about the relationship between different tags, 

when one tag is another tag¡¯s child, but thanks anyway.

  _____  

From: caoyp@cn.fujitsu.com
To: help@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@cn.fujitsu.com

 

 

  _____  

Share your holiday memories for free with Windows Live(tm) Photos. Get
started now. <http://www.microsoft.com/windows/windowslive/photos.aspx> 


[Attachment #5 (text/html)]

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:st1="urn:schemas-microsoft-com:office:smarttags" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"MS PGothic";
	panose-1:2 11 6 0 7 2 5 8 2 4;}
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"\@MS PGothic";
	panose-1:2 11 6 0 7 2 5 8 2 4;}
@font-face
	{font-family:Verdana;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
h4
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman";
	font-weight:bold;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;}
p
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman";}
p.2, li.2, div.2
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:19.2pt;
	mso-margin-top-alt:auto;
	mso-para-margin-right:0cm;
	mso-margin-bottom-alt:auto;
	mso-para-margin-left:4.0gd;
	font-size:10.5pt;
	font-family:"MS PGothic";
	font-weight:bold;}
p.ecmsonormal, li.ecmsonormal, div.ecmsonormal
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman";}
p.ec2, li.ec2, div.ec2
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman";}
p.ec27491, li.ec27491, div.ec27491
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman";}
p.ec26679, li.ec26679, div.ec26679
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman";}
p.ecmsonormal1, li.ecmsonormal1, div.ecmsonormal1
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:10.5pt;
	font-family:"Times New Roman";}
span.ecmsohyperlink1
	{color:blue;
	text-decoration:underline;}
span.ecmsohyperlinkfollowed1
	{color:purple;
	text-decoration:underline;}
p.ec21, li.ec21, div.ec21
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:19.2pt;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	page-break-after:avoid;
	font-size:10.5pt;
	font-family:"MS PGothic";
	font-weight:bold;}
p.ec274911, li.ec274911, div.ec274911
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:10.5pt;
	font-family:"Times New Roman";}
p.ec266791, li.ec266791, div.ec266791
	{mso-margin-top-alt:auto;
	margin-right:0cm;
	margin-bottom:0cm;
	margin-left:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	page-break-after:avoid;
	font-size:10.5pt;
	font-family:"MS PGothic";
	font-weight:bold;}
span.ecemailstyle201
	{font-family:Arial;
	color:windowtext;}
span.EmailStyle33
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=ZH-CN link=blue vlink=blue>

<div class=Section1>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=navy
face=Verdana><span lang=EN-US style='font-size:10.0pt;font-family:Verdana;
color:navy'>&gt;&gt;</span></font><font size=2 face=Verdana><span lang=EN-US
style='font-size:10.0pt;font-family:Verdana'>I believe that &lt;script&gt;
needs type=&quot;text/javascript&quot; to work. It certainly wouldn't hurt.<font
color=navy><span style='color:navy'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=1 color=navy
face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial;
color:navy'>I don¡¯t think so, type=¡±text/javascript¡± can be omitted, and my
problem is about the relationship between different tags, \
<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=1 color=navy
face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:Arial;
color:navy'>when one tag is another tag¡¯s child, but thanks \
anyway.<o:p></o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=2
face=Verdana><span lang=EN-US style='font-size:10.0pt;font-family:Verdana'>

<hr size=2 width="100%" align=center id=stopSpelling>

</span></font></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Verdana><span
lang=EN-US style='font-size:10.0pt;font-family:Verdana'>From:
caoyp@cn.fujitsu.com<br>
To: help@lists.whatwg.org<br>
Date: Tue, 20 Jan 2009 09:45:30 +0800<br>
Subject: [html5] some question about canvas<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>I wrote a html file like this:</span></font><font
size=2 face=Verdana><span lang=EN-US \
style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>&lt;canvas id=¡±mycanvas¡±&gt;</span></font><font
size=2 face=Verdana><span lang=EN-US \
style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;script&gt; alert(¡°hello¡±)</span></font><font size=2 face=Verdana><span
lang=EN-US style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/script&gt;</span></font><font size=2 face=Verdana><span lang=EN-US
style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>&lt;/canvas&gt;</span></font><font size=2
face=Verdana><span lang=EN-US \
style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>&nbsp;</span></font><font size=2 face=Verdana><span
lang=EN-US style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>In firefox safari chrome the hello dialog showed. But
didn¡¯t in opera.</span></font><font size=2 face=Verdana><span lang=EN-US
style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>I remember that in html5 it says that the context in
canvas tag should be ignored.</span></font><font size=2 face=Verdana><span
lang=EN-US style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>But I can find where it says so. What is the
relationship on earth between canvas and </span></font><font size=2
face=Verdana><span lang=EN-US \
style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>Other tag ? thank you for taking time and trouble to
consider my problem </span></font><font size=2 face=Verdana><span lang=EN-US
style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 face=Arial><span lang=EN-US style='font-size:
9.0pt;font-family:Arial'>&nbsp;</span></font><font size=2 face=Verdana><span
lang=EN-US style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face="Times New Roman"><span
lang=EN-US style='font-size:10.0pt;color:navy'>Regards</span></font><font
size=2 color=black face=Verdana><span lang=EN-US style='font-size:10.0pt;
font-family:Verdana;color:black'><br>
</span></font><font size=2 color=navy face=Verdana><span lang=EN-US
style='font-size:10.0pt;font-family:Verdana;color:navy'>C.Y.P.</span></font><font
size=2 face=Verdana><span lang=EN-US \
style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face="Times New Roman"><span
lang=EN-US style='font-size:10.0pt;color:blue'>&nbsp;</span></font><font
size=2 face=Verdana><span lang=EN-US \
style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face="Times New Roman"><span
lang=EN-US style='font-size:10.0pt;color:navy'>Cao Yipeng<br>
Development Dept.I<br>
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)<br>
8/F., Civil Defense Building, <st1:Street w:st="on"><st1:address w:st="on">No.189
  Guangzhou Road</st1:address></st1:Street>,<br>
<st1:City w:st="on">Nanjing</st1:City>, 210029, <st1:country-region \
w:st="on"><st1:place  w:st="on">China</st1:place></st1:country-region><br>
TEL: +86+25-86630566-817<br>
COINS: 79955-817<br>
FAX: +86+25-83317685<br>
MAIL: </span></font><font size=2 face=Verdana><span lang=EN-US
style='font-size:10.0pt;font-family:Verdana'><a
href="mailto:caoyp@cn.fujitsu.com">caoyp@cn.fujitsu.com</a><o:p></o:p></span></font></p>


<p class=MsoNormal><font size=2 face="Times New Roman"><span lang=EN-US
style='font-size:10.0pt'>&nbsp;</span></font><font size=2 face=Verdana><span
lang=EN-US style='font-size:10.0pt;font-family:Verdana'><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=2 face=Verdana><span lang=EN-US style='font-size:
10.0pt;font-family:Verdana'><o:p>&nbsp;</o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=2
face=Verdana><span lang=EN-US style='font-size:10.0pt;font-family:Verdana'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><font size=2 face=Verdana><span lang=EN-US style='font-size:
10.0pt;font-family:Verdana'>Share your holiday memories for free with Windows
Live&#8482; Photos. <a \
href="http://www.microsoft.com/windows/windowslive/photos.aspx" target="_new">Get \
started now.</a><o:p></o:p></span></font></p>

</div>

</body>

</html>



_______________________________________________
Help mailing list
Help@lists.whatwg.org
http://lists.whatwg.org/listinfo.cgi/help-whatwg.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic