Last modified: 2011-03-13 18:06:52 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 T16376, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14376 - Bizarre parser error
Bizarre parser error
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Lowest minor (vote)
: ---
Assigned To: Tim Starling
http://en.wikipedia.org/w/index.php?t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-01 23:59 UTC by Adam Cuerden
Modified: 2011-03-13 18:06 UTC (History)
1 user (show)

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


Attachments

Description Adam Cuerden 2008-06-01 23:59:34 UTC
On that page, the wikimarkup:

<nowiki>
[[Image:Trial by Jury - Chaos in the Courtroom.png|thumb|250px|'''Original''' - ''[[Trial by Jury]]'' premièred on 25 March 1875, and was a huge hit, praised by critics, and met with "almost boisterous hilarity" from its audiences. While [[Gilbert and Sullivan]] had collaborated once before, on the Christmas entertainment ''[[Thespis (opera)]]'' (now lost), ''Trial'' introduced many features, such as the autobiographical [[patter song]], that would define their style. This engraving by D. H. Friston dates from ''Trial'''s original run, and was published in the ''Illustrated Sporting and Dramatic News'' on 1 May 1875.]]</nowiki>

The caption of which should be parsed as:

'''Original''' - ''[[Trial by Jury]]'' premièred...

Instead parses as '<!-- -->''Original''' - ''[[Trial by Jury]]'' premièred...

It may be that the later typo, <nowiki>''Trial'''s</nowiki> (meant to be <nowiki>''Trial&lt;!-- --&gt;'s  throws the software off, but it still disobeys the law of least surprise.
Comment 1 Adam Cuerden 2008-06-02 00:07:53 UTC
I apologise, I thought that would be wiki-processed. Here it is again.

On that page, the following bit of code:

[[Image:Trial by Jury - Chaos in the Courtroom.png|thumb|250px|'''Original''' -
''[[Trial by Jury]]'' premièred on 25 March 1875, and was a huge hit, praised
by critics, and met with "almost boisterous hilarity" from its audiences. While
[[Gilbert and Sullivan]] had collaborated once before, on the Christmas
entertainment ''[[Thespis (opera)]]'' (now lost), ''Trial'' introduced many
features, such as the autobiographical [[patter song]], that would define their
style. This engraving by D. H. Friston dates from ''Trial'''s original run, and
was published in the ''Illustrated Sporting and Dramatic News'' on 1 May
1875.]]</nowiki>

The caption of which should be parsed as (using HTML markup):

<b>Original</b> - <i>[[Trial by Jury]]</i> premièred...

Instead parses as '<i>Original<b> - </i>[[Trial by Jury]]<i> premièred...

It may be that the later typo, ''Trial'''s (meant to be
''Trial<!-- -->'s  throws the software off, but it still disobeys
the law of least surprise.


Testing, I find that any code of the pattern

'''A''' B ''C'' D ''E'''  

will duplicate this bug, which may mean that it is unavoidable without breaking clean handling of other complex situations.
Comment 2 Siebrand Mazeland 2008-08-16 23:26:28 UTC
Confirmed on the case '''A''' B ''C'' D ''E'''. I would expect that to be rendered:

<b>A</b> B <i>C</i> D <i>E</i>'

The original use care appears fixed though. See http://en.wikipedia.org/wiki/User:Siebrand/test

Assigned to Tim.
Comment 3 Tim Starling 2008-08-17 05:43:17 UTC
This is known and stable behaviour, and is included in passing parser tests. No doubt many pages rely on it.

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


Navigation
Links