cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Legg <david.l...@searchevent.co.uk>
Subject Should HTMLSerializer be more strict about strict 4.01 HTML?
Date Mon, 22 Sep 2008 16:26:28 GMT
In playing around with the HTML serializer I've noticed that the strict 
4.01 doctype doesn't actually prevent invalid output.  For example the 
'align' property in <IMG align="right" src="someimage.jpg"> is 
deprecated (because it is considered presentational) and fails the W3C 
validator if let through.

I'm wondering if maybe the serializer should silently correct this by 
leaving deprecated properties out.  I can't see any better way to fix 
this except by embedding styles in the output... but that seems 
horrible.  The other alternative of causing an exception seems equally 
oppressive but maybe it would help in the long run.

Any ideas?

David Legg


Mime
View raw message