https://bugzilla.wikimedia.org/show_bug.cgi?id=48516
Web browser: ---
Bug ID: 48516
Summary: Template wrongly closes <b> tag and marks it as
template-affected
Product: Parsoid
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: JS/General
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
Create Template:Test with the following content:
<span style="color:green">HELLO! {{{0}}}</span>
Create a page with the following content:
'''foo {{Test}} bar'''
MW correctly renders this as <p><b>foo <span style="color: green;">HELLO!
{{{0}}}</span> bar</b></p>
Parsoid renders this incorrectly as roughly <p><b typeof="mw:Object/Template"
about="#mwt1">foo </b><span about="#mwt1"></span><span style="color: green;"
about="#mwt1">HELLO! {{{0}}}</span> bar<b></b></p>
Full Parsoid output with data attributes:
<p data-parsoid="{"dsr":[0,22,0,0]}"><b
data-parsoid="{"autoInsertedEnd":1,"tsr":[0,3],"dsr":[0,15,3,0],"src":"”'foo
{{Test}}"}" about="#mwt1" typeof="mw:Object/Template"
data-mw="{"parts":["”'foo
",{"template":{"target":{"wt":"Test"},"params":{}}}]}">foo
</b><span about="#mwt1"></span><span style="color:green"
data-parsoid="{"stx":"html"}" about="#mwt1">HELLO!
{{{0}}}</span> bar<b
data-parsoid="{"autoInsertedEnd":1,"tsr":[19,22],"dsr":[19,22,3,0]}"></b></p>
--
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