Re: error code when insering a video using video tag

HiddenId <[email protected]> Mon, 7 Jan 2013 13:50:38 +0000 (GMT)
Newsgroups gmane.comp.web.amaya.general
Message-ID <[email protected]>
--1353131092-482889687-1357566638=:7083
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Laurent,=0A=0A> If you want to add a video in a html page using Amaya, y=
ou can use=0A      the elements embed or object.=0A=0AI see easily where I =
can get the "OBJECT" tag in Amaya ( top menu -> insert -> insert object ), =
but I do not manage to find the way to get "EMBED" tag from any menu in Ama=
ya. It seems it is not possible. Am I correct ?=0A=0AAntoine=0A=0A=0A=0A=0A=
________________________________=0A De=A0: laurent carcone <laurent.carcone=
@orange.fr>=0A=C0=A0: HiddenId <[email protected]> =0ACc=A0: "www=
[email protected]" <[email protected]> =0AEnvoy=E9 le : Samedi 5 janvier 2013 17=
h57=0AObjet=A0: Re: error code when insering a video using video tag=0A =0A=
=0AHello,=0A=0AAmaya doesn't support html5, it's why it raises an error on =
the=0A      element <video>.=0AUnfortunately, new developments on Amaya are=
 stopped at W3C and=0A      Inria. I know there is a project outside W3C to=
 work on the HTML5=0A      support, I'll let you know if I have some update=
.=0AIf you want to add a video in a html page using Amaya, you can use=0A  =
    the elements embed or object.=0A=0AThanks,=0ALaurent=0A=0ALe 05/01/13 1=
7:15, HiddenId a =E9crit=A0:=0A=0AHello All.=0A>Thanks a lot for your retur=
ns. =0A>=0A>I've still questions: is it better to stay in xhtml or move to =
html code type, regarding results described bellow ?=0A>Antoine=0A>=0A>=0A>=
Here is the code I'm testing, including changes you told me:=0A>=0A>=0A>---=
----------------------------=0A>=0A>23 =A0=A0 <video width=3D"320" height=
=3D"240" controls=3D"">=0A>24 =A0=A0=A0=A0=A0=A0 <source src=3D"proj.mp4"=
=A0 type=3D"video/mp4" />=0A>25 =A0=A0=A0=A0=A0=A0 <source src=3D"proj.ogg"=
=A0 type=3D"video/ogg" />=0A>26 =A0=A0=A0=A0=A0=A0 <source src=3D"proj.webm=
" type=3D"video/webm" />=0A>27 =A0=A0=A0=A0=A0=A0 <object data=3D"proj.mp4"=
 width=3D"320"=0A          height=3D"240">=0A>28 =A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0 <embed src=3D"proj.swf" width=3D"320"=0A          height=3D"240">=0A=
>29 =A0=A0=A0=A0=A0=A0 </object>=0A>30 =A0=A0=A0 </video>=0A>31 =A0=A0=A0 <=
p><strong>Download Video:</strong>=0A>32 =A0=A0=A0=A0=A0=A0=A0=A0=A0 Closed=
 Format:<a=0A          href=3D"proj.mp4">"mp4"</a>=0A>33 =A0=A0=A0=A0=A0=A0=
=A0=A0=A0 Open Format:<a=0A          href=3D"proj.ogg">"ogg"</a>=0A>34 =A0=
=A0 </p>=0A>=0A>-----------------------------=0A>=0A>=0A>Then here are resu=
lts concerning error alerts send back by Amaya:=0A>=0A>=0A>=0A>Test 1: keep=
ing XHTML code type (transitional 1.0)=0A>*********************************=
********=0A>=0A>=A0=A0=A0=A0 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 T=
ransitional//EN"=0A>=A0=A0=A0=A0 =A0 =A0 =A0 "http://www.w3.org/TR/xhtml1/D=
TD/xhtml1-transitional.dtd">=0A>=0A>=0A>Amaya returns following errors=0A>=
=0A>=0A>=0A>*** Errors/warnings in test.html=0A>=A0 line 23, char 0: Invali=
d or unsupported XHTML element=0A          <video>=0A>=A0 line 24, char 0: =
Invalid or unsupported XHTML element=0A          <source>=0A>=A0 line 25, c=
har 0: Invalid or unsupported XHTML element=0A          <source>=0A>=A0 lin=
e 26, char 0: Invalid or unsupported XHTML element=0A          <source>=0A>=
=A0 line 29, char 2: mismatched tag=0A>=0A>=0A>=0A>Test 2: changing to HTML=
 code type:=0A>******************************=0A>=0A><!DOCTYPE html PUBLIC =
