摘要 |
In one embodiment, a method includes, in connection with a target structured document rendered by a first client application and in response to a user input directed to target content of the target structured document, accessing, by a second client application, a document object model (DOM) representation of the target structured document, determining a target DOM node associated with the target content, recursively scanning one or more properties of each of one or more DOM nodes logically arranged proximal to the target DOM node within the DOM hierarchical tree, generating a set of one or more anchor point definitions based on one or more selected properties of each of the target DOM node and one or more selected ones of the scanned DOM nodes, and storing the set of anchor point definitions in a data structure. |
主权项 |
1. A method comprising: in connection with a target structured document rendered by a first client application executing within a first client computing device, and in response to a user input initiated by a user at the first client computing device directed to target content, the target content comprising some or all of the content of the target structured document: accessing, by a second client application at the first client computing device, a representation of the target structured document generated by the first client application, the representation comprising a plurality of nodes each logically arranged in one of a plurality of levels that together logically form a hierarchical tree; determining, by the second client application, a target node from the plurality of nodes, the target node being logically arranged in a target level of the plurality of levels, the target node being associated with the target content; recursively scanning, by the second client application, one or more properties of each of one or more of the nodes logically arranged proximal to the target node within the hierarchical tree; generating, by the second client application, a set of one or more anchor point definitions based on one or more selected properties of each of the target node and one or more selected ones of the scanned nodes; and storing or causing to be stored, by the second client application, the set of anchor point definitions in a data structure. |