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

       Web browser: ---
            Bug ID: 45239
           Summary: Deserialize data-parsoid into data.parsoid using
                    loadDataAttrib once and save it back using
                    saveDataAttribs
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: JS/DOM
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

We are performing a lot of work on data-parsoid information in various DOM
postprocessor passes. This currently involves a lot of repeated decoding and
re-encoding of the data-parsoid attribute.

Instead, we should load data-parsoid into the data.parsoid member once when
starting the DOM postprocessing using loadDataAttrib (or the loadDataParsoid
wrapper) in DOMUtils. the postprocessor code would then work directly on the JS
data.parsoid object. This should clean up the code and improve performance.

Before serializing the DOM out, the JS objects need to be serialized back to
data-parsoid with DOMUtils.saveDataAttribs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to