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

[CSS21] WD 4.1, 4.2: conflict for unclosed comments

From: Peter Moulder <peter.moulder@monash.edu>
Date: Fri, 07 Jan 2011 20:58:00 +0000
To: www-style@w3.org
Message-id: <20110107205800.GG21438@bowman.infotech.monash.edu.au>
For the example

  p { color: blue /* comment

my understanding of the end-of-stylesheet rule (4.2) is that it's
intended that this be treated as

  p { color: blue /* comment */ }

whereas according to 4.1, the example ends in a BAD_COMMENT token,
which I would expect to invalidate the color:blue declaration.

Put another way, the end-of-stylesheet rule seems to suggest that
BAD_COMMENT tokens can never occur, whereas providing a definition for a
BAD_COMMENT token suggests that they can occur.

If it is intended that BAD_COMMENT tokens trigger malformed-declaration
rules, then I believe the end-of-stylesheet rule needs to be changed to
exclude comments; or if it's intended to be closed as per the existing
end-of-stylesheet rule, then I believe the BAD_COMMENT token needs to be
removed (and the badcomment,badcomment1,badcomment2 macros ought then to
be removed too).

Received on Friday, 7 January 2011 20:58:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:54 UTC