Login or sign up Lost password?
Login or sign up
The method includes providing a running representation of the DOM and one of tracking a modification to the DOM to provide first change information and tracking a modification to the text source document to provide second change information.parsing a text source document to construct a document node tree such that the document node tree includes a text offset for each node of the document node tree, each text offset for each node indicating a location of associated text within the text source document corresponding to the node of the document node tree;constructing, from the document node tree, a Document Object Model (DOM) and a view node tree that represents the DOM, the constructing of the view node tree including mapping the view node tree to the document node tree;one of applying the first change information to the text source document to update the text source document and applying the second change information to the DOM to update the running representation of the DOM., wherein mapping the view node tree to the document node tree comprises assigning an identifier to each node of the view node tree, each identifier of the view node tree mapped to a corresponding node of the document node tree, and parsing a markup text source document to construct a document node tree such that each node of the document node tree includes a text offset and markup text source document details, the text offset in each node of the document node tree indicating a location of associated markup text within the markup text source document corresponding to the node of the document node tree;constructing, from the document node tree, a Document Object Model (DOM) and a view node tree that represents the DOM, the constructing of the view node tree including mapping the view node tree to the document node tree;providing a running representation of the DOM such that each DOM element is linked to the associated markup text associated with the DOM element, the link provided via the view node tree and the document node tree;, wherein tracking modifications to the markup text source document comprises parsing the modified markup text source document to identify changes to the document node tree to provide the second change information.