Re: error code when insering a video using video tag

HiddenId <[email protected]> Sat, 5 Jan 2013 19:31:46 +0000 (GMT)
Newsgroups gmane.comp.web.amaya.general
Message-ID <[email protected]>
---970193273-1044145268-1357414306=:46521
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Thank you Leif (I don't know if Leif is your surname or name, sorry for tha=
t), for this additional information.=0AAntoine=0A=0A=0A=0A=0A______________=
__________________=0A De=C2=A0: Leif Halvard Silli <xn--mlform-iua@m=C3=A5l=
form.no>=0A=C3=80=C2=A0: laurent carcone <[email protected]> =0ACc=
=C2=A0: HiddenId <[email protected]>; "[email protected]" <www-ama=
[email protected]> =0AEnvoy=C3=A9 le : Samedi 5 janvier 2013 19h35=0AObjet=C2=A0: R=
e: error code when insering a video using video tag=0A =0AThe most annoying=
 thing with Amaya - and the the most important =0Aprevention against using =
it for HTML5 work =E2=80=94 is that it deletes =0Aelements that it doesn=E2=
=80=99t know. =0A=0A#noteToSelf.=0A=0ALeif H Silli=0A=0A=0Alaurent carcone,=
 Sat, 05 Jan 2013 17:57:41 +0100:=0A> Hello,=0A> =0A> Amaya doesn't support=
 html5, it's why it raises an error on the =0A> element <video>.=0A> Unfort=
unately, new developments on Amaya are stopped at W3C and =0A> Inria. I kno=
w there is a project outside W3C to work on the HTML5 =0A> support, I'll le=
t you know if I have some update.=0A> If you want to add a video in a html =
page using Amaya, you can use =0A> the elements embed or object.=0A> =0A> T=
hanks,=0A> Laurent=0A> =0A> Le 05/01/13 17:15, HiddenId a =C3=A9crit=C2=A0:=
=0A>> Hello All.=0A>> Thanks a lot for your returns. =0A>> I've still quest=
ions: is it better to stay in xhtml or move to html =0A>> code type, regard=
ing results described bellow ?=0A>> Antoine=0A>> =0A>> Here is the code I'm=
 testing, including changes you told me:=0A>> =0A>> -----------------------=
--------=0A>> 23 =C2=A0=C2=A0 <video width=3D"320" height=3D"240" controls=
=3D"">=0A>> 24 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <source src=3D"proj.mp4=
"=C2=A0 type=3D"video/mp4" />=0A>> 25 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
<source src=3D"proj.ogg"=C2=A0 type=3D"video/ogg" />=0A>> 26 =C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 <source src=3D"proj.webm" type=3D"video/webm" />=
=0A>> 27 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <object data=3D"proj.mp4" wid=
th=3D"320" height=3D"240">=0A>> 28 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0 <embed src=3D"proj.swf" width=3D"320" height=3D"240">=
=0A>> 29 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </object>=0A>> 30 =C2=A0=C2=
=A0=C2=A0 </video>=0A>> 31 =C2=A0=C2=A0=C2=A0 <p><strong>Download Video:</s=
trong>=0A>> 32 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Close=
d Format:<a href=3D"proj.mp4">"mp4"</a>=0A>> 33 =C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 Open Format:<a href=3D"proj.ogg">"ogg"</a>=0A>>=
 34 =C2=A0=C2=A0 </p>=0A>> -----------------------------=0A>> =0A>> Then he=
