# US 10,769,351 B2 · Rendering based on a document object model

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,769,351 B2
- Document ID: US10769351B2
- Status: Granted
- Kind: B2
- Application number: 15/045,558
- Filed: 2016-02-17
- Published: 2016-11-10
- Granted: 2020-09-08
- Earliest claimed: 2015-05-08
- Assignees: Citrix Systems, Inc.
- Applicants: Citrix Systems, Inc.
- Inventors: Lee Laborczfalvi
- Web page: https://patentgrep.com/patent/US10769351B2

## CPC

- G06F 40/154: Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
- G06F 9/44: Arrangements for executing specific programs
- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F 40/143: Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and systems for rendering content are described herein. In some embodiments, the method may include receiving an email or other markup language based content. The method may create a document object model (DOM) corresponding to the content using an off screen browser. The method may cause the off screen browser to indicate that the DOM has been created before the off screen browser retrieves any external content. The method may extract a portion of the content from the DOM, and then render the portion of the content using predefined formatting rules.

## Claims

### Claim 1

A method, comprising:
adding a script to a received email, wherein the script is configured to prevent a web browser from retrieving external content linked within the email;
loading the email including the added script, using the web browser;
in response to receiving, from the web browser, an indication that parsing of the email is in progress, generating, using the web browser, a document object model (DOM) corresponding to the email;
canceling, by the script and during generation of the DOM corresponding to the email, one or more pending network requests to retrieve the external content linked within the email; and
rendering the email from the DOM, wherein rendering the email from the DOM comprises extracting content from a body portion of the DOM and rendering the email from the extracted content.

### Claim 2 (depends on 1)

The method of claim 1, wherein the email comprises Hyper Text Markup Language (HTML).

### Claim 3 (depends on 1)

The method of claim 1, wherein the script comprises JavaScript.

### Claim 4 (depends on 1)

The method of claim 1, wherein the script configured to prevent the web browser from retrieving external content comprises a script configured to prevent the web browser from retrieving external images.

### Claim 5 (depends on 1)

The method of claim 1, wherein the script configured to prevent the web browser from retrieving external content comprises a script configured to cause the web browser to cancel the one or more pending network requests.

### Claim 6 (depends on 1)

The method of claim 1, wherein the web browser is an off screen web browser.

### Claim 7 (depends on 1)

The method of claim 1, wherein the script comprises a JavaScript event listener or a JavaScript event handler.

### Claim 8 (depends on 1)

The method of claim 1, wherein rendering the email from the DOM further comprises generating an HTML document based on a portion of the DOM.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
receiving a style sheet; and
applying the style sheet to the HTML document.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
receiving a completion block; and
invoking the completion block after applying the style sheet to the HTML document.

### Claim 11 (depends on 10)

The method of claim 10, wherein receiving the style sheet and the completion block comprises receiving the style sheet and the completion block using an application program interface (API).

### Claim 12

One or more non-transitory, computer-readable storage media storing computer readable instructions that, when executed, cause a system to perform:
adding a script to a received email, wherein the script is configured to prevent a web browser from retrieving external content linked within the email;
loading the email including the added script, using the web browser;
in response to receiving, from the web browser, an indication that parsing of the email is in progress, generating, using the web browser, a document object model (DOM) corresponding to the email;
canceling, by the script and during generation of the DOM corresponding to the email, one or more pending network requests to retrieve the external content linked within the email; and
rendering the email from the DOM, wherein rendering the email from the DOM comprises extracting content from a body portion of the DOM and rendering the email from the extracted content.

### Claim 13 (depends on 12)

The computer-readable storage media of claim 12, wherein the email comprises Hyper Text Markup Language (HTML) and wherein the script comprises JavaScript.

### Claim 14 (depends on 12)

The computer-readable storage media of claim 12, wherein the script configured to prevent the web browser from retrieving external content comprises a script configured to prevent the web browser from retrieving external images and to cause the web browser to cancel the one or more pending network requests.

### Claim 15 (depends on 12)

The computer-readable storage media of claim 12, wherein the web browser is an off screen web browser.

### Claim 16 (depends on 12)

The computer-readable storage media of claim 12, wherein the script comprises a JavaScript event listener or a JavaScript event handler.

### Claim 17 (depends on 12)

The computer-readable storage media of claim 12, wherein rendering the email from the DOM further comprises generating an HTML document based on a portion of the DOM.

### Claim 18 (depends on 17)

The computer-readable storage media of claim 17, said instructions further causing the system to perform:
receiving, via an application program interface (API), a style sheet;
applying the style sheet to the HTML document;
receiving, via the API, a completion block; and
invoking the completion block after applying the style sheet to the HTML document.
