I’ve writen small script that:
- adds quotes around attributes of the tags
- close tags br, img and input tags with ’ />’ syntax
- downcase tags and attributes names
- (down|upper)case values of some attributes
This brings code closer to XHTML DTD, I think we should apply such
change to 3.5, I’ve tested it and all tests pass.
PS: I don’t know who have applied xhtml1-strict DTD to RT’s pages, but
it’s completly wrong!
Best regards, Ruslan.
tidy_html.pl (2.86 KB)
Hello!On Wed, 2005-12-28 at 11:00, Ruslan Zakirov wrote:
I’ve writen small script that:
- adds quotes around attributes of the tags
- close tags br, img and input tags with ’ />’ syntax
- downcase tags and attributes names
- (down|upper)case values of some attributes
This brings code closer to XHTML DTD, I think we should apply such
change to 3.5, I’ve tested it and all tests pass.
PS: I don’t know who have applied xhtml1-strict DTD to RT’s pages, but
it’s completly wrong!
Would it be interesting to look at this?
http://tidy.sf.net/
Cheers!
–j
Jim Meyer, Geek at Large purp@acm.org