"-//W3C//DTD HTML 4.01 Transitional//EN"=0A>=A0=A0=A0=A0=A0 "http://www.w3.=
org/TR/html4/loose.dtd">=0A>=0A>=0A>Amaya does not return any error.=0A>And=
 Amaya modify the code, erasing the "layout" of the code (see bellow):=0A>=
=0A>=0A><video width=3D320 height=3D240 controls><source src=3Dproj.mp4 typ=
e=3Dvideo/mp4=0A>=A0 /><source src=3Dproj.ogg type=3Dvideo/ogg /><source=0A=
          src=3Dproj.webm type=3Dvideo/webm=0A>=A0 /><object data=3D"proj.m=
p4" width=3D"320" height=3D"240">=0A>=A0=A0=A0 <embed src=3D"proj.swf" widt=
h=3D"320" height=3D"240"=0A          /></object> </video>=0A>=0A>=A0 <p><st=
rong>Download Video:</strong> Closed=0A          Format:<a=0A>=A0 href=3D"p=
roj.mp4">"mp4"</a> Open Format:<a=0A          href=3D"proj.ogg">"ogg"</a> <=
/p>=0A>=0A>=0A>=0A>Conclusion:=0A>**********=0A>XHTML: still errors, and co=
de is not changed by Amaya=0A>HTML 4: no error, but code layout is modified=
=0A>=0A>=0A>=0A>Then: what should I decide ?=0A>=0A>=0A>=0A>=0A>___________=
_____________________=0A> De=A0: Leif Halvard Silli <xn--mlform-iua@m=E5lfo=
rm.no>=0A>=C0=A0: HiddenId <[email protected]> =0A>Cc=A0: "www-am=
[email protected]" <[email protected]> =0A>Envoy=E9 le : Samedi 5 janvier 2013 15h4=
6=0A>Objet=A0: Re: error code when insering a video using video tag=0A> =0A=
>HiddenId, Fri, 4 Jan 2013 17:43:32 +0000 (GMT):=0A>=0A>> I'm trying to ins=
ert a video in an HTML page.=0A>> I've tried a w3school code example :=0A>>=
 =0A>> <video width=3D"320" height=3D"240" controls>=0A>> =A0 <source src=
=3D"movie.mp4" type=3D"video/mp4">=0A>> =A0 <source src=3D"movie.ogg" type=
=3D"video/ogg">=0A>> =A0 <source src=3D"movie.webm" type=3D"video/webm">=0A=
>> =A0 <object data=3D"movie.mp4" width=3D"320"=0A            height=3D"240=
">=0A>> =A0=A0=A0 <embed src=3D"movie.swf" width=3D"320"=0A            heig=
ht=3D"240">=0A>> =A0 </object> =0A>> </video> =0A>=0A>> Unfortunatly, Amaya=
 returns "an error code": invalid=0A            token=0A>> It seems it is t=
he "s" of controls which generate the=0A            error.=0A>> =0A>> Do yo=
u know what I should do to avoid this error ?=0A>=0A>Firstly, assuming that=
 you work with an XHTML document,=0A            then, instead =0A>of contro=
ls, you should write controls=3D"" or=0A            controls=3D"controls". =
Then =0A>that particular error message will disappear. This is=0A          =
  because XML =0A>requires boolean attributes to be of the shape foo=3D"foo=
" or=0A            foo=3D"". By =0A>contrast, HTML permits the author to ty=
pe foo (the HTML=0A            browser will =0A>still think of it as foo=3D=
"", however).=0A>=0A>Secondly, the empty <source/> elements must be=0A     =
       equipped with a closing =0A>"/", since that is the canonical form of=
 empty elements in=0A            XHTML. =0A>=0A>All in all, this would work=
