public class Html5MarkupModel extends AbstractMarkupModel
MarkupModel
that correctly handles HTML5 void
elements. It does not support XHTML5.Constructor and Description |
---|
Html5MarkupModel() |
Html5MarkupModel(boolean useApostropheForAttributes) |
Modifier and Type | Method and Description |
---|---|
EndTagStyle |
getEndTagStyle(String element)
For a given element, determines how the end tag for the element should be rendered.
|
boolean |
isXML()
Returns true if the document markup is XML, which is used to determine the need for an XML declaration at the
start of the document, and whether CDATA sections are supported.
|
encode, encodeQuoted, getAttributeQuote
public Html5MarkupModel()
public Html5MarkupModel(boolean useApostropheForAttributes)
public EndTagStyle getEndTagStyle(String element)
MarkupModel
public boolean isXML()
MarkupModel
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.