The Community for Technology Leaders
2015 Asia-Pacific Software Engineering Conference (APSEC) (2015)
New Delhi, India
Dec. 1, 2015 to Dec. 4, 2015
ISSN: 1530-1362
ISBN: 978-1-4673-9644-8
pp: 293-300
ABSTRACT
JavaScript libraries, such as JQuery, are widely used in web applications. In these libraries' event delegation models, a DOM element's event handler is usually bound to its parent nodes. This makes it difficult for developers to figure out the user-defined event handlers of a specified DOM element. In this paper, we propose an approach that identifies the user-defined event handlers of DOM elements in a web page. We dynamically collect the execution trace for each triggered event in a web page, and analyze how each function is used in the execution trace to discover the event handlers for each event. We evaluate our approach on seven real-world web applications. The result shows that our approach is effective, with an overall precision of 100% and recall of 99.8%.
INDEX TERMS
Libraries, Web pages, Standards, Reactive power, Receivers, Prototypes, Monitoring
CITATION

S. Wang, W. Dou, C. Gao, J. Wei and T. Huang, "Discovering User-Defined Event Handlers in Presence of JavaScript Libraries," 2015 Asia-Pacific Software Engineering Conference (APSEC), New Delhi, India, 2016, pp. 293-300.
doi:10.1109/APSEC.2015.56
97 ms
(Ver 3.3 (11022016))