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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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