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 1509 - Error in parser (in style part)
Summary: Error in parser (in style part)
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: 0.6.7
Hardware: PC Windows XP
: P2 major
Target Milestone: ---
Assignee: SLTK
QA Contact: qa-dev tracking
URL: http://magazine.kz/w/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-25 17:33 UTC by SLTK
Modified: 2005-06-29 09:30 UTC (History)
0 users

See Also:


Attachments

Description SLTK 2005-06-25 17:33:53 UTC
In my style sheet exists next code:
background: url('pic/main/center/cpb.gif') repeat;
Your parser stoped when found "/", but CSS Validator scan it normaly.
You may test this bug on my page: http://magazine.kz/w/index.php
Comment 1 Ville Skyttä 2005-06-29 09:30:23 UTC
Not a bug.  In HTML (but not XHTML), due to its SGML nature, writing: 
 
    <style type=text/css>foo { ... 
 
...is the same as writing: 
 
    <style type=text></style></head><body>foo { ... 
 
You can witness this by checking the "parse tree" checkbox in the validation 
results and revalidating: 
http://validator.w3.org/check?uri=http%3A%2F%2Fmagazine.kz%2Fw%2Findex.php&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&sp=1 
 
The fix is to place quotes around text/css like: 
 
    <style type="text/css">foo { ... 
 
Always quoting attribute values is a good habit, even if it's not always 
required.