/** * Create a tag like the one provided. * * @param tag The tag to emulate. * @param scanner The scanner for this tag. */ public TagNode(TagNode tag, TagScanner scanner) { this(tag.getPage(), tag.getTagBegin(), tag.getTagEnd(), tag.getAttributesEx()); setThisScanner(scanner); }