Re: error code when insering a video using video tag
HiddenId <[email protected]> Sat, 5 Jan 2013 18:30:19 +0000 (GMT)
| Newsgroups | gmane.comp.web.amaya.general |
|---|---|
| Message-ID | <[email protected]> |
--1353131092-1621113480-1357410619=:79256 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Laurent. =0A=0AThanks a lot,=0A=0A> If you want to add a video in a html= page using Amaya, you can use the elements embed or object.=0AOk, so, ....= one more question: if we want to add a video in an XHTML page using Amaya,= can we use the elements embed or object also without any error return ? I = imagine so, no ?=0AAntoine=0A=0A=0A=0A________________________________=0A D= e=A0: laurent carcone <[email protected]>=0A=C0=A0: HiddenId <courr= [email protected]> =0ACc=A0: "[email protected]" <[email protected]> =0A= Envoy=E9 le : Samedi 5 janvier 2013 17h57=0AObjet=A0: Re: error code when i= nsering 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>.=0AUnfort= unately, 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 h= tml page using Amaya, you can use=0A the elements embed or object.=0A= =0AThanks,=0ALaurent=0A=0ALe 05/01/13 17:15, HiddenId a =E9crit=A0:=0A=0AHe= llo All.=0A>Thanks a lot for your returns. =0A>=0A>I've still questions: is= it better to stay in xhtml or move to html code type, regarding results de= scribed bellow ?=0A>Antoine=0A>=0A>=0A>Here is the code I'm testing, includ= ing 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>3= 2 =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 hr= ef=3D"proj.ogg">"ogg"</a>=0A>34 =A0=A0 </p>=0A>=0A>------------------------= -----=0A>=0A>=0A>Then here are results concerning error alerts send back by= Amaya:=0A>=0A>=0A>=0A>Test 1: keeping XHTML code type (transitional 1.0)= =0A>*****************************************=0A>=0A>=A0=A0=A0=A0 <!DOCTYPE= html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"=0A>=A0=A0=A0=A0 =A0 = =A0 =A0 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">=0A>=0A>= =0A>Amaya returns following errors=0A>=0A>=0A>=0A>*** Errors/warnings in te= st.html=0A>=A0 line 23, char 0: Invalid or unsupported XHTML element=0A = <video>=0A>=A0 line 24, char 0: Invalid or unsupported XHTML element= =0A <source>=0A>=A0 line 25, char 0: Invalid or unsupported XHTML = element=0A <source>=0A>=A0 line 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=3D= 240 controls><source src=3Dproj.mp4 type=3Dvideo/mp4=0A>=A0 /><source src= =3Dproj.ogg type=3Dvideo/ogg /><source=0A src=3Dproj.webm type=3Dv= ideo/webm=0A>=A0 /><object data=3D"proj.mp4" width=3D"320" height=3D"240">= =0A>=A0=A0=A0 <embed src=3D"proj.swf" width=3D"320" height=3D"240"=0A = /></object> </video>=0A>=0A>=A0 <p><strong>Download Video:</strong> Clo= sed=0A Format:<a=0A>=A0 href=3D"proj.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 code is not changed by Amaya=0A>HTM= L 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=E5lform.no>=0A>=C0=A0: HiddenId <courr= [email protected]> =0A>Cc=A0: "[email protected]" <[email protected]> = =0A>Envoy=E9 le : Samedi 5 janvier 2013 15h46=0A>Objet=A0: Re: error code w= hen insering a video using video tag=0A> =0A>HiddenId, Fri, 4 Jan 2013 17:4= 3:32 +0000 (GMT):=0A>=0A>> I'm trying to insert a video in an HTML page.=0A= >> I've tried a w3school code example :=0A>> =0A>> <video width=3D"320" hei= ght=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 s= rc=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"mo= vie.swf" width=3D"320"=0A height=3D"240">=0A>> =A0 </object> =0A= >> </video> =0A>=0A>> Unfortunatly, Amaya returns "an error code": invalid= =0A token=0A>> It seems it is the "s" of controls which generate= the=0A error.=0A>> =0A>> Do you 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 controls, you should write controls=3D"= " or=0A controls=3D"controls". Then =0A>that particular error me= ssage will disappear. This is=0A because XML =0A>requires boolea= n attributes to be of the shape foo=3D"foo" or=0A foo=3D"". By = =0A>contrast, HTML permits the author to type foo (the HTML=0A b= rowser will =0A>still think of it as foo=3D"", however).=0A>=0A>Secondly, t= he 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" h= eight=3D"240" controls=3D"">=0A>=A0 <source src=3D"movie.mp4" type=3D"video= /mp4" />=0A>=A0 <source src=3D"movie.ogg" type=3D"video/ogg" />=0A>=A0 <sou= rce 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" wi= dth=3D"320" height=3D"240" />=0A>=A0 </object> =0A></video>=0A>-- =0A>leif = halvard silli=0A>=0A> --1353131092-1621113480-1357410619=:79256 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"><div><span>Hi Laurent= . <br></span></div><div style=3D"color: rgb(0, 0, 0); font-size: 16px; font= -family: times new roman,new york,times,serif; background-color: transparen= t; font-style: normal;"><span>Thanks a lot,<br></span></div><div style=3D"c= olor: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,= times,serif; background-color: transparent; font-style: normal;"><span>>= </span>If you want to add a video in a html page using Amaya, you can use= =0A the elements embed or object.</div><div style=3D"color: rgb(0, 0, = 0); font-size: 16px; font-family: times new roman,new york,times,serif; bac= kground-color: transparent; font-style: normal;">Ok, so, .... one more ques= tion: if we want to add a video in an XHTML page using Amaya, can we use=0A= the elements embed or object also without any error return ? I imagin= e so, no ?</div><div style=3D"color: rgb(0, 0, 0); font-size: 16px; font-fa= mily: times new roman,new york,times,serif; background-color: transparent; = font-style: normal;">Antoine<br></div><div><br></div> <div style=3D"font-f= amily: times new roman, new york, times, serif; font-size: 12pt;"> <div sty= le=3D"font-family: times new 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 :</span></b> laurent carcone <= [email protected]><br> <b><span style=3D"font-weight: bold;">=C0= :</span></b> HiddenId <[email protected]> <br><b><spa= n style=3D"font-weight: bold;">Cc :</span></b> "[email protected]" <= [email protected]> <br> <b><span style=3D"font-weight: bold;">Envoy=E9 le= :</span></b> Samedi 5 janvier 2013 17h57<br> <b><span style=3D"font-weight= : bold;">Objet :</span></b> Re: error code when insering a video using = video tag<br> </font> </div> <br><div id=3D"yiv40457131">=0A =0A=0A =0A= =0A <div>=0A <div class=3D"yiv40457131moz-cite-prefix">Hello,<br>=0A = <br>=0A Amaya doesn't support html5, it's why it raises an error = on the=0A element <video>.<br>=0A Unfortunately, new develo= pments on Amaya are stopped at W3C and=0A Inria. I know there is a pro= ject 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 :<br>=0A </div>=0A <blockquote type= =3D"cite">=0A <div style=3D"color:#000;background-color:#fff;font-fami= ly:times new roman, new york, times, serif;font-size:12pt;">=0A <div= ><span>Hello All.</span></div>=0A <div style=3D"color:rgb(0, 0, 0);f= ont-size:16px;=0Afont-family:times new roman, new york, times, serif;=0Abac= kground-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 y= ork, 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-f= amily:times new roman, new york, times, serif;=0Abackground-color:transpare= nt;font-style:normal;"><span>Antoine</span></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;"><span><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;=0Abackgro= und-color:transparent;font-style:normal;">Here is the code I'm=0A = testing, including changes you told me:</div>=0A <div style=3D"color= :rgb(0, 0, 0);font-size:16px;=0Afont-family:times new roman, new york, time= s, 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;">-------------------------------<br>=0A </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;">23 <video width=3D"320"=0A height= =3D"240" controls=3D""><br>=0A 24  = ; <source src=3D"proj.mp4" type=3D"video/mp4" /><br>=0A = 25 <source src=3D"proj.ogg"= type=3D"video/ogg" /><br>=0A 26 = <source src=3D"proj.webm" type=3D"video/webm" /><br>=0A = 27 <object data=3D"proj.mp= 4" width=3D"320"=0A height=3D"240"><br>=0A 28 &n= bsp; <embed src=3D"proj.= swf" width=3D"320"=0A height=3D"240"><br>=0A 29 = </object><br>=0A 30 &nb= sp; </video><br>=0A 31 <p><= ;strong>Download Video:</strong><br>=0A 32 &n= bsp; Closed Format:<a=0A hr= ef=3D"proj.mp4">"mp4"</a><br>=0A 33 &nb= sp; Open Format:<a=0A href=3D"pro= j.ogg">"ogg"</a><br>=0A 34 </p><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 new roman, new york, times, serif;=0Abackgr= ound-color:transparent;font-style:normal;">Then here are results=0A = concerning error alerts send back 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;=0Abackground-color:transparent;font-style:no= rmal;"><br>=0A </div>=0A <div style=3D"color:rgb(0, 0, 0);fon= t-size:16px;=0Afont-family:times new roman, new york, times, serif;=0Abackg= round-color:transparent;font-style: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-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 york, times, se= rif;=0Abackground-color:transparent;font-style:normal;"> &= nbsp; <!DOCTYPE html=0A PUBLIC "-//W3C//DTD XHTML 1.0 Transitio= nal//EN"<br>=0A =0A = <a rel=3D"nofollow" class=3D"yiv40457131moz-txt-link-rfc2396E" targ= et=3D"_blank" href=3D"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.d= td">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"</a>></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;"><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;">Amaya returns followin= g=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, s= erif;=0Abackground-color:transparent;font-style:normal;"><br>=0A </d= iv>=0A <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont-famil= y:times new roman, new york, times, serif;=0Abackground-color:transparent;f= ont-style:normal;margin-left:40px;">***=0A Errors/warnings in test= .html<br>=0A line 23, char 0: Invalid or unsupported XHTML = element=0A <video><br>=0A line 24, char 0: I= nvalid or unsupported XHTML element=0A <source><br>=0A = line 25, char 0: Invalid or unsupported XHTML element=0A = <source><br>=0A line 26, char 0: Invalid or unsuppo= rted XHTML element=0A <source><br>=0A line 2= 9, char 2: mismatched tag<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;"><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:transpar= ent;font-style:normal;">Test 2: changing to HTML=0A code type:</di= v>=0A <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont-family= :times new roman, new york, times, serif;=0Abackground-color:transparent;fo= nt-style:normal;">******************************<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;margin-left:40px;"><!DOCTYPE=0A html PUBLIC "-//W3C//DT= D HTML 4.01 Transitional//EN"<br>=0A  = ; <a rel=3D"nofollow" class=3D"yiv40457131moz-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>></div>=0A <div style=3D"color:rgb(0, 0, 0);= font-size:16px;=0Afont-family:times new roman, new york, times, serif;=0Aba= ckground-color:transparent;font-style:normal;"><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;">Amaya does not return 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;=0Abackground-color:transparent;font-style:normal;">= And Amaya modify the code,=0A erasing the "layout" of the code (se= e bellow):</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;margin-= left:40px;"><video=0A width=3D320 height=3D240 controls><= source src=3Dproj.mp4=0A type=3Dvideo/mp4<br>=0A /= ><source src=3Dproj.ogg type=3Dvideo/ogg /><source=0A = src=3Dproj.webm type=3Dvideo/webm<br>=0A /><object da= ta=3D"proj.mp4" width=3D"320" height=3D"240"><br>=0A &nbs= p; <embed src=3D"proj.swf" width=3D"320" height=3D"240"=0A = /></object> </video><br>=0A <br>=0A &nbs= p; <p><strong>Download Video:</strong> Closed=0A = Format:<a<br>=0A href=3D"proj.mp4">"mp4"</a> O= pen Format:<a=0A href=3D"proj.ogg">"ogg"</a> </p>= ;<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 york, times, serif;=0Abackground-color:transparent;font-style:normal;">= Conclusion:</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;">**********</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;">XHTML:=0A still errors, and code is not changed by Amaya</d= iv>=0A <div style=3D"color:rgb(0, 0, 0);font-size:16px;=0Afont-famil= y:times new roman, new york, times, serif;=0Abackground-color:transparent;f= ont-style:normal;margin-left: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;=0Afont-family:times new roman, new york, times, ser= if;=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, serif;=0Abackground-color:transparent;fon= t-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:1= 6px;=0Afont-family:times new roman, new york, times, serif;=0Abackground-co= lor:transparent;font-style:normal;"><br>=0A </div>=0A <div st= yle=3D"font-family:times new roman, new york, times, serif;font-size:12pt;"= >=0A <div style=3D"font-family:times new roman, new york, times, s= erif;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-weigh= t:bold;">De :</span></b>=0A Leif Halvard Silli <a rel= =3D"nofollow" class=3D"yiv40457131moz-txt-link-rfc2396E" ymailto=3D"mailto:= xn--mlform-iua@m=E5lform.no" target=3D"_blank" href=3D"mailto:xn--mlform-iu= a@m%C3%A5lform.no"><xn--mlform-iua@m=E5lform.no></a><br>=0A = <b><span style=3D"font-weight:bold;">=C0 :</span></b>=0A = HiddenId <a rel=3D"nofollow" class=3D"yiv40457131moz-txt-link-rfc23= 96E" ymailto=3D"mailto:[email protected]" target=3D"_blank" href= =3D"mailto:[email protected]"><[email protected]>= </a> <br>=0A <b><span style=3D"font-weight:bold;">Cc :<= /span></b>=0A <a rel=3D"nofollow" class=3D"yiv40457131moz-tx= t-link-rfc2396E" ymailto=3D"mailto:[email protected]" target=3D"_blank" href= =3D"mailto:[email protected]">"[email protected]"</a> <a rel=3D"nofollow" cla= ss=3D"yiv40457131moz-txt-link-rfc2396E" ymailto=3D"mailto:[email protected]"= target=3D"_blank" href=3D"mailto:[email protected]"><[email protected]>= ;</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 :</span></b>=0A = Re: error code 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 > I= 'm trying to insert a video in an HTML page.<br>=0A > I've tr= ied a w3school code example :<br>=0A > <br>=0A >= ; <video width=3D"320" height=3D"240" controls><br>=0A >= ; <source src=3D"movie.mp4" type=3D"video/mp4"><br>=0A = > <source src=3D"movie.ogg" type=3D"video/ogg"><br>=0A = > <source src=3D"movie.webm" type=3D"video/webm">= ;<br>=0A > <object data=3D"movie.mp4" width=3D"320"= =0A height=3D"240"><br>=0A > = <embed src=3D"movie.swf" width=3D"320"=0A height=3D"240">= <br>=0A > </object> <br>=0A > <= /video> <br>=0A <br>=0A > Unfortunatly, Amaya r= eturns "an error code": invalid=0A token<br>=0A > = It seems it is the "s" of controls which generate the=0A error.<= br>=0A > <br>=0A > Do you know what I should do= to avoid this error ?<br>=0A <br>=0A Firstly, assumi= ng that you work with an XHTML document,=0A then, instead <br>= =0A of controls, you should write controls=3D"" or=0A = controls=3D"controls". Then <br>=0A that particular error messa= ge will disappear. This is=0A because XML <br>=0A req= uires boolean attributes to be of the shape foo=3D"foo" or=0A fo= o=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 e= mpty <source/> elements 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 <video width=3D"32= 0" height=3D"240" controls=3D""><br>=0A <source src= =3D"movie.mp4" type=3D"video/mp4" /><br>=0A <source= src=3D"movie.ogg" type=3D"video/ogg" /><br>=0A <so= urce src=3D"movie.webm" type=3D"video/webm" /><br>=0A = <object data=3D"movie.mp4" width=3D"320" height=3D"240"><br>=0A = <embed src=3D"movie.swf" width=3D"320" height= =3D"240" /><br>=0A </object> <br>=0A = </video><br>=0A -- <br>=0A leif halvard silli<b= r>=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-1621113480-1357410619=:79256--