Package com.google.caja.parser.html

Examples of com.google.caja.parser.html.Dom


  }

  private void addHtml(PluginCompiler compiler, String... lines)
  throws ParseException {
    String html = Join.join("\n", lines);
    Dom dom = new Dom(htmlFragment(fromString(html)));
    compiler.addInput(dom, dom.getFilePosition().source().getUri());
  }
View Full Code Here


    private Node top() { return stack.get(stack.size() - 1); }

    Job job() {
      assertEquals(stack, Lists.newArrayList(root));
      return Job.domJob(new Dom(root), InputSource.UNKNOWN.getUri());
    }
View Full Code Here

  private void parseJob(JobStub inputJob, Jobs outputJobs)
      throws ParseException {
    switch (inputJob.type) {
      case HTML:
        outputJobs.getJobs().add(JobEnvelope.of(Job.domJob(
            new Dom(htmlFragment(fromString(inputJob.content, is))),
            is.getUri())));
        break;
      case CSS:
        outputJobs.getJobs().add(JobEnvelope.of(
            Job.cssJob(css(fromString(inputJob.content, is)), is.getUri())));
View Full Code Here

TOP

Related Classes of com.google.caja.parser.html.Dom

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.