Last modified: 2012-12-08 22:56:01 UTC
Steps to reproduce: Enter A<!>B into Sandbox. Expected results: AB displayed Actual results: A<!>B displayed Explanation: By the W3C HTML parser specification, the empty directive <!> acts as a token separator. Examples: Procter&<!>Gamble Use <<!>I> for terms {{template|{}<!>}} Workaround: use <!---->; lengthy.
Confirmed. Added parser test in r40389
That feature was removed in subsequent revisions of HTML. Compare: <http://www.w3.org/MarkUp/html-spec/html-spec_3.html#SEC3.2.5> <http://www.w3.org/TR/1999/REC-html401-19991224/intro/sgmltut.html#h-3.2.4> SGML has a lot of cool features, and I'd like to see some of them implemented in wikitext, such as empty end tags </>. But this is not required for an HTML parser. Also, <!> is not valid XML and so not valid XHTML. In any case, wikitext is not HTML, and does not support all HTML features. This should be considered a feature request, not a bug report, and certainly should not have a failing parser test.