W3C home > Mailing lists > Public > www-validator-cvs@w3.org > June 2005

[Bug 1509] Error in parser (in style part)

From: <bugzilla@wiggum.w3.org>
Date: Wed, 29 Jun 2005 09:30:24 +0000
To: www-validator-cvs@w3.org
Cc:
Message-Id: <E1DnYtk-0002Io-0L@wiggum.w3.org>

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


ville.skytta@iki.fi changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From ville.skytta@iki.fi  2005-06-29 09:30 -------
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.
Received on Wednesday, 29 June 2005 09:30:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:20 UTC