Last modified: 2013-07-04 10:34:54 UTC
$ echo "'''Foo'''Bar'''Baz'''" | node parse.js --wt2html | tee foobarbaz <body><p data-parsoid='{"dsr":[0,21,0,0]}'><b data-parsoid='{"dsr":[0,9,3,3]}'>Foo</b>Bar<b data-parsoid='{"dsr":[12,21,3,3]}'>Baz</b></p> </body> # Edit text to remove Bar, round-trip back $ cat foobarbaz <body><p data-parsoid='{"dsr":[0,21,0,0]}'><b data-parsoid='{"dsr":[0,9,3,3]}'>Foo</b><b data-parsoid='{"dsr":[12,21,3,3]}'>Baz</b></p> </body> $ cat foobarbaz | node parse.js --html2wt '''Foo''''''Baz''' The expected output is '''FooBaz'''. Right now this works correctly because VE joins the adjacent <b> tags and sends Parsoid <b data-parsoid='{"dsr":[0,9,3,3]}'>FooBaz</b>, but this is incorrect because the attributes on the second <b> are dropped. Dropping those attributes leads to round-trip errors when those attributes are meaningful. https://gerrit.wikimedia.org/r/67493 addresses this in VE, but merging it would cause this to break.
*** This bug has been marked as a duplicate of bug 42803 ***
*** This bug has been marked as a duplicate of bug 48194 ***
[Parsoid component reorg by merging JS/General and General. See bug 50685 for more information. Filter bugmail on this comment. parsoidreorg20130704]