• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2014, Vol. 36 ›› Issue (03): 475-480.

• 论文 • Previous Articles     Next Articles

An improved automatic CSS analysis method      

XU Ke,ZHANG Dafang,ZHAO Dan   

  1. (College of Information Science and Engineering,Hunan University,Changsha 410082,China)
  • Received:2012-12-03 Revised:2013-02-17 Online:2014-03-25 Published:2014-03-25

Abstract:

CILLA is an automatic Cascading Style Sheets (CSS) analysis method by obtaining Document 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 generated automatically. An improved CILLA method is proposed to solve these problems. The experimental result shows that the improved method can reduce 20% false positive rate on average.

Key words: cascading style sheets;document object model;false positive