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!
Henry source
share