US 11,960,561 B2
Client-side generation of lossless object model representations of dynamic webpages
Nicolai Munch Andersen, Copenhagen (DK)
Assigned to Siteimprove A/S, Copenhagen (DK)
Filed by Siteimprove A/S, Copenhagen (DK)
Filed on Jul. 28, 2022, as Appl. No. 17/876,027.
Prior Publication US 2024/0037174 A1, Feb. 1, 2024
Int. Cl. G06F 16/958 (2019.01); G06F 16/951 (2019.01); G06F 16/957 (2019.01)
CPC G06F 16/958 (2019.01) [G06F 16/951 (2019.01); G06F 16/9574 (2019.01)] 20 Claims
OG exemplary drawing
 
1. A method for generating a lossless representation of a webpage on a client device, the method comprising:
rendering, by a client device, a webpage to be presented in a web browser at the client device;
receiving, by the client device, an indication of user input to run a content check on the rendered webpage;
calling, by the client device and in response to receiving the indication of user input, a scraping function to scrape a document object model (“DOM”) of the rendered webpage in the web browser at the client device;
scraping, by the client device and based on calling the scraping function, a cascading style sheet object model (“CSSOM”) of the rendered webpage in the web browser at the client device;
generating, by the client device, a lossless static object model of the scraped DOM and the scraped CSSOM for the rendered webpage, wherein the lossless static object model combines attributes and information of nodes that are traversed by scraping the DOM and scraping the CSSOM; and
transmitting, by the client device and to a web content analysis system, the lossless static object model to be used by the web content analysis system to losslessly reproduce, based on the combined attributes and information of the traversed nodes, the rendered webpage in a same rendering as in the web browser at the client device for running the content check on the rendered webpage.