Innocently browsing today, I encountered this HTML comment that gets rendered due to <-- instead of <!-- ... I couldn't even find the template that caused it, and leave it in your hands, as I've got to go, as Dana Dane said.
$ w3m -dump http://en.wikipedia.org/wiki/Flatworm |head Flatworm
From Wikipedia, the free encyclopedia
Jump to: navigation, search Good article Flatworm!<-- This template has to be "warmed up" before it can be used, for some reason -->
Platyhelminth worms Fossil range: 40–0 Ma^[1]
jidanni@jidanni.org wrote:
$ w3m -dump http://en.wikipedia.org/wiki/Flatworm |head
Flatworm
Simple typo in a template, fixed by OverlordQ: http://en.wikipedia.org/w/index.php?diff=410094043&oldid=408536727
Valid HTML comments in wikitext do not appear in the page source of rendered pages. It _might_ be nice if HTML Tidy caught this error (omitting an exclamation point), though.
MZMcBride
MZMcBride wrote:
jidanni@jidanni.org wrote:
$ w3m -dump http://en.wikipedia.org/wiki/Flatworm |head
Flatworm
Simple typo in a template, fixed by OverlordQ: http://en.wikipedia.org/w/index.php?diff=410094043&oldid=408536727
Valid HTML comments in wikitext do not appear in the page source of rendered pages. It _might_ be nice if HTML Tidy caught this error (omitting an exclamation point), though.
MZMcBride
No. We output a literal <--, which is the correct approach. What made this non-obvious is that the text-which-should-have-been-a-comment was inside a block hidden with CSS. I have no idea what they mean with Taxobox/taxon needing to be warmed up, though. There's no point on doing that.
wikitech-l@lists.wikimedia.org