This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 3643 - Style end brackets not checked
Summary: Style end brackets not checked
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: 0.7.2
Hardware: PC Windows XP
: P2 major
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-31 07:52 UTC by xqfjehdxhg
Modified: 2008-04-07 08:09 UTC (History)
0 users

See Also:


Attachments

Description xqfjehdxhg 2006-08-31 07:52:03 UTC
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!
Comment 1 Olivier Thereaux 2006-08-31 08:23:24 UTC
This is not a bug. The content of the style element will be checked (and properly marked as incorrect) by the CSS validator. 

http://jigsaw.w3.org/css-validator
Comment 2 xqfjehdxhg 2008-04-07 08:09:59 UTC
Theoddone33 sucks.