Static validation of dynamically generated HTML documents based on abstract parsing and semantic processing
- Authors
- Kim, Hyunha; Doh, Kyung-Goo; Schmidt, David A.
- Issue Date
- Jun-2013
- Publisher
- Springer Verlag
- Keywords
- abstract parsing; HTML validation; static analysis; string analysis
- Citation
- Static Analysis 20th International Symposium, SAS 2013, Seattle, WA, USA, June 20-22, 2012, Proceedings, v.7935 LNCS, pp 194 - 214
- Pages
- 21
- Indexed
- SCIE
SCOPUS
- Journal Title
- Static Analysis 20th International Symposium, SAS 2013, Seattle, WA, USA, June 20-22, 2012, Proceedings
- Volume
- 7935 LNCS
- Start Page
- 194
- End Page
- 214
- URI
- https://scholarworks.bwise.kr/erica/handle/2021.sw.erica/30595
- DOI
- 10.1007/978-3-642-38856-9_12
- Abstract
- Abstract parsing is a static-analysis technique for a program that, given a reference LR(k) context-free grammar, statically checks whether or not every dynamically generated string output by the program conforms to the grammar. The technique operates by applying an LR(k) parser for the reference language to data-flow equations extracted from the program, immediately parsing all the possible string outputs to validate their syntactic well-formedness. In this paper, we extend abstract parsing to do semantic-attribute processing and apply this extension to statically verify that HTML documents generated by JSP or PHP are always valid according to the HTML DTD. This application is necessary because the HTML DTD cannot be fully described as an LR(k) grammar. We completely define the HTML 4.01 Transitional DTD in an attributed LALR(1) grammar, carry out experiments for selected real-world JSP and PHP applications, and expose numerous HTML validation errors in the applications. In the process, we experimentally show that semantic properties defined by attribute grammars can also be verified using our technique. © 2013 Springer-Verlag.
- Files in This Item
-
Go to Link
- Appears in
Collections - COLLEGE OF COMPUTING > SCHOOL OF COMPUTER SCIENCE > 1. Journal Articles

Items in ScholarWorks are protected by copyright, with all rights reserved, unless otherwise indicated.