TWiki in general, and skins in particular, create invalid (X)HTML in a few places.
Not a big issue for the end user, so this is just the issue to commit fixes when we stumble over them.
A few observations so far:
- Plain skin (relevant for testing without decoration getting into the way): Invalid empty attribute
class=""
for the <body>
tag
- Plain skin: Extra
<p />
after </html>
- Pattern skin: One unclosed
<div>
(haven't figured out which one yet, this skin is more of an onion than a skin)
- Invalid construction of
form
elements: They need a block level element as content, directly having input
or span
is invalid. "Fixing" this is dangerous to the style sheets
- Javascript snippets contain unescaped
<
and &
--
TWiki:Main/HaraldJoerg
- 2015-04-17
"this skin is more of an onion than a skin" - haha, so true.
--
TWiki:Main.PeterThoeny
- 2015-04-20
Plain skin is fixed with Rev. 30385.
--
TWiki:Main.HaraldJoerg
- 2017-09-04
With regard to form elements and Javascript snippets: These are only invalid when parsing as XML, i.e. in strict XHTML mode, but according to my understanding perfectly valid in HTML5. So far, there haven't been any problem reports, and I guess "XML processing of TWiki" output has never been a valuable use case. Therefore I suggest to drop these two points and close this bug (let's discuss at a release meeting).
--
TWiki:Main.HaraldJoerg
- 2017-10-03
Given that the world is moving towards HTML5 (and not XHTML) where the remaining observations are valid, I'm closing this now.
--
TWiki:Main.HaraldJoerg
- 2017-11-03