主权项 |
1. A method of capturing a document object model (DOM) snapshot for later replay on a client computer, the method comprising:
detecting, by one or more processors, a user-defined event on a client computer; in response to detecting the user-defined event on the client computer, capturing, by one or more processors, a DOM snapshot of a DOM, wherein the DOM is an object model that identifies objects used by a hypertext markup language (HTML) document to generate a page on the client computer, and wherein the DOM snapshot is copy of a DOM being used to generate the page on the client computer; populating, by one or more processors, a hypertext markup language (HTML) request with the DOM snapshot, wherein the HTML request is a virtual request that directs a recipient to save the HTML request without returning a webpage upon receipt; transmitting, by one or more processors, the HTML request with the DOM snapshot to an HTML server; transmitting, by one or more processors, a request for the DOM snapshot from the client computer to the HTML server; receiving, by one or more processors, an HTML response from the HTML server, wherein the HTML response responds to the request for the DOM snapshot, and wherein the HTML response includes the DOM snapshot that has been extracted from the saved HTML request; and generating, by one or more processors, a replayed page on the client computer using the DOM snapshot in the HTML response. |