Package com.google.caja.plugin.templates

Examples of com.google.caja.plugin.templates.HtmlAttributeRewriter$AttrValue


          if (classAttr != null) {
            el.removeAttributeNode(classAttr);
            String identifiers = classAttr.getValue().trim();
            if (!"".equals(identifiers)) {
              WhiteList wl = WhiteList.Factory.empty();
              HtmlAttributeRewriter rw = new HtmlAttributeRewriter(
                  jobs.getPluginMeta(), new CssSchema(wl, wl),
                  htmlSchema, Maps.<Attr, EmbeddedContent>newHashMap(),
                  jobs.getMessageQueue());
              HtmlAttributeRewriter.SanitizedAttr sanitized
                  = rw.sanitizeStringValue(HtmlAttributeRewriter.fromAttr(
                      classAttr, htmlSchema.lookupAttribute(BODY_CLASS),
                      source));
              if (sanitized.isSafe) {
                FilePosition pos = Nodes.getFilePositionForValue(classAttr);
                Expression e = sanitized.result;
View Full Code Here

TOP

Related Classes of com.google.caja.plugin.templates.HtmlAttributeRewriter$AttrValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.