:=0A>=0A><video width=3D"320" height=3D"240" controls=3D"">=0A>=A0 <source =
src=3D"movie.mp4" type=3D"video/mp4" />=0A>=A0 <source src=3D"movie.ogg" ty=
pe=3D"video/ogg" />=0A>=A0 <source src=3D"movie.webm" type=3D"video/webm" /=
>=0A>=A0 <object data=3D"movie.mp4" width=3D"320" height=3D"240">=0A>=A0=A0=
=A0 <embed src=3D"movie.swf" width=3D"320" height=3D"240" />=0A>=A0 </objec=
t> =0A></video>=0A>-- =0A>leif halvard silli=0A>=0A>
--1353131092-482889687-1357566638=:7083
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"color:#000; background-color:#fff; font-family:ti=
mes new roman, new york, times, serif;font-size:12pt">Hi Laurent,<br><br>&g=
t; If you want to add a video in a html page using Amaya, you can use=0A   =
   the elements embed or object.<br><br>I see easily where I can get the "O=
BJECT" tag in Amaya ( top menu -&gt; insert -&gt; insert object ), but I do=
 not manage to find the way to get "EMBED" tag from any menu in Amaya. It s=
eems it is not possible. Am I correct ?<br><br>Antoine<br><div><span><br></=
span></div><div><br></div>  <div style=3D"font-family: times new roman, new=
 york, times, serif; font-size: 12pt;"> <div style=3D"font-family: times ne=
w roman, new york, times, serif; font-size: 12pt;"> <div dir=3D"ltr"> <font=
 face=3D"Arial" size=3D"2"> <hr size=3D"1">  <b><span style=3D"font-weight:=
bold;">De&nbsp;:</span></b> laurent carcone &lt;[email protected]&g=
t;<br> <b><span style=3D"font-weight: bold;">=C0&nbsp;:</span></b> HiddenId=
 &lt;[email protected]&gt; <br><b><span style=3D"font-weight: bol=
d;">Cc&nbsp;:</span></b> "[email protected]" &lt;[email protected]&gt; <br> <=
b><span style=3D"font-weight: bold;">Envoy=E9 le :</span></b> Samedi 5 janv=
ier 2013
 17h57<br> <b><span style=3D"font-weight: bold;">Objet&nbsp;:</span></b> Re=
: error code when insering a video using video tag<br> </font> </div> <br><=
div id=3D"yiv798455141">=0A  =0A=0A    =0A  =0A  <div>=0A    <div class=3D"=
yiv798455141moz-cite-prefix">Hello,<br>=0A      <br>=0A      Amaya doesn't =
support html5, it's why it raises an error on the=0A      element &lt;video=
&gt;.<br>=0A      Unfortunately, new developments on Amaya are stopped at W=
3C and=0A      Inria. I know there is a project outside W3C to work on the =
HTML5=0A      support, I'll let you know if I have some update.<br>=0A     =
 If you want to add a video in a html page using Amaya, you can use=0A     =
 the elements embed or object.<br>=0A      <br>=0A      Thanks,<br>=0A     =
 Laurent<br>=0A      <br>=0A      Le 05/01/13 17:15, HiddenId a =E9crit&nbs=
p;:<br>=0A    </div>=0A    <blockquote type=3D"cite">=0A      <div style=3D=
"color:#000;background-color:#fff;font-family:times new roman, new york, ti=
mes, serif;font-size:12pt;">=0A        <div><span>Hello All.</span></div>=
=0A        <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont-family:t=
imes new roman, new york, times, serif;=0Abackground-color:transparent;font=
-style:normal;"><span>Thanks a lot for your=0A            returns. <br>=0A =
         </span></div>=0A        <div style=3D"color:rgb(0, 0, 0);font-size=
:16px;=0Afont-family:times new roman, new york, times, serif;=0Abackground-=
color:transparent;font-style:normal;"><span>I've still questions:=0A       =
     is it better to stay in xhtml or move to html code type,=0A           =
 regarding results described bellow ?</span></div>=0A        <div style=3D"=
color:rgb(0, 0, 0);font-size:16px;=0Afont-family:times new roman, new york,=
 times, serif;=0Abackground-color:transparent;font-style:normal;"><span>Ant=
