On Thu, Aug 7, 2014 at 10:48 PM, Debasish Padhy <[email protected]> wrote:
> I am keen to use the Caja on Gwt Client side to validate some scripts and > to parse CSS into a Dom tree. > > Can I use it with Gwt Client ? > > On a side note I found references to this class > com.google.caja.parser.css.CssTree.StyleSheet > in Apache Shindig Api docs. > > But in the SVN source browse I do not see any folder like this inside > parser package. Am I missing something ? > More precisely where is the Css parser code ? > Caja has moved towards a pure client-side model of operation. The Java classes for things like CSS parsing have been removed; the remaining Java code is primarily related to Caja's build process. If you want to use Caja's client-side CSS parser, which is a plain JavaScript library, you can build Caja and obtain a standalone loadable file from the path ant-lib/com/google/caja/plugin/html-css-sanitizer-bundle.js or ant-lib/com/google/caja/plugin/html-css-sanitizer-minified.js -- --- You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
