W3C home > Mailing lists > Public > www-style@w3.org > September 2010

Re: [CSS21] Backing up in tokenizer (issue 129)

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 09 Sep 2010 18:28:44 -0700
Message-ID: <4C8989CC.9000903@inkedblade.net>
To: Bert Bos <bert@w3.org>
CC: W3C style mailing list <www-style@w3.org>, public-css-testsuite@w3.org
On 08/20/2010 12:51 PM, Bert Bos wrote:
> On Wednesday 18 August 2010 22:29:25 Bert Bos wrote:
>> I had an action to write up the text for issue 129[1], which
>> implements Zack Weinberg's modifications to the CSS tokenizer.
> [...]
>
> And here is a test case:
>
>      XHTML: http://www.w3.org/Style/Examples/015/parse-url-01.xhtml
>      HTML:  http://www.w3.org/Style/Examples/015/parse-url-01.html
>
> The next two test for related error recovery: a BAD_URI token must be
> automatically repaired if it occurs at the end of the file
> (section 4.2):
>
>      XHTML: http://www.w3.org/Style/Examples/015/parse-url-02.xhtml
>             http://www.w3.org/Style/Examples/015/parse-url-03.xhtml
>      HTML:  http://www.w3.org/Style/Examples/015/parse-url-02.html
>             http://www.w3.org/Style/Examples/015/parse-url-03.html
>
> Note that all three tests contain invalid CSS on purpose.

Hi Bert,
AFAICT, the first testcase is already contained in
   http://test.csswg.org/suites/css2.1/20100815/xhtml1/uri-016.xht

I've added the other two as
   http://test.csswg.org/source/contributors/fantasai/submitted/css2.1/uri-017.xht
I used 'background' instead of 'content' because it's more widely
supported than generated content. I also created a similar test
using @import:
   http://test.csswg.org/source/contributors/fantasai/submitted/css2.1/uri-018.xht

Let me know if these tests look good to you, and I'll mark them
reviewed. :)

~fantasai
Received on Friday, 10 September 2010 01:29:30 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:31 GMT