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

            Bug ID: 65536
           Summary: Use original wikitext when selectively serializing
                    unmodified text content
           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: ---

As discussed in bug 64901, a major source of dirty diffs when using selser is
nowiki insertion in unwrapped top-level text content. We can avoid this by
leveraging the dsr information of adjacent elements to substring the original
wikitext for unmodified text nodes.

This requires annotating text node modifications while DOM diffing. One option
is to wrap modified text nodes in a span. Another is to add a marker on the
preceding element when the following text node was modified.

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