W3C home > Mailing lists > Public > www-international@w3.org > January to March 2014

Re: Limiting the size of the @charset byte sequence

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 29 Jan 2014 23:52:11 +0100
To: Simon Sapin <simon.sapin@exyr.org>
Cc: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>, Henri Sivonen <hsivonen@hsivonen.fi>, www-style list <www-style@w3.org>, www International <www-international@w3.org>
Message-ID: <k21je917kis4i34umjf9a0o1elj6fnmu3n@hive.bjoern.hoehrmann.de>
* Simon Sapin wrote:
>On 28/01/2014 10:31, Bjoern Hoehrmann wrote:
>> Arbitrary limits are bad design and often harder to implement correctly
>> than something without arbitrary limits. The obvious parsing device for
>> something like the `@charset` rule is a DFA, and a DFA that halts after
>> N input bytes is a lot more complex than one that does not.
>
>I disagree.
>
>A DFA may be the first theoretical construct that comes to mind, and 
>limiting the input length may difficult to express strictly as a DFA. 
>But there is no such constraint when writing actual code.

I addressed this in the sentence right after where you cut the quote.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Wednesday, 29 January 2014 22:52:38 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:36 UTC