re are results concerning error alerts send back by Amaya:=0A>> =0A>> Test =
1: keeping XHTML code type (transitional 1.0)=0A>> ************************=
*****************=0A>> =C2=A0=C2=A0=C2=A0=C2=A0 <!DOCTYPE html PUBLIC "-//W=
3C//DTD XHTML 1.0 Transitional//EN"=0A>> =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">=0A=
>> =0A>> Amaya returns following errors=0A>> =0A>> *** Errors/warnings in t=
est.html=0A>> =C2=A0 line 23, char 0: Invalid or unsupported XHTML element =
<video>=0A>> =C2=A0 line 24, char 0: Invalid or unsupported XHTML element <=
source>=0A>> =C2=A0 line 25, char 0: Invalid or unsupported XHTML element <=
source>=0A>> =C2=A0 line 26, char 0: Invalid or unsupported XHTML element <=
source>=0A>> =C2=A0 line 29, char 2: mismatched tag=0A>> =0A>> Test 2: chan=
ging to HTML code type:=0A>> ******************************=0A>> <!DOCTYPE =
html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"=0A>> =C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 "http://www.w3.org/TR/html4/loose.dtd">=0A>> =0A>> Amaya do=
es not return any error.=0A>> And Amaya modify the code, erasing the "layou=
t" of the code (see bellow):=0A>> =0A>> <video width=3D320 height=3D240 con=
trols><source src=3Dproj.mp4 type=3Dvideo/mp4=0A>> =C2=A0 /><source src=3Dp=
roj.ogg type=3Dvideo/ogg /><source src=3Dproj.webm =0A>> type=3Dvideo/webm=
=0A>> =C2=A0 /><object data=3D"proj.mp4" width=3D"320" height=3D"240">=0A>>=
 =C2=A0=C2=A0=C2=A0 <embed src=3D"proj.swf" width=3D"320" height=3D"240" />=
</object> </video>=0A>> =0A>> =C2=A0 <p><strong>Download Video:</strong> Cl=
osed Format:<a=0A>> =C2=A0 href=3D"proj.mp4">"mp4"</a> Open Format:<a href=
=3D"proj.ogg">"ogg"</a> </p>=0A>> =0A>> Conclusion:=0A>> **********=0A>> XH=
TML: still errors, and code is not changed by Amaya=0A>> HTML 4: no error, =
but code layout is modified=0A>> =0A>> Then: what should I decide ?=0A>> =
=0A>> =0A>> De=C2=A0: Leif Halvard Silli <xn--mlform-iua@m=C3=A5lform.no>=
=0A>> =C3=80=C2=A0: HiddenId <[email protected]> =0A>> Cc=C2=A0: =
"[email protected]" <[email protected]> =0A>> Envoy=C3=A9 le : Samedi 5 janvi=
er 2013 15h46=0A>> Objet=C2=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 insert a video in an HTML page.=0A>>> I've tried a w3s=
chool code example :=0A>>> =0A>>> <video width=3D"320" height=3D"240" contr=
ols>=0A>>> =C2=A0 <source src=3D"movie.mp4" type=3D"video/mp4">=0A>>> =C2=
=A0 <source src=3D"movie.ogg" type=3D"video/ogg">=0A>>> =C2=A0 <source src=
=3D"movie.webm" type=3D"video/webm">=0A>>> =C2=A0 <object data=3D"movie.mp4=
" width=3D"320" height=3D"240">=0A>>> =C2=A0=C2=A0=C2=A0 <embed src=3D"movi=
e.swf" width=3D"320" height=3D"240">=0A>>> =C2=A0 </object> =0A>>> </video>=
 =0A>> =0A>>> Unfortunatly, Amaya returns "an error code": invalid token=0A=
>>> It seems it is the "s" of controls which generate the error.=0A>>> =0A>=
>> Do you know what I should do to avoid this error ?=0A>> =0A>> Firstly, a=
ssuming that you work with an XHTML document, then, instead =0A>> of contro=
ls, you should write controls=3D"" or controls=3D"controls". Then =0A>> tha=
t particular error message will disappear. This is because XML =0A>> requir=
es boolean attributes to be of the shape foo=3D"foo" or foo=3D"". By =0A>> =
contrast, HTML permits the author to type foo (the HTML browser will =0A>> =
still think of it as foo=3D"", however).=0A>> =0A>> Secondly, the empty <so=
urce/> elements must be equipped with a closing =0A>> "/", since that is th=
e canonical form of empty elements in XHTML. =0A>> =0A>> All in all, this w=
ould work:=0A>> =0A>> <video width=3D"320" height=3D"240" controls=3D"">=0A=
>> =C2=A0 <source src=3D"movie.mp4" type=3D"video/mp4" />=0A>> =C2=A0 <sour=
ce src=3D"movie.ogg" type=3D"video/ogg" />=0A>> =C2=A0 <source src=3D"movie=
.webm" type=3D"video/webm" />=0A>> =C2=A0 <object data=3D"movie.mp4" width=
=3D"320" height=3D"240">=0A>> =C2=A0=C2=A0=C2=A0 <embed src=3D"movie.swf" w=
idth=3D"320" height=3D"240" />=0A>> =C2=A0 </object> =0A>> </video>=0A>> --=
 =0A>> leif halvard silli=0A>> =0A> 
