Document object model caching and validation
First Claim
1. A computer program product, tangibly embodied in an information carrier, the computer program product comprising instructions operable to cause data processing apparatus to perform operations comprising:
- identifying a change of a user interface (UI) element that references a node of a document object model (DOM) hierarchy;
determining whether the change of the UI element can be applied to the DOM hierarchy by using an update function;
if the change can be applied by using the update function, finding in the DOM hierarchy the node that is referenced by the UI element and modifying at least one attribute related to the node according to the change by using the update function; and
else, setting a dirty flag.
2 Assignments
0 Petitions
Accused Products
Abstract
Methods and apparatus, including computer program products, implementing techniques for document object model caching and validation. A client identifies a change of a user interface (UI) element that references a node of the DOM hierarchy. The client determines whether the change of the UI element can be applied to the DOM hierarchy by using an update function, for example, a delta renderer. If so, the client finds in the DOM hierarchy the node that is referenced by the UI element and modifies at least one attribute related to the node according to the change by using the update function. Otherwise, the client sets a dirty flag.
90 Citations
15 Claims
-
1. A computer program product, tangibly embodied in an information carrier, the computer program product comprising instructions operable to cause data processing apparatus to perform operations comprising:
-
identifying a change of a user interface (UI) element that references a node of a document object model (DOM) hierarchy;
determining whether the change of the UI element can be applied to the DOM hierarchy by using an update function;
if the change can be applied by using the update function, finding in the DOM hierarchy the node that is referenced by the UI element and modifying at least one attribute related to the node according to the change by using the update function; and
else, setting a dirty flag. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer program product, tangibly embodied in an information carrier, the computer program product comprising instructions operable to cause data processing apparatus to perform operations comprising:
-
receiving a request to render a user interface (UI) element of a UI-tree;
determining whether a dirty flag is set for a cached document object model (DOM) representation of a flagged UI element that is on the path of the UI element in the UI tree;
the flagged UI element having a reference to a node of the DOM hierarchy;
if the dirty flag is set, generating a new DOM representation of the flagged UI element and inserting the new DOM representation into the DOM hierarchy by using the UI-tree and the reference to the node; and
else, inserting the cached DOM representation into the DOM hierarchy by using the UI-tree and the reference to the node. - View Dependent Claims (10, 11)
-
-
12. Apparatus comprising:
-
means for identifying a change of a user interface (UI) element that references a node of a document object model (DOM) hierarchy;
means for determining whether the change of the UI element can be applied to the DOM hierarchy by using an update function; and
means for, if the change can be applied by using the update function, finding in the DOM hierarchy the node that is referenced by the UI element and modifying at least one attribute related to the node according to the change by using the update function; and
else, setting a dirty flag. - View Dependent Claims (13, 14)
-
-
15. Apparatus comprising:
-
means for receiving a request to render a user interface (UI) element of a UI-tree;
determining whether a dirty flag is set for a cached document object model (DOM) representation of a flagged UI element that is on the path of the UI element in the UI tree;
the flagged UI element having a reference to a node of the DOM hierarchy; and
means for, if the dirty flag is set, generating a new DOM representation of the flagged UI element and inserting the new DOM representation into the DOM hierarchy by using the UI-tree and the reference to the node; and
else, inserting the cached DOM representation into the DOM hierarchy by using the UI-tree and the reference to the node.
-
Specification