https://bugzilla.wikimedia.org/show_bug.cgi?id=49213

       Web browser: ---
            Bug ID: 49213
           Summary: Template encapsulation lost or overwritten in
                    unpackDOMFragments
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: JS/token-stream transforms
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

When transcluding a template containing an extension tag (<references/> for
example), template encapsulation is lost. Similartly, when passing in an
extension tag as a template parameter the template encapsulation is lost:

echo '{{echo|<references/>}}' | node parse
<body><ol about="#mwt2" class="references"
data-mw='{"name":"references","body":{"extsrc":"{{echo|}}"},"attrs":{}}'
typeof="mw:Extension/references"
data-parsoid='{"tsr":[0,22],"src":"{{echo|<references/>}}","dsr":[0,22,null,null]}'></ol>
</body>

We probably need to be smarter in unpackDOMFragments when the wrapper tokens
have already received encapsulation info through token-based template
encapsulation.

-- 
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