---970193273-1044145268-1357414306=:46521
Content-Type: text/html; charset=utf-8
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">Thank you Leif (I don=
't know if Leif is your surname or name, sorry for that), for this addition=
al information.<br>Antoine<br><div><span></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 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&nbsp;:</span></b> Leif=
 Halvard Silli &lt;xn--mlform-iua@m=C3=A5lform.no&gt;<br> <b><span style=3D=
"font-weight: bold;">=C3=80&nbsp;:</span></b> laurent carcone &lt;laurent.c=
[email protected]&gt; <br><b><span style=3D"font-weight: bold;">Cc&nbsp;:</s=
pan></b> HiddenId &lt;[email protected]&gt;; "[email protected]" &=
lt;[email protected]&gt; <br> <b><span style=3D"font-weight: bold;">Envoy=C3=
=A9 le :</span></b> Samedi
 5 janvier 2013 19h35<br> <b><span style=3D"font-weight: bold;">Objet&nbsp;=
:</span></b> Re: error code when insering a video using video tag<br> </fon=
t> </div> <br>The most annoying thing with Amaya - and the the most importa=
nt <br>prevention against using it for HTML5 work =E2=80=94 is that it dele=
tes <br>elements that it doesn=E2=80=99t know. <br><br>#noteToSelf.<br><br>=
Leif H Silli<br><br><br>laurent carcone, Sat, 05 Jan 2013 17:57:41 +0100:<b=
r>&gt; Hello,<br>&gt; <br>&gt; Amaya doesn't support html5, it's why it rai=
ses an error on the <br>&gt; element &lt;video&gt;.<br>&gt; Unfortunately, =
new developments on Amaya are stopped at W3C and <br>&gt; Inria. I know the=
re is a project outside W3C to work on the HTML5 <br>&gt; support, I'll let=
 you know if I have some update.<br>&gt; If you want to add a video in a ht=
ml page using Amaya, you can use <br>&gt; the elements embed or object.<br>=
&gt; <br>&gt; Thanks,<br>&gt; Laurent<br>&gt; <br>&gt; Le 05/01/13 17:15, H=
iddenId
 a =C3=A9crit&nbsp;:<br>&gt;&gt; Hello All.<br>&gt;&gt; Thanks a lot for yo=
ur returns. <br>&gt;&gt; I've still questions: is it better to stay in xhtm=
l or move to html <br>&gt;&gt; code type, regarding results described bello=
w ?<br>&gt;&gt; Antoine<br>&gt;&gt; <br>&gt;&gt; Here is the code I'm testi=
ng, including changes you told me:<br>&gt;&gt; <br>&gt;&gt; ---------------=
----------------<br>&gt;&gt; 23 &nbsp;&nbsp; &lt;video width=3D"320" height=
=3D"240" controls=3D""&gt;<br>&gt;&gt; 24 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; &lt;source src=3D"proj.mp4"&nbsp; type=3D"video/mp4" /&gt;<br>&gt;&gt; =
25 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;source src=3D"proj.ogg"&nbsp; t=
ype=3D"video/ogg" /&gt;<br>&gt;&gt; 26 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 &lt;source src=3D"proj.webm" type=3D"video/webm" /&gt;<br>&gt;&gt; 27 &nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;object data=3D"proj.mp4" width=3D"320"=
 height=3D"240"&gt;<br>&gt;&gt; 28 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;
 &lt;embed src=3D"proj.swf" width=3D"320" height=3D"240"&gt;<br>&gt;&gt; 29=
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/object&gt;<br>&gt;&gt; 30 &nbsp;=
&nbsp;&nbsp; &lt;/video&gt;<br>&gt;&gt; 31 &nbsp;&nbsp;&nbsp; &lt;p&gt;&lt;=
strong&gt;Download Video:&lt;/strong&gt;<br>&gt;&gt; 32 &nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Closed Format:&lt;a href=3D"proj.mp4"&g=
t;"mp4"&lt;/a&gt;<br>&gt;&gt; 33 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp; Open Format:&lt;a href=3D"proj.ogg"&gt;"ogg"&lt;/a&gt;<br>&gt;=
&gt; 34 &nbsp;&nbsp; &lt;/p&gt;<br>&gt;&gt; -----------------------------<b=
r>&gt;&gt; <br>&gt;&gt; Then here are results concerning error alerts send =
back by Amaya:<br>&gt;&gt; <br>&gt;&gt; Test 1: keeping XHTML code type (tr=
ansitional 1.0)<br>&gt;&gt; *****************************************<br>&g=
t;&gt; &nbsp;&nbsp;&nbsp;&nbsp; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML=
 1.0 Transitional//EN"<br>&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;
 &nbsp; "<a href=3D"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd=
