[Imps] [ANN] Father Christmas is a bit early this year…

Anne van Kesteren annevk at opera.com
Thu Dec 28 06:25:45 PST 2006


On Thu, 28 Dec 2006 09:11:57 +0100, Thomas Broyer <t.broyer at gmail.com>  
wrote:
> 2006/12/23, James Graham:
>>
>> [1] An example of something that, at present  can only be checked
>> through a parser test is the proper tokenizing of a fragment like
>> <plaintext><head>&body;
>
> How about adding a new "parameter" to tests to set the initial
> "content model flag" (defaulting to "PCDATA" if not present)? We could
> then have tests such as:
>
> {"description":"PLAINTEXT content model flag",
> "contentModelFlag":"PLAINTEXT",
> "input":"<head>&body;"
> "output":[["Character", "<head>&body;"]]}
>
> Or even:
>
> {"description":"CDATA w/ something looking like an end tag and an  
> entity",
> "contentModelFlag":"CDATA",
> "lastStartTag":"script",
> "input":"</foo>&body;</script>"
> "output":["ParseError", ["Character", "</foo>&body;"], ["EndTag",  
> "script"]]},

There should probably be more parse errors here. Is there really a big  
advantage in now leaving this to the parser tests? They cover all these  
cases already.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>



More information about the Implementors mailing list