Bug: make default pages xhtml compliant
DEVELOP BRANCH ONLY
in a few topics we have html which is not xhtml, like <TABLE>, not closed <br> and things like these. while we cannot enforce the user to write correct xhtml data in the topics, we can take care that twiki is distributed with maximum compliance to the standard. this regards topics, templates and possibly css files.
Test case
use
http://validator.w3.org
on any standard page.
Environment
--
MarioFrasca - 16 Mar 2005
Impact and Available Solutions
Follow up
--- branches/DEVELOP/templates/Main/view.pattern.tmpl (revision 3817)
+++ branches/DEVELOP/templates/Main/view.pattern.tmpl (working copy)
@@ -30,12 +30,10 @@
%TMPL:DEF{"content"}%<div class="twikiHidden"><hr /></div><a name="Content"> </a><div class="twikiHidden">Start of topic | <a href="#Actions">Skip to actions</a><hr /></div>
-<TABLE WIDTH="100%"><TR><TD>%TMPL:P{"form"}%</TD>
-</TR></TABLE>
+<table width="100%"><tr><td>%TMPL:P{"form"}%</td>
+</tr></table>
<div class="twikiTopic">
%TEXT%
--- branches/DEVELOP/data/TWiki/WebHome.txt (revision 3817)
+++ branches/DEVELOP/data/TWiki/WebHome.txt (working copy)
@@ -108,5 +108,5 @@
* TWiki is developed as Free Software under the [[GnuGeneralPublicLicense][GNU/GPL]]
* This site is running TWiki version *%WIKIVERSION%*, Plugin API version *%PLUGINVERSION{}%*
* Get the current version from [[http://TWiki.org/download.html][TWiki.org Downloads]] <br />
- <img src="%PUBURL%/%TWIKIWEB%/TWikiLogos/horzTWikiPowered.gif">
+ <img src="%PUBURL%/%TWIKIWEB%/TWikiLogos/horzTWikiPowered.gif" alt="" />
--
MarioFrasca - 16 Mar 2005
just a couple of small corrections.
Sending DEVELOP/data/TWiki/MetaDataRendering.txt
Sending DEVELOP/data/TWiki/TWikiMetaData.txt
Sending DEVELOP/data/TWiki/WebHome.txt
Transmitting file data ...
Committed revision 3853.
--
MarioFrasca - 23 Mar 2005
DevelopBranch now uses
CGI to generate
HTML in all but a small number of cases. Therefore from a tag perspective, the code cannot generate invalid
XHTML. However it is still capable of creating
structurally incorrect
XHTML, because if you write this:
<table>
<tr>
</tr>
</table>
you will see a <p /> between the table and the tr, injected because TWiki saw the blank line, but not valid
XHTML. There is no simple cure for this.
Not saying we should fix this, just pointing it out. The best we can hope to do is to make sure that a TWiki topic
with no embedded HTML is always compliant.
--
CrawfordCurrie - 24 Mar 2005
Fix record
Discussion