Re: Two css parsing errors in Amaya 10

oops -- my demo had syntax error in closing the comment...
the problem of interpreting the entity  remains even with
corrected syntax   john in niagara


1] 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

2] After a comment is used in a rule, the closing curley bracket 
can be omitted without raising an error message .... #DEMO2


<?xml version="1.1" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head><title>cssParse:VE3LL@RAC.CA</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<style type="text/css">
#demo {color:red; /* comment&foobar */}
#demo2 {color:red; /* comment and foobar */
</style>
</head><body><h1>cssParse:VE3LL@RAC.CA</h1>
<p id="demo">This is a paragraph</p>
<p id="demo2">This is another paragraph</p>
</body></html>
-- 
-- 
John Russell, VE3LL@COGECO.CA
http://home.cogeco.ca/~ve3ll
http://home.cogeco.ca/~trains
http://home.cogeco.ca/~cipher



-- 
-- 
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 13:39:00 UTC