Method and apparatus for identifying elements of a webpage in different viewports of sizes
First Claim
Patent Images
1. A method comprising:
- accessing, by an electronic device, a document object model (DOM) of a webpage;
determining, from the DOM, a first set of values of properties of a plurality of elements of the webpage for displaying the webpage using a first viewport of a first size;
determining, from the DOM, a second set of values of the properties of the plurality of element of the webpage for displaying the webpage using a second viewport of a second size, wherein the first size differs from the second size;
comparing the first set of values to the second set of values;
determining a ranking score for elements of the plurality of elements based on whether values for properties of each element change between the first set of values and the second set of values; and
identifying at least one element that has a ranking score greater than a predefined threshold as a representative element of the webpage.
2 Assignments
0 Petitions
Accused Products
Abstract
A method for identifying elements of a webpage is provided. The method includes accessing, by an electronic device, a document object model (DOM) of the webpage. Changes applied to properties of a plurality of elements of the webpage across different media queries for different viewports are then analyzed using the DOM. The different viewports are of different sizes. Based on analyzing, ranking score is determined for each element. Elements having ranking score greater than a predefined threshold are identified as representative elements of the webpage.
6 Citations
20 Claims
-
1. A method comprising:
-
accessing, by an electronic device, a document object model (DOM) of a webpage; determining, from the DOM, a first set of values of properties of a plurality of elements of the webpage for displaying the webpage using a first viewport of a first size; determining, from the DOM, a second set of values of the properties of the plurality of element of the webpage for displaying the webpage using a second viewport of a second size, wherein the first size differs from the second size; comparing the first set of values to the second set of values; determining a ranking score for elements of the plurality of elements based on whether values for properties of each element change between the first set of values and the second set of values; and identifying at least one element that has a ranking score greater than a predefined threshold as a representative element of the webpage. - View Dependent Claims (2, 3, 4, 5, 6, 7, 20)
-
-
8. A method comprising:
-
accessing, by an electronic device, a document object model (DOM) of a webpage; assigning one or more ranking scores to a plurality of elements of the webpage; determining, from the DOM, a first set of values of properties of the plurality of elements of the webpage for displaying the webpage using a first viewport of a first size; determining, from the DOM, a second set of values of the properties of the plurality of element of the webpage for displaying the webpage using a second viewport of a second size, wherein the first size differs from the second size; comparing the first set of values to the second set of values; altering the one or more ranking scores of the plurality of elements based on the comparing of the first set of values to the second set of values; and identifying at least one element, having a ranking score greater than a predefined threshold, as a representative of the webpage. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A non-transitory computer readable medium for storing computer instructions that when executed by at least one processor causes the at least one processor a computing device to:
-
access a document object model (DOM) of a webpage; determine, from the DOM, a first set of values of properties of a plurality of elements of the webpage for displaying the webpage using a first viewport of a first size; determine, from the DOM, a second set of values of the properties of the plurality of element of the webpage for displaying the webpage using a second viewport of a second size, wherein the first size differs from the second size; compare the first set of values to the second set of values; determine a ranking score for elements of the plurality of elements based on whether values for properties of each element change between the first set of values and the second set of values, and identify at least one element that has a ranking score greater than a predefined threshold as a representative element of the webpage. - View Dependent Claims (16, 17, 18, 19)
-
Specification