简体   繁体   中英

Question about CSSTidy

In opposite to most other CSS parsers, no regular expressions are used and thus CSSTidy has full CSS2 support and a higher reliability.

I wonder why CSSTidy built their own parser and not utilized the official SAC API (which also includes support for the new CSS3)? Is there any technical or practical reason for not using SAC and writing your own parser? Infact, there're NO css tools right now that use SAC, I wonder why?

The latest release of CSSTidy is July 19, 2007. I bet the SAC-API is much newer. I'd like to see someone do a PHP port of SAC-API.

Tools like CSSTidy need to be able to handle the non-compliant code that shows up in the real world. Official standards implementations usually aren't very good at that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM