[imps] Updating tokenizer tests for the self-closing flag
Henri Sivonen
hsivonen at iki.fi
Sun May 18 09:28:20 PDT 2008
On May 15, 2008, at 14:03, James Graham wrote:
> 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.
I have made the change and documented the new format on the wiki.
--
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/
More information about the Implementors
mailing list