A Comment node in a Thymeleaf DOM tree.
480481482483484485486487488489490491
if (!this.dtdMode) { flushBuffer(); final Comment comment = new Comment(new String(ch, start, start + length)); if (this.elementStack.isEmpty()) { this.rootNodes.add(comment); } else { final NestableNode parent = this.elementStack.peek();
197198199200201202203204205206
public static Comment translateComment(final org.w3c.dom.Comment domNode, final NestableNode parentNode, final String documentName) { final Comment comment = new Comment(domNode.getData(), documentName); comment.setParent(parentNode); return comment; }