oine</span></div>=0A        <div style=3D"color:rgb(0, 0, 0);font-size:16px=
;=0Afont-family:times new roman, new york, times, serif;=0Abackground-color=
:transparent;font-style:normal;"><span><br>=0A          </span></div>=0A   =
     <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont-family:times n=
ew roman, new york, times, serif;=0Abackground-color:transparent;font-style=
:normal;">Here is the code I'm=0A          testing, including changes you t=
old me:</div>=0A        <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0A=
font-family:times new roman, new york, times, serif;=0Abackground-color:tra=
nsparent;font-style:normal;"><br>=0A        </div>=0A        <div style=3D"=
color:rgb(0, 0, 0);font-size:16px;=0Afont-family:times new roman, new york,=
 times, serif;=0Abackground-color:transparent;font-style:normal;">---------=
----------------------<br>=0A        </div>=0A        <div style=3D"color:r=
gb(0, 0, 0);font-size:16px;=0Afont-family:times new roman, new york, times,=
 serif;=0Abackground-color:transparent;font-style:normal;">23 &nbsp;&nbsp; =
&lt;video width=3D"320"=0A          height=3D"240" controls=3D""&gt;<br>=0A=
          24 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;source src=3D"proj.mp=
4"&nbsp; type=3D"video/mp4" /&gt;<br>=0A          25 &nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp; &lt;source src=3D"proj.ogg"&nbsp; type=3D"video/ogg" /&gt;<b=
r>=0A          26 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;source src=3D"pr=
oj.webm" type=3D"video/webm" /&gt;<br>=0A          27 &nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; &lt;object data=3D"proj.mp4" width=3D"320"=0A          heig=
ht=3D"240"&gt;<br>=0A          28 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp; &lt;embed src=3D"proj.swf" width=3D"320"=0A          he=
ight=3D"240"&gt;<br>=0A          29 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &l=
t;/object&gt;<br>=0A          30 &nbsp;&nbsp;&nbsp; &lt;/video&gt;<br>=0A  =
        31 &nbsp;&nbsp;&nbsp; &lt;p&gt;&lt;strong&gt;Download Video:&lt;/st=
rong&gt;<br>=0A          32 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp; Closed Format:&lt;a=0A          href=3D"proj.mp4"&gt;"mp4"&lt;/a&gt=
;<br>=0A          33 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 Open Format:&lt;a=0A          href=3D"proj.ogg"&gt;"ogg"&lt;/a&gt;<br>=0A =
         34 &nbsp;&nbsp; &lt;/p&gt;<br>=0A        </div>=0A        <div>---=
--------------------------</div>=0A        <div><br>=0A        </div>=0A   =
     <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont-family:times n=
ew roman, new york, times, serif;=0Abackground-color:transparent;font-style=
:normal;">Then here are results=0A          concerning error alerts send ba=
ck by Amaya:<br>=0A        </div>=0A        <div style=3D"color:rgb(0, 0, 0=
);font-size:16px;=0Afont-family:times new roman, new york, times, serif;=0A=
background-color:transparent;font-style:normal;"><br>=0A        </div>=0A  =
      <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont-family:times =
new roman, new york, times, serif;=0Abackground-color:transparent;font-styl=
e:normal;">Test 1: keeping XHTML code=0A          type (transitional 1.0)</=
div>=0A        <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont-fami=
ly:times new roman, new york, times, serif;=0Abackground-color:transparent;=
font-style:normal;">*****************************************<br>=0A       =
 </div>=0A        <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont-f=
amily:times new roman, new york, times, serif;=0Abackground-color:transpare=
nt;font-style:normal;">&nbsp;&nbsp;&nbsp;&nbsp; &lt;!DOCTYPE html=0A       =
   PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"<br>=0A          &nbsp;&n=
bsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;=0A          <a rel=3D"nofollow" class=
=3D"yiv798455141moz-txt-link-rfc2396E" target=3D"_blank" href=3D"http://www=
.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">"http://www.w3.org/TR/xhtml1=
/DTD/xhtml1-transitional.dtd"</a>&gt;</div>=0A        <div style=3D"color:r=
gb(0, 0, 0);font-size:16px;=0Afont-family:times new roman, new york, times,=
 serif;=0Abackground-color:transparent;font-style:normal;"><br>=0A        <=
