# US 2015/0205797 A1 · Identifying a set of related visible content elements in a markup language document

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

- Number: US 2015/0205797 A1
- Document ID: US20150205797A1
- Status: Published application
- Kind: A1
- Application number: 14/603,254
- Filed: 2015-01-22
- Published: 2015-07-23
- Earliest claimed: 2014-01-22
- Assignees: Al Squared
- Applicants: Al Squared
- Inventors: Aaron M. Leventhal
- Web page: https://patentgrep.com/patent/US20150205797A1

## CPC

- G06F 40/131: Fragmentation of text files, e.g. creating reusable text-blocks; Linking to fragments, e.g. using XInclude; Namespaces
- G06F 16/24578: {using ranking}
- G06F 16/80: of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML (content-based retrieval of web data G06F16/95)
- G06F 40/106: Display of layout of documents; Previewing
- 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

Some described embodiments relate to techniques for editing markup elements of a markup language document to emphasize a portion of the visible content elements of the markup language document. The techniques may be implemented in any suitable manner, including via scripting language code (e.g., JavaScript) that is incorporated into the markup language document but is not preconfigured with information regarding the markup language document or any other markup language document. The scripting language code may perform the editing automatically, and based on an automatic analysis of markup elements of the markup language document. Some embodiments may include determining the portion of the markup language document to be emphasized by identifying content of interest to a user, including by determining a set of related content through analyzing a structure of markup elements of the markup language document and/or layout of visible content elements of the markup language document.

## Claims

### Claim 1

A method comprising:
identifying a first visible content element of at least one markup language document; and
automatically determining whether the first visible content element is a member of a group of visible content elements distinct from surrounding visible content elements, wherein the automatically determining comprises:
analyzing a layout of visible content elements of the at least one markup language document in an area of the at least one markup language document that includes the first visible content element to determine whether the layout indicates that the first visible content element is a member of a group of visible content elements distinct from surrounding visible content elements; and
analyzing one or more markup elements of the at least one markup language document to determine whether the one or more markup elements indicate that the first visible content element is a member of a group of visible content elements distinct from surrounding visible content elements.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
in response to determining that the first visible content element is a member of a group of visible content elements distinct from surrounding visible content elements, performing at least one task on each visible content element of the group; and
in response to determining that the first visible content element is not a member of a group of visible content elements distinct from surrounding visible content elements, performing the at least one task on the first visible content element and not on other visible content elements.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
determining, from a hierarchical arrangement of content elements of the at least one markup language document, a set of candidate content elements including the first visible content element and content elements directly above the first visible content element in the hierarchical arrangement,
wherein automatically determining whether the first visible content element is a member of a group of visible content elements distinct from surrounding visible content elements comprises evaluating each one candidate content element of the set to determine whether the one candidate content element includes a group of visible content elements that includes the first visible content element and are distinct from surrounding visible content elements; and
wherein evaluating each one candidate content element of the set comprises analyzing a layout of the at least one markup language document in an area of the one candidate content element and analyzing one or more markup elements comprises analyzing one or more markup elements related to the one candidate content element.

### Claim 4 (depends on 3)

The method of claim 3, wherein:
evaluating each one candidate content element comprises:
analyzing the one candidate content element with respect to a plurality of factors to determine a score for each factor, and
calculating an overall score for the one candidate content element based on the scores for the plurality of factors;
automatically determining whether the first visible content element is a member of a group of visible content elements comprises:
determining a highest-scoring candidate content element of the set;
in a case that the highest-scoring candidate content element includes one or more other visible content elements in addition to the first visible content element, determining that the first visible content element is a member of a group of visible content elements distinct from surrounding visible content elements; and
in a case that the highest-scoring candidate content element does not include any other visible content elements in addition to the first visible content element, determining that the first visible content element is not a member of a group of visible content elements distinct from surrounding visible content elements.

### Claim 5 (depends on 4)

The method of claim 4, wherein analyzing the one candidate content element with respect to a plurality of factors to determine a score for each factor comprises determining one or more scores based on a comparison of one or more dimensions of the one candidate content element and one or more dimensions of an immediate parent of the one candidate content element and/or one or more dimensions of an immediate child of the one candidate content element.

### Claim 6 (depends on 4)

The method of claim 4, wherein analyzing the one candidate content element with respect to a plurality of factors to determine a score for each factor comprises determining one or more scores based on an evaluation of an amount of whitespace separating the one candidate content element from an adjacent content element on one or more sides and/or whether the one candidate content element is separated from an adjacent content element on one or more sides by a border.

### Claim 7 (depends on 4)

The method of claim 4, wherein analyzing the one candidate content element with respect to a plurality of factors to determine a score for each factor comprises determining one or more scores based on an evaluation of whether a layout of the one candidate content element and/or markup elements of the one candidate content element and/or sibling content elements of the one candidate content elements meet criteria indicating that the one candidate content element is a cell of a repeating layout of cells.

### Claim 8 (depends on 1)

The method of claim 1, wherein analyzing the layout in the area of the at least one markup language document that includes the first visible content element to determine whether the layout indicates that the first visible content element is a member of a group of visible content elements distinct from surrounding visible content elements comprises evaluating an amount of whitespace separating the first visible content element from adjacent visible content elements.

### Claim 9 (depends on 1)

