• DocumentCode
    3773157
  • Title

    Discovering User-Defined Event Handlers in Presence of JavaScript Libraries

  • Author

    Shuai Wang;Wensheng Dou;Chushu Gao;Jun Wei;Tao Huang

  • Author_Institution
    Technol. Center of Software Eng., Inst. of Software, Beijing, China
  • fYear
    2015
  • Firstpage
    293
  • Lastpage
    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%.
  • Keywords
    "Libraries","Web pages","Standards","Reactive power","Receivers","Prototypes","Monitoring"
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering Conference (APSEC), 2015 Asia-Pacific
  • Electronic_ISBN
    1530-1362
  • Type

    conf

  • DOI
    10.1109/APSEC.2015.56
  • Filename
    7467313