Last modified: 2012-12-08 22:56:01 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17453, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15453 - Empty SGML directives should be supported
Empty SGML directives should be supported
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.w3.org/TR/WD-html-lex/
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-03 11:58 UTC by Christopher Yeleighton
Modified: 2012-12-08 22:56 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Christopher Yeleighton 2008-09-03 11:58:15 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.
Comment 1 Chad H. 2008-09-03 18:02:37 UTC
Confirmed. Added parser test in r40389
Comment 2 Tim Starling 2008-09-06 04:10:30 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links