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

       Web browser: ---
            Bug ID: 52945
           Summary: Foster-parented transclusion content not encapsulated-
                    causes dirty diff
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: DOM
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Test case:
echo '<table>{{echo|foo<tr><td>bar</td></tr>}}</table>' | node parse 
WARNING: DSR inconsistency: cs/s mismatch for node: BODY s: 0; cs: -3
<body data-parsoid='{"dsr":[0,49,0,0]}'>foo<table
data-parsoid='{"stx":"html","dsr":[0,48,7,8]}'><tbody about="#mwt1"
typeof="mw:Transclusion"
data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo<tr><td>bar</td></tr>"}},"i":0}'
data-parsoid='{"dsr":[7,40,null,null],"pi":[[{"k":"1","spc":["","","",""]}]]}'><tr
data-parsoid='{"stx":"html"}'><td
data-parsoid='{"stx":"html"}'>bar</td></tr></tbody></table>
</body>

The foster-parented 'foo' is not marked as transclusion-affected, which will
cause a dirty diff on round-trip:

echo '<table>{{echo|foo<tr><td>bar</td></tr>}}</table>' | node parse --wt2wt
WARNING: DSR inconsistency: cs/s mismatch for node: BODY s: 0; cs: -3
foo<table>{{echo|foo<tr><td>bar</td></tr>}}</table>

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