public class HtmlImplicitClosingRules
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
CLOSED_ON_EOF |
static java.lang.String[][] |
IMPLIED_ON_END
List of tags that can be implicitly closed on tags end.
|
static java.lang.String[][] |
IMPLIED_ON_START
List of tags that can be implicitly closed on provided children.
|
Constructor and Description |
---|
HtmlImplicitClosingRules() |
Modifier and Type | Method and Description |
---|---|
boolean |
implicitlyCloseParentTagOnNewTag(java.lang.String parentNodeName,
java.lang.String nodeName)
Returns
true if parent node tag can be closed implicitly. |
boolean |
implicitlyCloseParentTagOnTagEnd(java.lang.String parentNodeName,
java.lang.String nodeName)
Returns
true if current end tag (node name) closes the parent tag. |
boolean |
implicitlyCloseTagOnEOF(java.lang.String nodeName)
Returns
true if tag should be closed on EOF. |
public static final java.lang.String[][] IMPLIED_ON_START
Interpret it like this: [second array OPEN tag] closes [first array tag]
public static final java.lang.String[][] IMPLIED_ON_END
Interpret it like this: [first array CLOSE tag] closes [second array tag]
public static final java.lang.String[] CLOSED_ON_EOF
public boolean implicitlyCloseParentTagOnNewTag(java.lang.String parentNodeName, java.lang.String nodeName)
true
if parent node tag can be closed implicitly.public boolean implicitlyCloseParentTagOnTagEnd(java.lang.String parentNodeName, java.lang.String nodeName)
true
if current end tag (node name) closes the parent tag.public boolean implicitlyCloseTagOnEOF(java.lang.String nodeName)
true
if tag should be closed on EOF.Copyright © 2003-present Jodd Team