Patent ID: 8086957

Claim:
A method of modifying a document object model (DOM) tree of an interpreted markup file comprising one or more displayable elements, the method comprising: obtaining, using a computer device, the DOM tree of the interpreted markup file, the DOM tree comprising at least one parent node and a plurality of child nodes, each node being associated with at least one of the displayable elements; identifying, using the computer device, in the DOM tree a set of the child nodes whose displayable elements comprise at least a part of a particular displayed area of the interpreted markup file, where in the at least the part of the particular displayed area is a subset of the displayable elements; identifying, using the computer device, in the DOM tree a first parent node comprising the set of child nodes; converting, using the computer device, all displayable elements associated with the identified first parent node to a master image, wherein the master image includes the at least the part of the particular displayed area; generating, using the computer device, a second parent node comprising the master image; and modifying, using the computer device, the DOM tree into a modified DOM tree by deleting the identified set of child nodes and by replacing the identified first parent node by the second parent node.