Class Html5VoidElementFragmentTransformer
java.lang.Object
com.atlassian.confluence.content.render.xhtml.transformers.Html5VoidElementFragmentTransformer
- All Implemented Interfaces:
FragmentTransformer
Takes xhtml fragments for void elements (either as empty elements or as a matching pair of elements) and
returns it as a single self closing tag (as required by the HTML 5 spec).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
handles
(StartElement startElementEvent, ConversionContext conversionContext) transform
(XMLEventReader reader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext)
-
Constructor Details
-
Html5VoidElementFragmentTransformer
public Html5VoidElementFragmentTransformer()
-
-
Method Details
-
handles
- Specified by:
handles
in interfaceFragmentTransformer
-
transform
public Streamable transform(XMLEventReader reader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext) throws XhtmlException - Specified by:
transform
in interfaceFragmentTransformer
- Throws:
XhtmlException
-