W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2008

Converting html 3.2 to xhtml strict

From: J and T <j_and_t@hotmail.com>
Date: Sun, 9 Mar 2008 07:34:32 -0700
Message-ID: <BAY101-W34101703C2EE917985318CBA0D0@phx.gbl>
To: <html-tidy@w3.org>

Is it possible to convert from standard HTML 3.2 to xhtml 1.0 strict? I've tried every tidy configuration I can think of. It spits out the xhtml strict 1.0 doctype header, makes a bunch of changes like  , but not one single page out of 2,000 will validate with w3 validator. Each page has 100 or more reported errors. Example errors:

Line 38, Column 17: there is no attribute "background".

Line 39, Column 24: document type does not allow element "a" here;

Line 43, Column 16: there is no attribute "width".

Maybe I'm hoping for a miracle and this conversion just isn't going to be possible. Obviously there are things in the HTML like the background body image that wouldn't be possible to convert so tidy leaves it alone. But maybe there is a way to convert and then give a list of things which  need to be changed in order to validate or ?

I should note that I have no problem converting from HTML 3.2 to XHTML Transitional. But I'm not able to go from XHTML Transitional to strict with anything.

Hope this isn't a stupid question,
Climb to the top of the charts! Play the word scramble challenge with star power.
Received on Sunday, 9 March 2008 14:34:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:57 UTC