[imps] Updating tokenizer tests for the self-closing flag

James Graham jg307 at cam.ac.uk
Thu May 15 04:03:02 PDT 2008

Henri Sivonen wrote:
> The tokenizer specification has changed to add a new flag: the 
> self-closing flag. We need to change the test case format and the test 
> cases accordingly.
> The obvious change is to add a boolean at the end of the start tag array 
> (true when the self-closing flag is set).
> The less obvious questions are:
> Do we want to make the boolean present only when it's true for backwards 
> compatibility with test cases that don't involve the self-closing flag? 
> I'd say yes.
> Do we want to have the self-closing flag on end tags? I'd say no, 
> because we are testing attributes either, and implementations should be 
> allowed to optimize this data away.

At first glance, that sounds right to me. Certainly making the tests depend on 
data being passed from the tokenizer to the tree builder that is not actually 
used in the tree builder is something we should avoid.

"Eternity's a terrible thought. I mean, where's it all going to end?"
  -- Tom Stoppard, Rosencrantz and Guildenstern are Dead

More information about the Implementors mailing list