×

Method and apparatus for identifying elements of a webpage in different viewports of sizes

  • US 9,904,936 B2
  • Filed: 11/19/2013
  • Issued: 02/27/2018
  • Est. Priority Date: 11/19/2013
  • Status: Active Grant
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.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×