Re: error code when insering a video using video tag

Indeed, the HTML4 parser used in Amaya is less strict than the XML 
parser, it reports an error for the unknown elements (the red bottom 
right corner button), but let these elements be added in the DOM tree so 
that they can be generated at save (the missing quote marks is a bug).

Thanks,
Laurent

Le 06/01/13 12:46, Leif Halvard Silli a écrit :
> Cristiano Guglielmetti, Sun, 6 Jan 2013 11:16:12 +0100:
>> With Amaya 11.4.4 under Win7 with this code:
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>>        "http://www.w3.org/TR/html4/loose.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml">
>> <head>
>>    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
>>    <title>Nuovo</title>
>>    <meta name="generator" content="Amaya, see http://www.w3.org/Amaya/">
>> </head>
>>
>> <body>
>> <video width="320" height="240" controls>
>>    <source src="movie.mp4" type="video/mp4">
>>    <source src="movie.ogg" type="video/ogg">
>>    <source src="movie.webm" type="video/webm">
>>    <object data="movie.mp4" width="320" height="240">
>>      <embed src="movie.swf" width="320" height="240">
>>    </object>
>> </video>
>>
>> </body>
>> </html>
>>
>> I get no errors by Amaya (also saving and reloading)
> Hm. You are right. However, a few things *do* happen:
>
> 1) Though you don't get errors, you do get warnings (the button in the
> bottom right corner becomes red)
>
> 2) For the new elements, then Amaya removes the quote marks once you
> save the document. (The quote marks stay intact as long as the source
> code view is open - and active, but if you move the cursor to the
> WYSIWYG window, then they are removed.)
>
> Btw, you can also use the HTML4 *strict* doctype — that will work as
> well, and is thus recommended since the strict doctype triggers
> no-quirks (or "standards") mode.

Received on Sunday, 6 January 2013 13:04:21 UTC