Re: Two css parsing errors in Amaya 10

You used an unescaped ampersand "&": this may be valid in some contexts, but it 
is recommended to use "&", which is always safe.
NOTE THE WORDING THAT IT MAY BE VALID IN SOME CONTEXTS

http://www.w3.org/TR/CSS21/syndata.html#comments
STATES THAT THE CONTENTS OF A CSS COMMENT SHOULD NOT
AFFECT RENDERING ...... IE INTERPRETER Doesn't INTERPRET IT

>  Ampersands inside comments are parsed instead of being
>  left alone -- strings inside comments are not meant to be acted
>  on by browser -- only for user notes  #DEMO style rule

Note that leaving the comment alone assumes, AFAIK, that the comment
itself is valid from the markup point of view.

Inserting unescaped ampersands in (X)HTML is invalid [1], therefore
BUT THIS IS CSS NOT HTML 
IMHO it shouldn't be reported as an Amaya issue. Nevertheless, it
would be nice if Amaya could try to detect and ignore this issue -
unfortunately, it's one of the most commonly found issues in invalid
markup... A warning should be issued, though, to invite the user to
correct or warn the site developer.

Regards,

  Helder Magalhães

[1] http://validator.w3.org/docs/errors.html#ve-404-- 
-- 
John Russell, VE3LL@COGECO.CA
http://home.cogeco.ca/~ve3ll
http://home.cogeco.ca/~trains
http://home.cogeco.ca/~cipher

Received on Tuesday, 1 April 2008 16:03:58 UTC