W3C home > Mailing lists > Public > www-style@w3.org > January 2011

[CSS21] WD 4.1: longest match clarification

From: Peter Moulder <peter.moulder@monash.edu>
Date: Fri, 07 Jan 2011 17:01:01 +0000
To: www-style@w3.org
Message-id: <20110107170101.GA21438@bowman.infotech.monash.edu.au>
4.1.1 Tokenization:

  For the "longest match", I suggest adding the example
  that `red-->' parses as IDENT `red--' followed by DELIM `>',
  rather than as IDENT,CDC.
  (The intent of adding this example is to clarify that the "longest
  match" rule applies to an earlier token even when that results
  in a shorter subsequent token.)

  (Low importance change: I don't think this clarification affects
  what C/C++ programmers would implement for the normal
  "full parse of the whole stylesheet" case.  It might affect
  the implementation of searching for a particular token, for
  ancillary parsing tasks as associated with scripting languages.)

Received on Friday, 7 January 2011 17:01:43 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:54 UTC