- From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
- Date: Sat, 04 Aug 2012 21:26:44 +0200
- To: www-style@w3.org
Le 04/08/12 06:51, Cameron McCormack a écrit : > It's not exactly clear to me what should be included in conditionText > when it comes to white space and comments. For example, with: > > @supports (a: b) {} > > My guess is that we would want to return "(a: b)" rather than "(a: b )" > or " (a: b) ". But looking at the grammar, I think supports_condition > should actually include the trailing white space since there a "S*" at > the end of each production. So I think the spec should say to trim white > space of the string that is returned. > > But comments should probably stay, since if you think there is > implicitly a COMMENT* between after each other symbol in the grammar > then it would be included in the supports_condition, and it isn't as > simple to trim comments from the string. So for: > > @supports /*1*/ (a: b) /*2*/ {} > > I think it should return "(a: b) /*2*/". No. None of our existing serializations outputs comments and I don't see why we should start here. In current implementations, comments are usually stripped at parse time anyway by the lexer. </Daniel>
Received on Saturday, 4 August 2012 19:27:05 UTC