Reusing KHTMLs CSS parser for a KDevelop language plugin

Maksim Orlovich maksim at
Wed Oct 21 22:39:57 BST 2009

> The thing is, we don't really need DOM access. I mean, we want to support
>  the developer _while writing the css document_. We don't know to which
>  documents he applies this style. Hence DOM sounds like nothing for us.

DOM2 CSS is the structure of the CSS, not the HTML --- it has classes like 
CSSStyleSheet, CSSRule, CSSValue, CSSProp, etc. Though line number info may be 
an issue, regardless --- it'd be kinda wasteful to include it normally. 
Perhaps a bigger issue is that the parser isn't incremental at all. 

More information about the kde-core-devel mailing list