/div>=0A        <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont-fam=
ily:times new roman, new york, times, serif;=0Abackground-color:transparent=
;font-style:normal;">Amaya returns following=0A          errors<br>=0A     =
   </div>=0A        <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont=
-family:times new roman, new york, times, serif;=0Abackground-color:transpa=
rent;font-style:normal;"><br>=0A        </div>=0A        <div style=3D"colo=
r:rgb(0, 0, 0);font-size:16px;=0Afont-family:times new roman, new york, tim=
es, serif;=0Abackground-color:transparent;font-style:normal;margin-left:40p=
x;">***=0A          Errors/warnings in test.html<br>=0A          &nbsp; lin=
e 23, char 0: Invalid or unsupported XHTML element=0A          &lt;video&gt=
;<br>=0A          &nbsp; line 24, char 0: Invalid or unsupported XHTML elem=
ent=0A          &lt;source&gt;<br>=0A          &nbsp; line 25, char 0: Inva=
lid or unsupported XHTML element=0A          &lt;source&gt;<br>=0A         =
 &nbsp; line 26, char 0: Invalid or unsupported XHTML element=0A          &=
lt;source&gt;<br>=0A          &nbsp; line 29, char 2: mismatched tag<br>=0A=
        </div>=0A        <div style=3D"color:rgb(0, 0, 0);font-size:16px;=
=0Afont-family:times new roman, new york, times, serif;=0Abackground-color:=
transparent;font-style:normal;"><br>=0A        </div>=0A        <div style=
=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont-family:times new roman, new y=
ork, times, serif;=0Abackground-color:transparent;font-style:normal;">Test =
2: changing to HTML=0A          code type:</div>=0A        <div style=3D"co=
lor:rgb(0, 0, 0);font-size:16px;=0Afont-family:times new roman, new york, t=
imes, serif;=0Abackground-color:transparent;font-style:normal;">***********=
*******************<br>=0A        </div>=0A        <div style=3D"color:rgb(=
0, 0, 0);font-size:16px;=0Afont-family:times new roman, new york, times, se=
rif;=0Abackground-color:transparent;font-style:normal;margin-left:40px;">&l=
t;!DOCTYPE=0A          html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"=
<br>=0A          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a rel=3D"nofollow" class=
=3D"yiv798455141moz-txt-link-rfc2396E" target=3D"_blank" href=3D"http://www=
.w3.org/TR/html4/loose.dtd">"http://www.w3.org/TR/html4/loose.dtd"</a>&gt;<=
/div>=0A        <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont-fam=
ily:times new roman, new york, times, serif;=0Abackground-color:transparent=
;font-style:normal;"><br>=0A        </div>=0A        <div style=3D"color:rg=
b(0, 0, 0);font-size:16px;=0Afont-family:times new roman, new york, times, =
serif;=0Abackground-color:transparent;font-style:normal;">Amaya does not re=
turn any=0A          error.</div>=0A        <div style=3D"color:rgb(0, 0, 0=
);font-size:16px;=0Afont-family:times new roman, new york, times, serif;=0A=
background-color:transparent;font-style:normal;">And Amaya modify the code,=
=0A          erasing the "layout" of the code (see bellow):</div>=0A       =
 <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont-family:times new r=
oman, new york, times, serif;=0Abackground-color:transparent;font-style:nor=
mal;"><br>=0A        </div>=0A        <div style=3D"color:rgb(0, 0, 0);font=
-size:16px;=0Afont-family:times new roman, new york, times, serif;=0Abackgr=
ound-color:transparent;font-style:normal;margin-left:40px;">&lt;video=0A   =
       width=3D320 height=3D240 controls&gt;&lt;source src=3Dproj.mp4=0A   =
       type=3Dvideo/mp4<br>=0A          &nbsp; /&gt;&lt;source src=3Dproj.o=
