W3C home > Mailing lists > Public > www-validator-css@w3.org > October 2008

Re: Validate style="..."

From: Jean-Guilhem Rouel <jean-gui@w3.org>
Date: Fri, 17 Oct 2008 11:57:11 +0200
Message-ID: <48F86177.2020609@w3.org>
To: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
CC: www-validator-css@w3.org

Lennart Borgman (gmail) a écrit :
> It would be nice if style="..." was validated to.
> 
> Thanks.

Hi,

That's already the case. Try validating the following document with 
warnings set to "all":
[[
<?xml version="1.0" encoding="utf-8"?> 

<!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" xml:lang="en-US" 
lang="en-US">
<head"> 

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 

<title>Test</title> 
 

</head> 
                    <body> 

<h1 style="color: foo">Test</h1> 

<h1 style="color: red">Test2</h1> 

</body> 

</html>
]]
You should get 1 error and 1 warning, as expected.

Style attributes don't appear in the "computed stylesheet" though.

Regards,
Jean-Gui
Received on Friday, 17 October 2008 09:57:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:21 GMT