https://bugzilla.wikimedia.org/show_bug.cgi?id=51217
--- Comment #9 from [email protected] --- So, I investigated the bug with this page (https://en.wikipedia.org/w/index.php?title=List_of_Jessie_episodes&diff=564684769&oldid=564554799) (comment #3 above). This is quite nasty and nothing to do with foster parenting as I mistakenly/hastily believed. The page has since been edited to remove the problematic wikitext (https://en.wikipedia.org/w/index.php?title=List_of_Jessie_episodes&diff=564803163&oldid=564788048) so the problem will no longer manifest there. However, here is a snippet from {{Episode list |EpisodeNumber = 1 ... ... |ProdCode = 101<ref name="futon" /> |Viewers = ... ... ... |} Note the input to the 'ProdCode' param. Here is a snippet for the template source of Episode list (https://en.wikipedia.org/w/index.php?title=Template:Episode_list&action=edit) ... <td id="pc{{{ProdCode}}}">{{{ProdCode}}}</td> ... See what that will do with the parameter passed in from the page. Here is the expanded source that Parsoid sees: ... <td id="pc101<ref name="futon" />">101<ref name="futon" /></td> ... So, that td-tag is totally broken and Parsoid renders that as literal text (rather than a html td tag) which then promptly gets fostered out (by Parsoid itself) which then adds noise to the HTML output which is what you see when you opened that page in VE (see video above added by AzaToth). The editor Geraldo Perez has already fixed the page as I indicated earlier, so this is not a problem anymore. But, I dont think we should even bother trying to handle broken wikitext like this. We do go to great lengths to fixup/handler broken wikitext while still preserving it as far as possible to not introduce dirty diffs, but dirty diffs are sometimes inevitable in situations like this. So for now, I am going to classify this example as unfixable in Parsoid, unless someone has smart ideas. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
