Re: Validate style="..."

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 UTC