" target=3D"_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd=
</a>"&gt;<br>&gt;&gt; <br>&gt;&gt; Amaya returns following errors<br>&gt;&g=
t; <br>&gt;&gt; *** Errors/warnings in test.html<br>&gt;&gt; &nbsp; line 23=
, char 0: Invalid or unsupported XHTML element &lt;video&gt;<br>&gt;&gt; &n=
bsp; line 24, char 0: Invalid or unsupported XHTML element &lt;source&gt;<b=
r>&gt;&gt; &nbsp; line 25, char 0: Invalid or unsupported XHTML element &lt=
;source&gt;<br>&gt;&gt; &nbsp; line 26, char 0: Invalid or unsupported XHTM=
L element &lt;source&gt;<br>&gt;&gt; &nbsp; line 29, char 2: mismatched tag=
<br>&gt;&gt; <br>&gt;&gt; Test 2: changing to HTML code type:<br>&gt;&gt; *=
*****************************<br>&gt;&gt; &lt;!DOCTYPE html PUBLIC "-//W3C/=
/DTD HTML 4.01 Transitional//EN"<br>&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 "<a href=3D"http://www.w3.org/TR/html4/loose.dtd"
 target=3D"_blank">http://www.w3.org/TR/html4/loose.dtd</a>"&gt;<br>&gt;&gt=
; <br>&gt;&gt; Amaya does not return any error.<br>&gt;&gt; And Amaya modif=
y the code, erasing the "layout" of the code (see bellow):<br>&gt;&gt; <br>=
&gt;&gt; &lt;video width=3D320 height=3D240 controls&gt;&lt;source src=3Dpr=
oj.mp4 type=3Dvideo/mp4<br>&gt;&gt; &nbsp; /&gt;&lt;source src=3Dproj.ogg t=
ype=3Dvideo/ogg /&gt;&lt;source src=3Dproj.webm <br>&gt;&gt; type=3Dvideo/w=
ebm<br>&gt;&gt; &nbsp; /&gt;&lt;object data=3D"proj.mp4" width=3D"320" heig=
ht=3D"240"&gt;<br>&gt;&gt; &nbsp;&nbsp;&nbsp; &lt;embed src=3D"proj.swf" wi=
dth=3D"320" height=3D"240" /&gt;&lt;/object&gt; &lt;/video&gt;<br>&gt;&gt; =
<br>&gt;&gt; &nbsp; &lt;p&gt;&lt;strong&gt;Download Video:&lt;/strong&gt; C=
losed Format:&lt;a<br>&gt;&gt; &nbsp; href=3D"proj.mp4"&gt;"mp4"&lt;/a&gt; =
Open Format:&lt;a href=3D"proj.ogg"&gt;"ogg"&lt;/a&gt; &lt;/p&gt;<br>&gt;&g=
t; <br>&gt;&gt; Conclusion:<br>&gt;&gt; **********<br>&gt;&gt; XHTML: still=
 errors, and code is not
 changed by Amaya<br>&gt;&gt; HTML 4: no error, but code layout is modified=
