Package org.openrewrite.xml.marker
Class HtmlVoidElement
java.lang.Object
org.openrewrite.xml.marker.HtmlVoidElement
- All Implemented Interfaces:
org.openrewrite.marker.Marker
Marks an
Xml.Tag that is an HTML
void element
written without a self-closing slash (e.g. <br> rather than <br/>).
Such a tag has no content and no closing tag, but unlike a self-closing tag it is printed
with a bare > delimiter rather than />. The marker lets the printer
distinguish <br> from <br/> while keeping both representable as a
Tag with null content and null closing.
-
Constructor Details
-
HtmlVoidElement
public HtmlVoidElement()
-