[Bug 3643] Style end brackets not checked

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3643

           Summary: Style end brackets not checked
           Product: Validator
           Version: 0.7.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Parser
        AssignedTo: link@pobox.com
        ReportedBy: xqfjehdxhg@mailinator.com
         QAContact: www-validator-cvs@w3.org


This code incorrectly validates as perfect:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
 <head>
  <title>test</title>
  <style type="text/css"> 
   body { a:link {color:#889988; text-decoration:underline; }
   .testtable {width:950px;}
  </style> 
 </head>
 <body></body>
</html>

There is no end bracket for the body style. The only end bracket is for the
alink.
This means the testtable style is ignored causing havoc with a page!

Received on Thursday, 31 August 2006 07:52:19 UTC