# US 2017/0371852 A1 · System and method for in-browser editing

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

- Number: US 2017/0371852 A1
- Document ID: US20170371852A1
- Status: Published application
- Kind: A1
- Application number: 15/193,985
- Filed: 2016-06-27
- Published: 2017-12-28
- Earliest claimed: 2016-06-27
- Applicants: Synergy Platform Pty Ltd
- Inventors: Scott David McNaught; Ben Andreas Weigt; Robert Bruce Coleman
- Web page: https://patentgrep.com/patent/US20170371852A1

## CPC

- G06F 40/221: Parsing markup language streams (streaming G06F40/149)
- G06F 3/0482: Interaction with lists of selectable items, e.g. menus
- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F 40/117: Tagging; Marking up (details of markup languages G06F40/143); Designating a block; Setting of attributes (style sheets, e.g. eXtensible Stylesheet Language Transformation [XSLT], G06F40/154)
- 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

The present invention relates to an in-browser editor. Specifically, embodiments of the present invention provide a system and method of editing content in a browser without having to rely on the particular in-browser editing technology, such as “contentEditable” and “innerHTML.” The system includes a parser that converts an input string representing content edits in the browser into a data structure known as an Intermediary DOM (document object model). The Intermediary DOM provides a completely accurate representation of editor content in real time and operates in tandem with the Browser DOM to render the edited content in the Intermediary DOM back into displayable content.

## Claims

### Claim 1

An in-browser content editor comprising:
a processor;
a non-transitory computer readable memory;
a display in communication with said processor and said memory;
a parser configured to convert a first input string reflecting a change to said content into a first data structure comprising a plurality of nodes,
wherein when said first data structure contains elements that have a visual representation in the content editor, said data structure creates one or more render nodes in a second data structure, said render nodes corresponding to said elements,
said second data structure holds elements that are displayed as content of the editor on said display,
wherein a selection of content made by a user in said browser is referenced in a third data structure which reference and indexes to an indicator of said selection in said first data structure,
wherein the contents of the nodes in said first data structure are converted to a second string that is accepted as input by said content editor and displayed in said browser, wherein said second string is equivalent to said first input string.

### Claim 2 (depends on 1)

The in-browser editor of claim 1, wherein said first data structure is an Intermediary DOM and said second data structure is a Browser DOM.

### Claim 3 (depends on 2)

The in-browser editor of claim 2, wherein said third data structure is a selection structure.

### Claim 4 (depends on 2)

The in-browser editor of claim 2, wherein said Browser DOM comprises event listeners configured to capture user input events.

### Claim 5 (depends on 3)

The in-browser editor of claim 3, wherein said Intermediary DOM, Browser DOM, and selection structure are linked.

### Claim 6 (depends on 1)

The in-browser editor of claim 1, wherein said first input string and said second string are strings of source code.

### Claim 7 (depends on 6)

The in-browser editor of claim 6, wherein said source code is a mark-up language.

### Claim 8 (depends on 1)

The in-browser editor of claim 1, wherein said second string is equivalent to said first input string.

### Claim 9 (depends on 2)

The in-browser editor of claim 2, wherein said Intermediary DOM comprises a custom element that is linked to multiple Browser DOM elements.

### Claim 10 (depends on 2)

The in-browser editor of claim 2, wherein said Browser DOM is used to render said Intermediary DOM elements on a display.

### Claim 11

A method of editing content in a browser comprising the steps of:
editing browser content using an editor;
a parser receiving a first string input corresponding to said edited browser content;
a parser converting said first string input to a first data structure;
generating a second data structure which is linked to said first data structure;
generating a third data structure to hold user content selections, wherein said third data structure references and indexes to said first data structure, wherein said second data structure utilizes event listeners for capturing user input events and storing results in said third data structure;
generating one or more render nodes in said second data structure for each element in said first data structure that has a visual representation in said editor; and
displaying contents of the first data structure using the one or more render nodes of the second data structure.

### Claim 12 (depends on 11)

The method of claim 11, wherein said string input is source code.

### Claim 13 (depends on 12)

The method of claim 12, wherein said source code is a mark-up language.

### Claim 14 (depends on 11)

The method of claim 11, wherein said first data structure is an Intermediary DOM and said second data structure is a Browser DOM.

### Claim 15 (depends on 14)

The method of claim 14, wherein said third data structure is a selection structure.

### Claim 16 (depends on 14)

The method of claim 14, wherein the contents of said Intermediary DOM are converted to a second string that is saved or output to the browser for processing.

### Claim 17 (depends on 16)

The method of claim 16, wherein said second string is equivalent to said first string.

### Claim 18 (depends on 16)

The method of claim 16, wherein said Intermediary DOM, Browser DOM, and selection structure are linked.
