Combining form and function: Static types for jquery programs

9Citations
Citations of this article
29Readers
Mendeley users who have this article in their library.
Get full text

Abstract

The jQuery library defines a powerful query language for web applications' scripts to interact with Web page content. This language is exposed as jQuery's api, which is implemented to fail silently so that incorrect queries will not cause the program to halt. Since the correctness of a query depends on the structure of a page, discrepancies between the page's actual structure and what the query expects will also result in failure, but with no error traces to indicate where the mismatch occurred. This work proposes a novel type system to statically detect jQuery errors. The type system extends Typed JavaScript with local structure about the page and with multiplicities about the structure of containers. Together, these two extensions allow us to track precisely which nodes are active in a jQuery object, with minimal programmer annotation effort. We evaluate this work by applying it to sample real-world jQuery programs. © 2013 Springer-Verlag Berlin Heidelberg.

Cite

CITATION STYLE

APA

Lerner, B. S., Elberty, L., Li, J., & Krishnamurthi, S. (2013). Combining form and function: Static types for jquery programs. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 7920 LNCS, pp. 79–103). Springer Verlag. https://doi.org/10.1007/978-3-642-39038-8_4

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free