Invention Grant
- Patent Title: Efficient event delegation in browser scripts
- Patent Title (中): 浏览器脚本中有效的事件委派
-
Application No.: US12879788Application Date: 2010-09-10
-
Publication No.: US08307277B2Publication Date: 2012-11-06
- Inventor: Evan Priestley , Ashwin Ravindra Bharambe
- Applicant: Evan Priestley , Ashwin Ravindra Bharambe
- Applicant Address: US CA Menlo Park
- Assignee: Facebook, Inc.
- Current Assignee: Facebook, Inc.
- Current Assignee Address: US CA Menlo Park
- Agency: Fenwick & West LLP
- Main IPC: G06F17/00
- IPC: G06F17/00

Abstract:
Event handlers associated with markup language documents represented in a web browser are identified efficiently in response to an event. The markup language document is represented as a hierarchical structure comprising nodes and edges. Nodes are associated with node types, each node type defining how descendants of the node respond to events. The markup language document provides mappings of sets of node types to sets of handlers. In response to an event associated with a node, the types of nodes encountered in a path connecting the node with the root node are identified. Handler sets of the node types encountered in the path connecting a node with the root node are used to determine the handlers to be executed in response to the event. Data is associated with nodes to allow handler code to distinguish between nodes of the same node type.
Public/Granted literature
- US20120066583A1 EFFICIENT EVENT DELEGATION IN BROWSER SCRIPTS Public/Granted day:2012-03-15
Information query