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

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