CSS Parser in ColdFusion or Java?

I am creating something that requires a simple HTML interface for editing some properties in CSS. However, I need to get the value specified in the CSS file.

The only parser I can find is CSS Parser Project , and it is in Java. It implements both a Level 2 Model Document Object Type and SAC: The Simple API for CSS . It should work, but we have not tried. Any tutorial on this project or API?

Another solution that my team might think of is to raise this responsibility to the client browser + jQuery . However, it does not seem very reliable and effective.

Regular expression doesn't seem to be the right tool for finding CSS properties.

Does anyone have a better / simpler solution? Thanks!

+3
source share
3 answers

Ben Nadel created the CSS parser in ColdFusion - is it not yet fully recognized, but can it be good enough?

Recently, he has also been involved in many other CSS related materials, so if you need more things, you need to poke his blog.

+2
source

Source: https://habr.com/ru/post/1704921/


All Articles