Class HtmlImplicitClosingRules
java.lang.Object
jodd.lagarto.dom.HtmlImplicitClosingRules
HTML rules for implicitly closing tags.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanimplicitlyCloseParentTagOnNewTag(String parentNodeName, String nodeName) Returnstrueif parent node tag can be closed implicitly.booleanimplicitlyCloseParentTagOnTagEnd(String parentNodeName, String nodeName) Returnstrueif current end tag (node name) closes the parent tag.booleanimplicitlyCloseTagOnEOF(String nodeName) Returnstrueif tag should be closed on EOF.
-
Field Details
-
IMPLIED_ON_START
List of tags that can be implicitly closed on provided children. The first array contains parent tag name (i.e. parent node name), that can be closed. The second array contains list of all children that will implicitly close the parent (i.e. current node name).Interpret it like this: [second array OPEN tag] closes [first array tag]
-
IMPLIED_ON_END
List of tags that can be implicitly closed on tags end. The first array contains current node name (i.e. ending tag). The second array contains list of all of parent tags that can be closed.Interpret it like this: [first array CLOSE tag] closes [second array tag]
-
CLOSED_ON_EOF
-
-
Constructor Details
-
HtmlImplicitClosingRules
public HtmlImplicitClosingRules()
-
-
Method Details
-
implicitlyCloseParentTagOnNewTag
-
implicitlyCloseParentTagOnTagEnd
-
implicitlyCloseTagOnEOF
Returnstrueif tag should be closed on EOF.
-