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

            Bug ID: 62498
           Summary: Selser: More robust handling of text-nodes outside
                    p-tags
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: serializer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

See seler bug below when a text node is inserted outside a <p> tag.
--------------------
[subbu@earth tests] echo "foo\n\nbar" > /tmp/wt
[subbu@earth tests] node parse < /tmp/wt > /tmp/old.html
[subbu@earth tests] cp /tmp/old.html /tmp/new.html
[subbu@earth tests] vi /tmp/new.html
[subbu@earth tests] cat /tmp/new.html
<body data-parsoid='{"dsr":[0,9,0,0]}'><p
data-parsoid='{"dsr":[0,3,0,0]}'>foo</p>NEW<p
data-parsoid='{"dsr":[5,8,0,0]}'>bar</p>
</body>
[subbu@earth tests] node parse --html2wt --selser --oldtextfile /tmp/t
--oldhtmlfile /tmp/old.html < /tmp/new.html
fooNEW
bar
[subbu@earth tests] node parse --html2wt < /tmp/new.html
fooNEW

bar
--------------------

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