I am working with the new multimedia tags in HTML5 (video, audio, source, and track). These tags have new attributes that did not exist prior to HTML5 and are not included on the HTML.Attribute
class of javax.swing.text.html, such as media, srclang, and kind. Since HTML.Attribute
is defined as "public static final class" it is not possible to "extend" this class to add the new values.
I found a class com.inet.html.css.HTML.Attribute
that appears to do exactly what I want to do (and adds the "media" attribute), but I cannot figure out how they managed to extend the super class java.lang.Enum.
Any ideas?