gg type=3Dvideo/ogg /&gt;&lt;source=0A          src=3Dproj.webm type=3Dvide=
o/webm<br>=0A          &nbsp; /&gt;&lt;object data=3D"proj.mp4" width=3D"32=
0" height=3D"240"&gt;<br>=0A          &nbsp;&nbsp;&nbsp; &lt;embed src=3D"p=
roj.swf" width=3D"320" height=3D"240"=0A          /&gt;&lt;/object&gt; &lt;=
/video&gt;<br>=0A          <br>=0A          &nbsp; &lt;p&gt;&lt;strong&gt;D=
ownload Video:&lt;/strong&gt; Closed=0A          Format:&lt;a<br>=0A       =
   &nbsp; href=3D"proj.mp4"&gt;"mp4"&lt;/a&gt; Open Format:&lt;a=0A        =
  href=3D"proj.ogg"&gt;"ogg"&lt;/a&gt; &lt;/p&gt;<br>=0A        </div>=0A  =
      <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont-family:times =
new roman, new york, times, serif;=0Abackground-color:transparent;font-styl=
e:normal;"><br>=0A        </div>=0A        <div style=3D"color:rgb(0, 0, 0)=
;font-size:16px;=0Afont-family:times new roman, new york, times, serif;=0Ab=
ackground-color:transparent;font-style:normal;">Conclusion:</div>=0A       =
 <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont-family:times new r=
oman, new york, times, serif;=0Abackground-color:transparent;font-style:nor=
mal;">**********</div>=0A        <div style=3D"color:rgb(0, 0, 0);font-size=
:16px;=0Afont-family:times new roman, new york, times, serif;=0Abackground-=
color:transparent;font-style:normal;margin-left:40px;">XHTML:=0A          s=
till errors, and code is not changed by Amaya</div>=0A        <div style=3D=
"color:rgb(0, 0, 0);font-size:16px;=0Afont-family:times new roman, new york=
, times, serif;=0Abackground-color:transparent;font-style:normal;margin-lef=
t:40px;">HTML 4:=0A          no error, but code layout is modified<br>=0A  =
      </div>=0A        <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Af=
ont-family:times new roman, new york, times, serif;=0Abackground-color:tran=
sparent;font-style:normal;"><br>=0A        </div>=0A        <div style=3D"c=
olor:rgb(0, 0, 0);font-size:16px;=0Afont-family:times new roman, new york, =
times, serif;=0Abackground-color:transparent;font-style:normal;margin-left:=
40px;">Then:=0A          what should I decide ?<br>=0A        </div>=0A    =
    <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont-family:times ne=
w roman, new york, times, serif;=0Abackground-color:transparent;font-style:=
normal;"><br>=0A        </div>=0A        <div style=3D"font-family:times ne=
w roman, new york, times, serif;font-size:12pt;">=0A          <div style=3D=
"font-family:times new roman, new york, times, serif;font-size:12pt;">=0A  =
          <div dir=3D"ltr"> <font face=3D"Arial" size=3D"2">=0A            =
    <hr size=3D"1"> <b><span style=3D"font-weight:bold;">De&nbsp;:</span></=
b>=0A                Leif Halvard Silli <a rel=3D"nofollow" class=3D"yiv798=
455141moz-txt-link-rfc2396E" ymailto=3D"mailto:xn--mlform-iua@m=E5lform.no"=
 target=3D"_blank" href=3D"mailto:xn--mlform-iua@m%C3%A5lform.no">&lt;xn--m=
lform-iua@m=E5lform.no&gt;</a><br>=0A                <b><span style=3D"font=
-weight:bold;">=C0&nbsp;:</span></b>=0A                HiddenId <a rel=3D"n=
ofollow" class=3D"yiv798455141moz-txt-link-rfc2396E" ymailto=3D"mailto:cour=
[email protected]" target=3D"_blank" href=3D"mailto:courriel_achevrie=
[email protected]">&lt;[email protected]&gt;</a> <br>=0A                =
<b><span style=3D"font-weight:bold;">Cc&nbsp;:</span></b>=0A               =
 <a rel=3D"nofollow" class=3D"yiv798455141moz-txt-link-rfc2396E" ymailto=3D=