The method of claim 1, wherein analyzing the layout in the area of the at least one markup language document that includes the first visible content element to determine whether the layout indicates that the first visible content element is a member of a group of visible content elements distinct from surrounding visible content elements comprises evaluating whether a background of the first visible content element differs from a background of adjacent visible content elements and whether the first visible content element is separated from adjacent visible content elements on one or more sides by a border.

### Claim 10 (depends on 1)

The method of claim 1, wherein analyzing the one or more markup elements of the at least one markup language document to determine whether the one or more markup elements indicate that the first visible content element is a member of a group of visible content elements distinct from surrounding visible content elements comprises:
determining whether the one or more markup elements relating to the first visible content elements satisfy criteria indicating that the first visible content element appears within a cell of a repeating layout of cells in the at least one markup language document.

### Claim 11 (depends on 10)

The method of claim 10, wherein determining whether the one or more markup elements relating to the first visible content elements satisfy the criteria comprises determining whether one or more other markup elements relating to other content elements that are siblings in a hierarchical arrangement of content elements for the at least one markup language document satisfy the criteria.

### Claim 12 (depends on 1)

The method of claim 1, wherein the automatically determining comprises automatically determining in response to determining, from an evaluation of the at least one markup language document, that the at least one markup language document does not include an express indication of whether the first visible content element is a member of a group of visible content elements distinct from surrounding visible content elements.

### Claim 13 (depends on 1)

The method of claim 1, wherein:
the at least one markup language document comprises executable instructions that, when executed by a viewing application that processes and displays visible content elements of the at least one markup language document, cause the viewing application to perform the identifying and the automatically determining; and
the identifying and the automatically determining comprise executing, with the viewing application, the executable instructions.

### Claim 14 (depends on 13)

The method of claim 13, wherein:
the at least one markup language document is at least one document of a web page; and
the viewing application is a web browser.

### Claim 15 (depends on 13)

The method of claim 13, wherein the executable instructions define the identifying and the automatically determining to be independent of the at least one markup language document and applicable to other markup language documents.

### Claim 16

At least one computer-readable storage medium having encoded thereon at least one markup language document, the at least one markup language document having incorporated therein executable instructions that, when executed by at least one processor, cause the at least one processor to carry out a method comprising:
identifying a first visible content element, of the at least one markup language document, indicated by user input;
determining, from a hierarchical arrangement of content elements of the at least one markup language document, one or more parent content elements directly above the first visible content element in the hierarchical arrangement; and
analyzing each one parent content element of the one or more parent content elements to determine whether the one parent content element includes a distinct set of visible content elements that include the first visible content element and satisfy criteria indicating that a publisher of the at least one markup language document intended for the distinct set of visible content elements to be viewed together as a group.

### Claim 17 (depends on 16)

The at least one computer-readable storage medium of claim 16, wherein analyzing each one parent content element of the one or more parent content elements to determine whether the one parent content element includes a distinct set of visible content elements comprises:
scoring each one content element of the one or more parent content elements and the first visible content element based on the criteria indicating that a publisher of the at least one markup language document intended for a distinct set of visible content elements to be viewed together as a group;
selecting the highest-scoring content element between the one or more parent content elements and the first visible content element; and
in a case that the highest-scoring content element includes one or more visible content elements in addition to the first visible content element, determining that the highest-scoring visible content satisfies the criteria indicating that a publisher of the at least one markup language document intended for a distinct set of visible content elements to be viewed together as a group.

### Claim 18 (depends on 17)

The at least one computer-readable storage medium of claim 17, wherein scoring each one content element of the one or more parent content elements and the first visible content element based on the criteria comprises scoring each one content element based on a determination of whether the one content element and any descendent content elements of the one content element comprise a single image or a single text header.

### Claim 19 (depends on 17)

The at least one computer-readable storage medium of claim 17, wherein scoring each one content element of the one or more parent content elements and the first visible content element based on the criteria comprises scoring each one content element based on an evaluation of visual separation between the one content element and an adjacent content element on one or more sides.

### Claim 20 (depends on 19)

The at least one computer-readable storage medium of claim 19, wherein scoring each one content element based on an evaluation of visual separation between the one content element and an adjacent content element on one or more sides comprises, for a first side of a one content element that is a container for one or more child visible content elements:
determining one of the child visible content element that is positioned closest to the first side of the container; and
using, as the visual separation between the container and an adjacent content element on the first side, the visual separation between the child visible content element and the adjacent content element on the first side.

### Claim 21

An apparatus comprising:
at least one processor; and
at least one computer-readable storage medium having encoded thereon at least one markup language document having incorporated therein instructions, wherein the instructions, when executed by the at least one processor, cause the at least one processor to carry out a method comprising:
identifying a first visible content element of at least one markup language document; and
automatically determining whether the first visible content element is a member of a group of visible content elements distinct from surrounding visible content elements, wherein the automatically determining comprises:
analyzing a layout of visible content elements of the at least one markup language document in an area of the at least one markup language document that includes the first visible content element to determine whether the layout indicates that the first visible content element is a member of a group of visible content elements distinct from surrounding visible content elements; and
analyzing one or more markup elements of the at least one markup language document to determine whether the one or more markup elements indicate that the first visible content element is a member of a group of visible content elements distinct from surrounding visible content elements.
