https://bugzilla.wikimedia.org/show_bug.cgi?id=16905

           Summary: Parsing precedence of exclamation character inside links
                    inside tables
           Product: MediaWiki
           Version: unspecified
          Platform: All
               URL: http://meta.wikimedia.org/w/index.php?title=User:Ciencia
                    _Al_Poder/test2&oldid=1333861
        OS/Version: All
            Status: NEW
          Keywords: accessibility
          Severity: minor
          Priority: Normal
         Component: General/Unknown
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: martinezn...@gmail.com


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!


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to