I have a pet project within Mantis to beautify the the HTML source
which gets sent to the client browser. Why you ask? Because I find it
much easier to debug pages when the code doesn't look like one endless
string. So I am asking for help in this matter, when you create code,
please use tabs and new lines where appropriate.
And it is on that note that I make the following inquiry. In
core/html_api.php:html_begin() there is the following comment.
# @@@ NOTE make this a configurable global.
#echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';, "\n";
#echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
I'm not sure why this should be configurable. Either code base as a
whole passes HTML 4.01 or it passes XHTML 1.0. Is thought to make it a
variable just because it will change "at some point"? If no, that
doesn't seem like valid reason to add yet another config optoin. On
that note, has anyone tested the whole site for XHTML compliance? If
not, I'll add that to the BOHP (Beautification of HTML Project).