Last modified: 2014-08-19 22:44:29 UTC
Article URL: https://ru.wikipedia.org/wiki/%D0%A2%D0%B0%D0%B1%D0%BB%D0%B8%D1%86,_%D0%91%D0%BE%D0%B3%D1%83%D1%81%D0%BB%D0%B0%D0%B2 The infobox is shown correctly while reading the article, but broken when editing in VisualEditor. HTML code is shown above the page.
Looks like [[ru:Template:Универсальная карточка]] is getting a bunch of content fostered out somewhere?
(In reply to James Forrester from comment #1) > Looks like [[ru:Template:Универсальная карточка]] is getting a bunch of > content fostered out somewhere? I didn't go too deeply into the code, but it is build using this Lua module: https://ru.wikipedia.org/wiki/Module:Universal_infocard It pulls data from Wikidata, and seems to build tables using HTML rather than wiki table syntax. Maybe that is the cause.
Fixed the template in, https://ru.wikipedia.org/w/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AUniversal_infocard&diff=64929809&oldid=64897667 But we should be more robust against unclosed attributes.
The template was returning something like, <table><tr><th style="text>great</th><td>"test</td></tr></table> which parsoid rendered as, <th style="text>great <table> <tbody> <tr> <td>"test</td></tr></tbody></table> Looks like a bug in broken attribute heuristics.
> Looks like a bug in broken attribute heuristics. On second thought, I think what we're doing is fine. This is just broken wikitext. The php parser gets away with it by refusing all "greater than" chars in attributes. ie. <div class="class>ey">stuff</div> is rendered as, <div>ey">stuff</div> which seems worse.