摘要
CILLA是一种通过动态获取DOM树来自动分析层叠样式表(CSS)的方法,它能发现Web应用中无效或无用的CSS代码段。但是,该方法在分析带伪类选择器的CSS、带属性选择器的CSS、在页面元素属性内部声明的CSS以及动态生成的CSS时误报率较高。提出了一种改进的CILLA方法,实验结果表明,改进后的方法能平均降低分析误报率20%。
CILLA is an automatic Cascading Style Sheets (CSS) analysis method by obtaining Docu- ment Object Model (DOM) tree dynamically. It can find out the effectless and useless CSS code snippets in Web applications. However, there is a high false positive rate when using CILLA to analyze CSS with Pseudo-Classes, CSS with attribute selector, CSS declared in the attribute of page element, or CSS gen- erated automatically. An improved CILLA method is proposed to solve these problems. The experimen- tal result shows that the improved method can reduce 20% false positive rate on average.
出处
《计算机工程与科学》
CSCD
北大核心
2014年第3期475-480,共6页
Computer Engineering & Science
基金
国家973计划资助项目(2012CB315801)
国家自然科学基金资助项目(61173167)
关键词
层叠样式表
文档对象模型
误报率
cascading style sheets
document object model
false positive