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

Roan Kattouw <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
                 CC|                            |[email protected],
                   |                            |[email protected]
          Component|General                     |JS/serializer
           Assignee|[email protected]      |[email protected]
            Product|VisualEditor                |Parsoid
   Target Milestone|VE-deploy-2013-06-27        |---

--- Comment #3 from Roan Kattouw <[email protected]> ---
This turns out to be a Parsoid bug:

$ echo "Foo '''''bar''''' baz" > wt
$ node parse.js --wt2html < wt | tee html
<body><p data-parsoid='{"dsr":[0,21,0,0]}'>Foo <i
data-parsoid='{"dsr":[4,14,2,2]}'><b
data-parsoid='{"autoInsertedEnd":true,"dsr":[6,12,3,0]}'>bar</b></i> baz</p>
</body>
$ sed 's/baz/baaz/g' < html | tee html2
<body><p data-parsoid='{"dsr":[0,21,0,0]}'>Foo <i
data-parsoid='{"dsr":[4,14,2,2]}'><b
data-parsoid='{"autoInsertedEnd":true,"dsr":[6,12,3,0]}'>bar</b></i> baaz</p>
</body>
$ node parse.js --html2wt --selser --oldtextfile wt --oldhtmlfile html < html2
Foo '''''bar'' baaz

Note that this doesn't break if there is no DOM change (i.e. if you pipe in
html rather than html2 in the last step), and it also doesn't break if selser
is disabled (i.e. if you omit --selser in the last step).

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