https://bugzilla.wikimedia.org/show_bug.cgi?id=50536
Gabriel Wicke <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Parsoid breaks rest of the |Unclosed formatting |page when template |elements not properly |parameter contains |encapsulated when leaking |<u>foo<u> |out --- Comment #2 from Gabriel Wicke <[email protected]> --- Since this is a plain transclusion this is pretty much the behavior I would expect. The formatting is processed in accordance with the HTML spec. I suspect tidy has a heuristic that closes the <u> at some point in contrast with the HTML spec. Something that looks broken on the Parsoid side is the missing encapsulation for formatting that spans list items: echo '<ul><li>{{echo|<u>}}</li><li>foo</li></ul>' | node parse <body><ul> <li><u about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<u>"}},"i":0}'></u></li> <li><u>foo</u></li> </ul> <u> </u></body> (reformatted the above a bit and removed data-parsoid for clarity) We should in theory be able to detect that the leaked <u>s were completely auto-inserted by the treebuilder. Maybe we can use that information to extend the encapsulation for cases like this one. -- 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
