Package org.apache.tapestry5.dom
Class Html5MarkupModel
java.lang.Object
org.apache.tapestry5.dom.AbstractMarkupModel
org.apache.tapestry5.dom.Html5MarkupModel
- All Implemented Interfaces:
MarkupModel
Implementation of
MarkupModel
that correctly handles HTML5 void
elements. It does not support XHTML5.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEndTagStyle
(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.Methods inherited from class org.apache.tapestry5.dom.AbstractMarkupModel
encode, encodeQuoted, getAttributeQuote
-
Constructor Details
-
Html5MarkupModel
public Html5MarkupModel() -
Html5MarkupModel
-
-
Method Details
-
getEndTagStyle
Description copied from interface:MarkupModel
For a given element, determines how the end tag for the element should be rendered. -
isXML
Description copied from interface:MarkupModel
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.- Returns:
- true for XML output, false for HTML output
-