W3C home > Mailing lists > Public > www-amaya@w3.org > April to June 2004

Re: Bug in CSS parsing

From: John Russell <ve3ll@rac.ca>
Date: Mon, 19 Apr 2004 08:15:17 -0400
To: Daniel Skorka <daniel.skorka@stud.uni-karlsruhe.de>
Cc: www-amaya@w3.org
Message-ID: <40838A95.17622.28BFF7@localhost>

The following is from the TR for CSS 2.1...
If an unquoted font family name contains parentheses, brackets, and/or braces, they must still be either
balanced or escaped per CSS grammar rules. Similarly, quote marks, semicolons, exclamation marks
and commas within unquoted font family names must be escaped.
Font names containing any such characters or whitespace should be quoted:
                                                                 ^^^^^^^^^^^^^^^^^^^

Since one of the families used is Courier New  it must be quoted due to the whitespace character !!!

this report concerns Amaya 8.4 (GTK) on Debian 3.0 on an x86 machine. In fact,
I downloaded the debian package from
http://www.w3.org/Amaya/User/BinDist.html. The bug is that the parser
chokes when reading a 'font-family' statement when the font name
contains whitespace and is not quoted. If I read the CSS spec correctly,
not quoting such a font name is correct. To reproduce, open
http://selfhtml.teamone.de/ in Amaya and look at the parsing errors.

regards,
Daniel Skorka

--
john russell ve3ll@rac.ca [those are L's as in LLAMA]
http://home.cogeco.ca/~ve3ll
http://home.cogeco.ca/~trains
http://home.cogeco.ca/~cipher
Received on Monday, 19 April 2004 08:11:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:29 UTC