Last modified: 2014-07-06 13:57:21 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 T18905, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16905 - Parsing precedence of exclamation character inside links inside tables
Parsing precedence of exclamation character inside links inside tables
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.24rc
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
http://meta.wikimedia.org/w/index.php...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-06 18:19 UTC by Jesús Martínez Novo (Ciencia Al Poder)
Modified: 2014-07-06 13:57 UTC (History)
2 users (show)

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


Attachments

Description Jesús Martínez Novo (Ciencia Al Poder) 2009-01-06 18:19:33 UTC
See this testcase:

[[Test!!]]

{| border="1"
|-
! [[Test!!]]
|-
! [[Test<nowiki>!!</nowiki>]]
|-
! [[Test&#33;&#33;]]
|}

The exclamation marks inside an internal link, when it's placed inside a <th> (table header) cell, are parsed first as part of the table, instead of as part of the link.

Since exclamation marks are allowed as page titles, the correct behavior should be parse first the link and then the table structure. (like is done when a pipe character is inserted inside a link or template that is inside a table)

So the first row in the example now renders as two cells, breaking the link. The second row renders as one cell but also breaks the link (I don't know if that's correct or not; I simply tried a workaround to that but failed). The third row renders correctly, but it's tedious to do that, specially for people that doesn't know that every character could be translated as a numerical character reference. But, well, at least there's a way to do that!
Comment 1 Jesús Martínez Novo (Ciencia Al Poder) 2009-02-15 14:55:30 UTC
Changed Component from General/Unknown to Page Rendering
Comment 2 RockMFR 2009-09-13 05:16:17 UTC
See also bug 14260. This is a regression from r14350.

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


Navigation
Links