Class HTML

java.lang.Object
com.inet.html.css.HTML
Direct Known Subclasses:
HTML.UnknownAttribute

public class HTML extends Object
Replace the class javax.swing.text.html.HTML because it is not completly
  • Constructor Details

    • HTML

      public HTML()
  • Method Details

    • getTag

      public static HTML.Tag getTag(String name)
      Get a Tag constant for a known tag. This work only for real Tags and not for synthesized Tags.
      Parameters:
      name - the name of the tag (case insensitive)
      Returns:
      the Tag or null
    • addTagMapping

      public static void addTagMapping(String tagName, HTML.Tag tag)
      Add a mapping to resolve unknown tags to known HTML tags.
      Parameters:
      tagName - the name of the non-HTML tag
      tag - the tag to resolve to
    • getAttributeKey

      public static HTML.Attribute getAttributeKey(String name)
      Get an Attribute constant for a known attribute.
      Parameters:
      name - the name of the attribute (case insensitive)
      Returns:
      the Tag or null