<br>&gt;&gt; <br>&gt;&gt; Then: what should I decide ?<br>&gt;&gt; <br>&gt;=
&gt; <br>&gt;&gt; De&nbsp;: Leif Halvard Silli &lt;xn--mlform-iua@m=C3=A5lf=
orm.no&gt;<br>&gt;&gt; =C3=80&nbsp;: HiddenId &lt;<a ymailto=3D"mailto:cour=
[email protected]" href=3D"mailto:[email protected]">courri=
[email protected]</a>&gt; <br>&gt;&gt; Cc&nbsp;: "<a ymailto=3D"mailto:=
[email protected]" href=3D"mailto:[email protected]">[email protected]</a>" &l=
t;<a ymailto=3D"mailto:[email protected]" href=3D"mailto:[email protected]">w=
[email protected]</a>&gt; <br>&gt;&gt; Envoy=C3=A9 le : Samedi 5 janvier 2013=
 15h46<br>&gt;&gt; Objet&nbsp;: Re: error code when insering a video using =
video tag<br>&gt;&gt; <br>&gt;&gt; HiddenId, Fri, 4 Jan 2013 17:43:32 +0000=
 (GMT):<br>&gt;&gt; <br>&gt;&gt;&gt; I'm trying to insert a video in an HTM=
L page.<br>&gt;&gt;&gt; I've tried a w3school code example :<br>&gt;&gt;&gt=
;
 <br>&gt;&gt;&gt; &lt;video width=3D"320" height=3D"240" controls&gt;<br>&g=
t;&gt;&gt; &nbsp; &lt;source src=3D"movie.mp4" type=3D"video/mp4"&gt;<br>&g=
t;&gt;&gt; &nbsp; &lt;source src=3D"movie.ogg" type=3D"video/ogg"&gt;<br>&g=
t;&gt;&gt; &nbsp; &lt;source src=3D"movie.webm" type=3D"video/webm"&gt;<br>=
&gt;&gt;&gt; &nbsp; &lt;object data=3D"movie.mp4" width=3D"320" height=3D"2=
40"&gt;<br>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; &lt;embed src=3D"movie.swf" widt=
h=3D"320" height=3D"240"&gt;<br>&gt;&gt;&gt; &nbsp; &lt;/object&gt; <br>&gt=
;&gt;&gt; &lt;/video&gt; <br>&gt;&gt; <br>&gt;&gt;&gt; Unfortunatly, Amaya =
returns "an error code": invalid token<br>&gt;&gt;&gt; It seems it is the "=
s" of controls which generate the error.<br>&gt;&gt;&gt; <br>&gt;&gt;&gt; D=
o you know what I should do to avoid this error ?<br>&gt;&gt; <br>&gt;&gt; =
Firstly, assuming that you work with an XHTML document, then, instead <br>&=
gt;&gt; of controls, you should write controls=3D"" or controls=3D"controls=
". Then <br>&gt;&gt; that
 particular error message will disappear. This is because XML <br>&gt;&gt; =
requires boolean attributes to be of the shape foo=3D"foo" or foo=3D"". By =
<br>&gt;&gt; contrast, HTML permits the author to type foo (the HTML browse=
r will <br>&gt;&gt; still think of it as foo=3D"", however).<br>&gt;&gt; <b=
r>&gt;&gt; Secondly, the empty &lt;source/&gt; elements must be equipped wi=
th a closing <br>&gt;&gt; "/", since that is the canonical form of empty el=
ements in XHTML. <br>&gt;&gt; <br>&gt;&gt; All in all, this would work:<br>=
&gt;&gt; <br>&gt;&gt; &lt;video width=3D"320" height=3D"240" controls=3D""&=
gt;<br>&gt;&gt; &nbsp; &lt;source src=3D"movie.mp4" type=3D"video/mp4" /&gt=
;<br>&gt;&gt; &nbsp; &lt;source src=3D"movie.ogg" type=3D"video/ogg" /&gt;<=
br>&gt;&gt; &nbsp; &lt;source src=3D"movie.webm" type=3D"video/webm" /&gt;<=
br>&gt;&gt; &nbsp; &lt;object data=3D"movie.mp4" width=3D"320" height=3D"24=
0"&gt;<br>&gt;&gt; &nbsp;&nbsp;&nbsp; &lt;embed src=3D"movie.swf" width=3D"=
320" height=3D"240"
 /&gt;<br>&gt;&gt; &nbsp; &lt;/object&gt; <br>&gt;&gt; &lt;/video&gt;<br>&g=
t;&gt; -- <br>&gt;&gt; leif halvard silli<br>&gt;&gt; <br>&gt; <br><br> </d=
iv> </div>  </div></body></html>
---970193273-1044145268-1357414306=:46521--