"mailto:[email protected]" target=3D"_blank" href=3D"mailto:[email protected]=
">"[email protected]"</a> <a rel=3D"nofollow" class=3D"yiv798455141moz-txt-l=
ink-rfc2396E" ymailto=3D"mailto:[email protected]" target=3D"_blank" href=3D=
"mailto:[email protected]">&lt;[email protected]&gt;</a> <br>=0A             =
   <b><span style=3D"font-weight:bold;">Envoy=E9 le :</span></b>=0A        =
        Samedi 5 janvier 2013 15h46<br>=0A                <b><span style=3D=
"font-weight:bold;">Objet&nbsp;:</span></b>=0A                Re: error cod=
e when insering a video using video tag<br>=0A              </font> </div>=
=0A            <br>=0A            HiddenId, Fri, 4 Jan 2013 17:43:32 +0000 =
(GMT):<br>=0A            <br>=0A            &gt; I'm trying to insert a vid=
eo in an HTML page.<br>=0A            &gt; I've tried a w3school code examp=
le :<br>=0A            &gt; <br>=0A            &gt; &lt;video width=3D"320"=
 height=3D"240" controls&gt;<br>=0A            &gt; &nbsp; &lt;source src=
=3D"movie.mp4" type=3D"video/mp4"&gt;<br>=0A            &gt; &nbsp; &lt;sou=
rce src=3D"movie.ogg" type=3D"video/ogg"&gt;<br>=0A            &gt; &nbsp; =
&lt;source src=3D"movie.webm" type=3D"video/webm"&gt;<br>=0A            &gt=
; &nbsp; &lt;object data=3D"movie.mp4" width=3D"320"=0A            height=
=3D"240"&gt;<br>=0A            &gt; &nbsp;&nbsp;&nbsp; &lt;embed src=3D"mov=
ie.swf" width=3D"320"=0A            height=3D"240"&gt;<br>=0A            &g=
t; &nbsp; &lt;/object&gt; <br>=0A            &gt; &lt;/video&gt; <br>=0A   =
         <br>=0A            &gt; Unfortunatly, Amaya returns "an error code=
": invalid=0A            token<br>=0A            &gt; It seems it is the "s=
" of controls which generate the=0A            error.<br>=0A            &gt=
; <br>=0A            &gt; Do you know what I should do to avoid this error =
?<br>=0A            <br>=0A            Firstly, assuming that you work with=
 an XHTML document,=0A            then, instead <br>=0A            of contr=
ols, you should write controls=3D"" or=0A            controls=3D"controls".=
 Then <br>=0A            that particular error message will disappear. This=
 is=0A            because XML <br>=0A            requires boolean attribute=
s to be of the shape foo=3D"foo" or=0A            foo=3D"". By <br>=0A     =
       contrast, HTML permits the author to type foo (the HTML=0A          =
  browser will <br>=0A            still think of it as foo=3D"", however).<=
br>=0A            <br>=0A            Secondly, the empty &lt;source/&gt; el=
ements must be=0A            equipped with a closing <br>=0A            "/"=
, since that is the canonical form of empty elements in=0A            XHTML=
. <br>=0A            <br>=0A            All in all, this would work:<br>=0A=
            <br>=0A            &lt;video width=3D"320" height=3D"240" contr=
ols=3D""&gt;<br>=0A            &nbsp; &lt;source src=3D"movie.mp4" type=3D"=
video/mp4" /&gt;<br>=0A            &nbsp; &lt;source src=3D"movie.ogg" type=
=3D"video/ogg" /&gt;<br>=0A            &nbsp; &lt;source src=3D"movie.webm"=
 type=3D"video/webm" /&gt;<br>=0A            &nbsp; &lt;object data=3D"movi=
e.mp4" width=3D"320" height=3D"240"&gt;<br>=0A            &nbsp;&nbsp;&nbsp=
; &lt;embed src=3D"movie.swf" width=3D"320" height=3D"240" /&gt;<br>=0A    =
        &nbsp; &lt;/object&gt; <br>=0A            &lt;/video&gt;<br>=0A    =
        -- <br>=0A            leif halvard silli<br>=0A            <br>=0A =
         </div>=0A        </div>=0A      </div>=0A    </blockquote>=0A    <=
br>=0A  </div>=0A=0A</div><br><br> </div> </div>  </div></body></html>
--1353131092-482889687-1357566638=:7083--