Class HtmlSpan

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.w3c.dom.Element, org.w3c.dom.Node

    public class HtmlSpan
    extends HtmlElement
    Wrapper for the HTML element "span".
    See Also:
    Serialized Form
    • Field Detail

      • TAG_NAME

        public static final java.lang.String TAG_NAME
        The HTML tag represented by this element.
        See Also:
        Constant Field Values
    • Method Detail

      • isTrimmedText

        protected boolean isTrimmedText()
        Returns a flag indicating whether or not this node should have any leading and trailing whitespace removed when DomNode.asText() is called. This method should usually return true, but must return false for such things as text formatting tags.
        Overrides:
        isTrimmedText in class DomNode
        Returns:
        a flag indicating whether or not this node should have any leading and trailing whitespace removed when DomNode.asText() is called
      • isEmptyXmlTagExpanded

        protected boolean isEmptyXmlTagExpanded()
        Indicates if a node without children should be written in expanded form as XML (i.e. with closing tag rather than with "/>")
        Overrides:
        isEmptyXmlTagExpanded in class DomElement
        Returns:
        false by default