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 Details

  • Method Details

    • getEndTagStyle

      public EndTagStyle getEndTagStyle(String element)
      Description copied from interface: MarkupModel
      For a given element, determines how the end tag for the element should be rendered.
    • isXML

      public boolean 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