Rendering based on a document object model
AssigneeCitrix Systems, Inc.
InventorLee Laborczfalvi
Life of this patent
Estimating the term…
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.
Claims18
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.
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.
Dependencies are inferred from the claim text.