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

       Web browser: ---
            Bug ID: 50447
           Summary: Parsoid: One missing apostrophe causes corruption
                    across table cells
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: JS/General
          Assignee: gwi...@wikimedia.org
          Reporter: roan.katt...@gmail.com
                CC: ssas...@wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

Minimal test case:

{|
|-
| align=left colspan=3|'''Valid Votes'''||'''38,847''||'''100.00%'''
|}


Note that the bolding of 38,847 is not closed correctly: one quote is missing.

The PHP parser renders this (correctly) as:
<td><b>Valid Votes</b></td><td>'<i>Valid Votes</i></td><td><b>100.00%</b></td>

Parsoid renders this in an ... interesting way:
<td>'<i>Valid Votes<b></b></i></td>38,847</td><td><b>100.00%</b></td>

Note the stray quote before Valid Votes, the fact that Valid Votes is now in
italic, the empty <b> tag, and the fact that 38,847 is completely unformatted.

Because the output HTML is so weird, this obviously doesn't round-trip right
either:

| align="left" colspan="3" |'''Valid Votes''''''''||38,847||'''100.00%'''

The real-world test case that brought this to my attention is
http://parsoid.wmflabs.org/_rt/en/Wellawatte-Galkissa_Electoral_District?oldid=377319087

-- 
You are receiving this mail because:
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