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="{&quot;dsr&quot;:[0,22,0,0]}"><b
data-parsoid="{&quot;autoInsertedEnd&quot;:1,&quot;tsr&quot;:[0,3],&quot;dsr&quot;:[0,15,3,0],&quot;src&quot;:&quot;”'foo
{{Test}}&quot;}" about="#mwt1" typeof="mw:Object/Template"
data-mw="{&quot;parts&quot;:[&quot;”'foo
&quot;,{&quot;template&quot;:{&quot;target&quot;:{&quot;wt&quot;:&quot;Test&quot;},&quot;params&quot;:{}}}]}">foo
</b><span about="#mwt1"></span><span style="color:green"
data-parsoid="{&quot;stx&quot;:&quot;html&quot;}" about="#mwt1">HELLO!
{{{0}}}</span> bar<b
data-parsoid="{&quot;autoInsertedEnd&quot;:1,&quot;tsr&quot;:[19,22],&quot;dsr&quot;:[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

Reply via email to