Re: error code when insering a video using video tag
HiddenId <[email protected]> Tue, 8 Jan 2013 16:33:50 +0000 (GMT)
| Newsgroups | gmane.comp.web.amaya.general |
|---|---|
| Message-ID | <[email protected]> |
--442431671-1785106575-1357662830=:90820 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Laurent.=0AIt fine for me.=0AThen, let say, the best way to include = video using Amaya, is to use <OBJECT> tag, available in the menu.=0AAntoine= =0A=0A=0A=0A=0A________________________________=0A De=A0: Laurent Carcone <= [email protected]>=0A=C0=A0: HiddenId <[email protected]> =0ACc=A0: = "[email protected]" <[email protected]> =0AEnvoy=E9 le : Mardi 8 janvier 2013= 11h48=0AObjet=A0: Re: error code when insering a video using video tag=0A = =0A=0AHi Antoine,=0A=0AThe <embed> element was deprecated in HTML4 (and in = XHTML)=0A in favor of <object>, it's why it is not allowed in the menu= =0A (it is deprecated not invalid so Amaya doesn't report an error=0A = when it is found in an input document).=0A=0AThanks,=0ALaurent=0A=0A= =0ALe 07/01/2013 14:50, HiddenId a =E9crit=A0:=0A=0AHi Laurent,=0A>=0A>> If= you want to add a video in a html page using Amaya, you=0A can use = the elements embed or object.=0A>=0A>I see easily where I can get the "OBJE= CT" tag in Amaya ( top=0A menu -> insert -> insert object ), but I d= o not manage to=0A find the way to get "EMBED" tag from any menu in = Amaya. It seems=0A it is not possible. Am I correct ?=0A>=0A>Antoine= =0A>=0A>=0A>=0A>=0A>=0A>=0A>________________________________=0A> De=A0: lau= rent carcone <[email protected]>=0A>=C0=A0: HiddenId <courriel_ache= [email protected]> =0A>Cc=A0: "[email protected]" <[email protected]> =0A>Envoy= =E9 le : Samedi 5 janvier 2013 17h57=0A>Objet=A0: Re: error code when inser= ing a video using video tag=0A> =0A>=0A>Hello,=0A>=0A>Amaya doesn't support= html5, it's why it raises an=0A error on the element <vid= eo>.=0A>Unfortunately, new developments on Amaya are stopped=0A = at W3C and Inria. I know there is a project outside=0A = W3C to work on the HTML5 support, I'll let you know if=0A = I have some update.=0A>If you want to add a video in a html page using A= maya,=0A you can use the elements embed or object.=0A>=0A>= Thanks,=0A>Laurent=0A>=0A>Le 05/01/13 17:15, HiddenId a =E9crit=A0:=0A>=0A>= Hello All.=0A>>Thanks a lot for your returns. =0A>>=0A>>I've still question= s: is it better to stay in xhtml or move to html code type, regarding resul= ts described bellow ?=0A>>Antoine=0A>>=0A>>=0A>>Here is the code I'm testin= g, 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=0A = type=3D"video/mp4" />=0A>>25 =A0=A0=A0=A0=A0=A0 <source src=3D"proj.ogg= "=A0=0A type=3D"video/ogg" />=0A>>26 =A0=A0=A0=A0=A0= =A0 <source src=3D"proj.webm"=0A 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 <emb= ed 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=0A 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 results con= cerning 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 T= ransitional//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 test.html=0A>>=A0 line 23, char = 0: Invalid or unsupported XHTML=0A element <video>=0A>= >=A0 line 24, char 0: Invalid or unsupported XHTML=0A = element <source>=0A>>=A0 line 25, char 0: Invalid or unsupported XHTML=0A = element <source>=0A>>=A0 line 26, char 0: Invalid or un= supported XHTML=0A element <source>=0A>>=A0 line 29, c= har 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 A= maya modify the code, erasing the "layout" of the code (see bellow):=0A>>= =0A>>=0A>><video width=3D320 height=3D240 controls><source src=3Dproj.mp4 t= ype=3Dvideo/mp4=0A>>=A0 /><source src=3Dproj.ogg type=3Dvideo/ogg=0A = /><source src=3Dproj.webm type=3Dvideo/webm=0A>>=A0 /><objec= t data=3D"proj.mp4" width=3D"320"=0A height=3D"240">= =0A>>=A0=A0=A0 <embed src=3D"proj.swf" width=3D"320"=0A = height=3D"240" /></object> </video>=0A>>=0A>>=A0 <p><strong>Download=0A = Video:</strong> Closed Format:<a=0A>>=A0 href=3D"proj.m= p4">"mp4"</a> Open=0A Format:<a href=3D"proj.ogg">"ogg= "</a>=0A </p>=0A>>=0A>>=0A>>=0A>>Conclusion:=0A>>*****= *****=0A>>XHTML: still errors, and code 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>> D= e=A0: Leif Halvard Silli <xn--mlform-iua@m=E5lform.no>=0A>>=C0=A0: HiddenId= <[email protected]> =0A>>Cc=A0: "[email protected]" <www-amaya@w3= .org> =0A>>Envoy=E9 le : Samedi 5 janvier 2013 15h46=0A>>Objet=A0: Re: erro= r 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 insert a video in an H= TML=0A page.=0A>>> I've tried a w3school code exampl= e :=0A>>> =0A>>> <video width=3D"320" height=3D"240"=0A = controls>=0A>>> =A0 <source src=3D"movie.mp4"=0A = type=3D"video/mp4">=0A>>> =A0 <source src=3D"movie.ogg"=0A = type=3D"video/ogg">=0A>>> =A0 <source src=3D"movie.webm"=0A = type=3D"video/webm">=0A>>> =A0 <object data=3D"movie.mp4" w= idth=3D"320"=0A height=3D"240">=0A>>> =A0=A0=A0 <emb= ed src=3D"movie.swf" width=3D"320"=0A height=3D"240"= >=0A>>> =A0 </object> =0A>>> </video> =0A>>=0A>>> Unfortunatly, Amaya retur= ns "an error=0A code": invalid token=0A>>> It seems = it is the "s" of controls which=0A generate the erro= r.=0A>>> =0A>>> Do you know what I should do to avoid this=0A = error ?=0A>>=0A>>Firstly, assuming that you work with an XHTML=0A= document, then, instead =0A>>of controls, you shoul= d write controls=3D"" or=0A controls=3D"controls". T= hen =0A>>that particular error message will disappear.=0A = This is because XML =0A>>requires boolean attributes to be of the sha= pe=0A foo=3D"foo" or foo=3D"". By =0A>>contrast, HTM= L permits the author to type foo=0A (the HTML browse= r will =0A>>still think of it as foo=3D"", however).=0A>>=0A>>Secondly, the= empty <source/> elements=0A must be equipped with a= closing =0A>>"/", since that is the canonical form of empty=0A = elements in XHTML. =0A>>=0A>>All in all, this would work:=0A>>= =0A>><video width=3D"320" height=3D"240"=0A controls= =3D"">=0A>>=A0 <source src=3D"movie.mp4" type=3D"video/mp4"=0A = />=0A>>=A0 <source src=3D"movie.ogg" type=3D"video/ogg"=0A = />=0A>>=A0 <source src=3D"movie.webm" type=3D"video/webm"= =0A />=0A>>=A0 <object data=3D"movie.mp4" width=3D"3= 20"=0A height=3D"240">=0A>>=A0=A0=A0 <embed src=3D"m= ovie.swf" width=3D"320"=0A height=3D"240" />=0A>>=A0= </object> =0A>></video>=0A>>-- =0A>>leif halvard silli=0A>>=0A>>=0A>=0A>= =0A> --442431671-1785106575-1357662830=:90820 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">Thanks Laurent.<br>It= fine for me.<br>Then, let say, the best way to include video using Amaya, = is to use <OBJECT> tag, available in the menu.<br>Antoine<br><div><sp= an><br></span></div><div><br></div> <div style=3D"font-family: times new r= oman, new york, times, serif; font-size: 12pt;"> <div style=3D"font-family:= times new roman, new york, times, serif; font-size: 12pt;"> <div dir=3D"lt= r"> <font face=3D"Arial" size=3D"2"> <hr size=3D"1"> <b><span style=3D"fon= t-weight:bold;">De :</span></b> Laurent Carcone <[email protected]>= <br> <b><span style=3D"font-weight: bold;">=C0 :</span></b> HiddenId &= lt;[email protected]> <br><b><span 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> Mardi 8 janvier= 2013 11h48<br> <b><span style=3D"font-weight: bold;">Objet :</span></b> Re: error co= de when insering a video using video tag<br> </font> </div> <br><div id=3D"= yiv607697205">=0A =0A=0A =0A =0A <div>=0A <div class=3D"yiv6076972= 05moz-cite-prefix">Hi Antoine,<br>=0A <br>=0A The <embed> e= lement was deprecated in HTML4 (and in XHTML)=0A in favor of <objec= t>, it's why it is not allowed in the menu=0A (it is deprecated not= invalid so Amaya doesn't report an error=0A when it is found in an in= put document).<br>=0A <br>=0A Thanks,<br>=0A Laurent<br>=0A = <br>=0A <br>=0A Le 07/01/2013 14:50, HiddenId a =E9crit = ;:<br>=0A </div>=0A <blockquote type=3D"cite">=0A <div style=3D"= color:#000;background-color:#fff;font-family:times new roman, new york, tim= es, serif;font-size:12pt;">Hi Laurent,<br>=0A <br>=0A > If= you want to add a video in a html page using Amaya, you=0A can use = the elements embed or object.<br>=0A <br>=0A I see easily whe= re I can get the "OBJECT" tag in Amaya ( top=0A menu -> insert -&= gt; insert object ), but I do not manage to=0A find the way to get "= EMBED" tag from any menu in Amaya. It seems=0A it is not possible. A= m I correct ?<br>=0A <br>=0A Antoine<br>=0A <div><span= ><br>=0A </span></div>=0A <div><br>=0A </div>=0A = <div style=3D"font-family:times new roman, new york, times, serif;font-= size:12pt;">=0A <div style=3D"font-family:times new roman, new yor= k, times, serif;font-size:12pt;">=0A <div dir=3D"ltr"> <font fac= e=3D"Arial" size=3D"2">=0A <hr size=3D"1"> <b><span style=3D= "font-weight:bold;">De :</span></b>=0A laurent carcone = <a rel=3D"nofollow" class=3D"yiv607697205moz-txt-link-rfc2396E" ymailto=3D"= mailto:[email protected]" target=3D"_blank" href=3D"mailto:laurent.= [email protected]"><[email protected]></a><br>=0A = <b><span style=3D"font-weight:bold;">=C0 :</span></b>=0A = HiddenId <a rel=3D"nofollow" class=3D"yiv607697205moz-txt-link-rfc239= 6E" 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"yiv607697205moz-t= xt-link-rfc2396E" ymailto=3D"mailto:[email protected]" target=3D"_blank" hre= f=3D"mailto:[email protected]">"[email protected]"</a> <a rel=3D"nofollow" cl= ass=3D"yiv607697205moz-txt-link-rfc2396E" ymailto=3D"mailto:[email protected]= g" target=3D"_blank" href=3D"mailto:[email protected]"><[email protected]&= gt;</a> <br>=0A <b><span style=3D"font-weight:bold;">Envoy= =E9 le :</span></b>=0A Samedi 5 janvier 2013 17h57<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 <div id=3D= "yiv607697205">=0A <div>=0A <div class=3D"yiv60= 7697205moz-cite-prefix">Hello,<br>=0A <br>=0A = Amaya doesn't support html5, it's why it raises an=0A = error on the element <video>.<br>=0A Unfortunately,= new developments on Amaya are stopped=0A at W3C and Inria= . I know there is a project outside=0A W3C to work on the = HTML5 support, I'll let you know if=0A I have some update.= <br>=0A If you want to add a video in a html page using Am= aya,=0A you can use the elements embed or object.<br>=0A = <br>=0A Thanks,<br>=0A La= urent<br>=0A <br>=0A Le 05/01/13 17:15, H= iddenId a =E9crit :<br>=0A </div>=0A <bl= ockquote type=3D"cite">=0A <div style=3D"color:#000;backgr= ound-color:#fff;font-family:times new roman, new york, times, serif;font-si= ze:12pt;">=0A <div><span>Hello All.</span></div>=0A = <div style=3D"color:rgb(0, 0, 0);font-size:16px;font-family:= times new roman, new york, times, serif;background-color:transparent;font-s= tyle:normal;"><span>Thanks=0A a lot for your returns= . <br>=0A </span></div>=0A <div sty= le=3D"color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new yo= rk, times, serif;background-color:transparent;font-style:normal;"><span>I'v= e=0A still questions: is it better to stay in xhtml= =0A or move to html code type, regarding results=0A = described bellow ?</span></div>=0A = <div style=3D"color:rgb(0, 0, 0);font-size:16px;font-family:times new rom= an, new york, times, serif;background-color:transparent;font-style:normal;"= ><span>Antoine</span></div>=0A <div style=3D"color:rgb(0= , 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;= background-color:transparent;font-style:normal;"><span><br>=0A = </span></div>=0A <div style=3D"color:rgb(0, 0, = 0);font-size:16px;font-family:times new roman, new york, times, serif;backg= round-color:transparent;font-style:normal;">Here=0A is= the code I'm testing, including changes you=0A told m= e:</div>=0A <div style=3D"color:rgb(0, 0, 0);font-size:1= 6px;font-family:times new roman, new york, times, serif;background-color:tr= ansparent;font-style:normal;"><br>=0A </div>=0A = <div style=3D"color:rgb(0, 0, 0);font-size:16px;font-family:time= s new roman, new york, times, serif;background-color:transparent;font-style= :normal;">-------------------------------<br>=0A </div>= =0A <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;">23=0A <video wid= th=3D"320" height=3D"240"=0A controls=3D""><br>=0A = 24 <source src= =3D"proj.mp4" =0A type=3D"video/mp4" /><br>=0A= 25 <source sr= c=3D"proj.ogg" =0A type=3D"video/ogg" /><br>= =0A 26 <source= src=3D"proj.webm"=0A type=3D"video/webm" /><br>=0A= 27 <object da= ta=3D"proj.mp4" width=3D"320"=0A height=3D"240"><br= >=0A 28 &nbs= p; <embed src=3D"proj.swf" width=3D"320"=0A = height=3D"240"><br>=0A 29 &n= bsp; </object><br>=0A 30  = ; </video><br>=0A 31 &l= t;p><strong>Download=0A Video:</strong>= <br>=0A 32 &= nbsp; Closed Format:<a=0A href=3D"proj.mp4"&g= t;"mp4"</a><br>=0A 33 &n= bsp; Open Format:<a=0A href= =3D"proj.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;font-family:times new roman, new york, times, serif;backgrou= nd-color:transparent;font-style:normal;">Then=0A here = are results concerning error alerts send back=0A by Am= aya:<br>=0A </div>=0A <div style=3D"c= olor:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, tim= es, serif;background-color:transparent;font-style:normal;"><br>=0A = </div>=0A <div style=3D"color:rgb(0, 0, 0);fo= nt-size:16px;font-family:times new roman, new york, times, serif;background= -color:transparent;font-style:normal;">Test=0A 1: keep= ing XHTML code type (transitional 1.0)</div>=0A <div sty= le=3D"color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new yo= rk, times, serif;background-color:transparent;font-style:normal;">*********= ********************************<br>=0A </div>=0A = <div style=3D"color:rgb(0, 0, 0);font-size:16px;font-family:ti= mes new roman, new york, times, serif;background-color:transparent;font-sty= le:normal;"> =0A <!DOCTYPE h= tml PUBLIC "-//W3C//DTD XHTML 1.0=0A Transitional//EN"= <br>=0A = <a rel=3D"nofollow" class=3D"yiv607697205moz-txt-link-rfc2396E" target=3D"_= blank" href=3D"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">"ht= tp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"</a>></div>=0A = <div style=3D"color:rgb(0, 0, 0);font-size:16px;font-family= :times new roman, new york, times, serif;background-color:transparent;font-= style:normal;"><br>=0A </div>=0A <div= style=3D"color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, ne= w york, times, serif;background-color:transparent;font-style:normal;">Amaya= =0A returns following errors<br>=0A = </div>=0A <div style=3D"color:rgb(0, 0, 0);font-size:16= px;font-family:times new roman, new york, times, serif;background-color:tra= nsparent;font-style:normal;"><br>=0A </div>=0A = <div style=3D"color:rgb(0, 0, 0);font-size:16px;font-family:times= new roman, new york, times, serif;background-color:transparent;font-style:= normal;margin-left:40px;">***=0A Errors/warnings in te= st.html<br>=0A line 23, char 0: Invalid or unsu= pported XHTML=0A element <video><br>=0A = line 24, char 0: Invalid or unsupported XHTML=0A = element <source><br>=0A li= ne 25, char 0: Invalid or unsupported XHTML=0A element= <source><br>=0A line 26, char 0: Invalid= or unsupported XHTML=0A element <source><br>=0A= line 29, char 2: mismatched tag<br>=0A = </div>=0A <div style=3D"color:rgb(0, 0, 0);f= ont-size:16px;font-family:times new roman, new york, times, serif;backgroun= d-color:transparent;font-style:normal;"><br>=0A </div>= =0A <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;">Test=0A 2: changing to HTML code= type:</div>=0A <div style=3D"color:rgb(0, 0, 0);font-si= ze:16px;font-family:times new roman, new york, times, serif;background-colo= r:transparent;font-style:normal;">******************************<br>=0A = </div>=0A <div style=3D"color:rgb(0, 0, = 0);font-size:16px;font-family:times new roman, new york, times, serif;backg= round-color:transparent;font-style:normal;margin-left:40px;"><!DOCTYPE= =0A=0A html PUBLIC "-//W3C//DTD HTML 4.01=0A = Transitional//EN"<br>=0A  = ; <a rel=3D"nofollow" class=3D"yiv607697205moz-txt-link-rfc2396= E" 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 sty= le=3D"color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new yo= rk, times, serif;background-color:transparent;font-style:normal;"><br>=0A = </div>=0A <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;">Amaya=0A = does not return any error.</div>=0A <div style=3D"color= :rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, = serif;background-color:transparent;font-style:normal;">And=0A = Amaya modify the code, erasing the "layout" of the=0A = code (see bellow):</div>=0A <div style=3D"color:= rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, s= erif;background-color:transparent;font-style:normal;"><br>=0A = </div>=0A <div style=3D"color:rgb(0, 0, 0);font-si= ze:16px;font-family:times new roman, new york, times, serif;background-colo= r:transparent;font-style:normal;margin-left:40px;"><video=0A=0A = width=3D320 height=3D240 controls><source=0A = src=3Dproj.mp4 type=3Dvideo/mp4<br>=0A  = ; /><source src=3Dproj.ogg type=3Dvideo/ogg=0A /= ><source src=3Dproj.webm type=3Dvideo/webm<br>=0A = /><object data=3D"proj.mp4" width=3D"320"=0A = height=3D"240"><br>=0A <= ;embed src=3D"proj.swf" width=3D"320"=0A height=3D"240= " /></object> </video><br>=0A <br>=0A = <p><strong>Download=0A = Video:</strong> Closed Format:<a<br>=0A = href=3D"proj.mp4">"mp4"</a> Open=0A = Format:<a href=3D"proj.ogg">"ogg"</a>=0A = </p><br>=0A </div>=0A <div styl= e=3D"color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new yor= k, times, serif;background-color:transparent;font-style:normal;"><br>=0A = </div>=0A <div style=3D"color:rgb(0, 0,= 0);font-size:16px;font-family:times new roman, new york, times, serif;back= ground-color:transparent;font-style:normal;">Conclusion:</div>=0A = <div style=3D"color:rgb(0, 0, 0);font-size:16px;font-family:times= new roman, new york, times, serif;background-color:transparent;font-style:= normal;">**********</div>=0A <div style=3D"color:rgb(0, = 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;ba= ckground-color:transparent;font-style:normal;margin-left:40px;">XHTML:=0A = still errors, and code is not changed by Amaya</div>=0A= <div style=3D"color:rgb(0, 0, 0);font-size:16px;font-fa= mily:times new roman, new york, times, serif;background-color:transparent;f= ont-style:normal;margin-left:40px;">HTML=0A 4: no erro= r, but code layout is modified<br>=0A </div>=0A = <div style=3D"color:rgb(0, 0, 0);font-size:16px;font-family:time= s new roman, new york, times, serif;background-color:transparent;font-style= :normal;"><br>=0A </div>=0A <div styl= e=3D"color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new yor= k, times, serif;background-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);fo= nt-size:16px;font-family:times new roman, new york, times, serif;background= -color:transparent;font-style:normal;"><br>=0A </div>=0A= <div style=3D"font-family:times new roman, new york, ti= mes, serif;font-size:12pt;">=0A <div style=3D"font-fam= ily: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"yiv607697205moz-txt-link-rfc2396E" ymailto=3D"mailto= :xn--mlform-iua@m%C3%A5lform.no" target=3D"_blank" href=3D"mailto:xn--mlfor= m-iua@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"y= iv607697205moz-txt-link-rfc2396E" ymailto=3D"mailto:courriel_achevrier@yaho= o.fr" target=3D"_blank" href=3D"mailto:[email protected]"><cou= [email protected]></a>=0A <br>=0A = <b><span style=3D"font-weight:bold;">Cc :</span= ></b>=0A <a rel=3D"nofollow" class=3D"yiv6076972= 05moz-txt-link-rfc2396E" ymailto=3D"mailto:[email protected]" target=3D"_bla= nk" href=3D"mailto:[email protected]">"[email protected]"</a>=0A = <a rel=3D"nofollow" class=3D"yiv607697205moz-txt-link-rfc239= 6E" ymailto=3D"mailto:[email protected]" target=3D"_blank" href=3D"mailto:ww= [email protected]"><[email protected]></a>=0A = <br>=0A <b><span style=3D"font-weight:bold;">Env= oy=E9 le=0A :</span></b> Samedi 5 janvier 20= 13 15h46<br>=0A <b><span style=3D"font-weight:bo= ld;">Objet :</span></b>=0A Re: error code w= hen insering a video using=0A 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 i= nsert a video in an HTML=0A page.<br>=0A = > I've tried a w3school code example :<br>=0A = > <br>=0A > <video width=3D"320" h= eight=3D"240"=0A controls><br>=0A = > <source src=3D"movie.mp4"=0A = type=3D"video/mp4"><br>=0A > <source= src=3D"movie.ogg"=0A type=3D"video/ogg"><br>=0A = > <source src=3D"movie.webm"=0A = 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 returns "an erro= r=0A code": invalid token<br>=0A = > It seems it is the "s" of controls which=0A = generate the error.<br>=0A > <br>=0A = > Do you know what I should do to avoid this=0A = error ?<br>=0A <br>=0A = Firstly, assuming that you work with an XHTML=0A = document, then, instead <br>=0A of controls, you s= hould write controls=3D"" or=0A controls=3D"controls= ". Then <br>=0A that particular error message will d= isappear.=0A This is because XML <br>=0A = requires boolean attributes to be of the shape=0A = foo=3D"foo" or foo=3D"". By <br>=0A contra= st, HTML permits the author to type foo=0A (the HTML= browser will <br>=0A still think of it as foo=3D"",= however).<br>=0A <br>=0A Sec= ondly, the empty <source/> elements=0A must be= equipped with a closing <br>=0A "/", since that is = the canonical form of empty=0A elements in XHTML. <b= r>=0A <br>=0A All in all, thi= s would work:<br>=0A <br>=0A = <video width=3D"320" height=3D"240"=0A controls= =3D""><br>=0A <source src=3D"movie.mp4"= type=3D"video/mp4"=0A /><br>=0A = <source src=3D"movie.ogg" type=3D"video/ogg"=0A = /><br>=0A <source src=3D"m= ovie.webm" type=3D"video/webm"=0A /><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 leif halvard silli<br>=0A = <br>=0A </div>=0A </d= iv>=0A </div>=0A </blockquote>=0A = <br>=0A </div>=0A </div>=0A <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> --442431671-1785106575-1357662830=:90820--