Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8330119

Support multiple HTML classes in Swing

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8, 21, 22, 23
    • client-libs
    • None

      HTML in Swing does not support specifying two or more classes [1] to an element.

      For example, the following paragraph

      <p class="bold italic">bold + italic</p>

      should be rendered with styles of both bold and italic classes. But neither style is applied to <p> in Swing.


      This bug was found during code review [2] for JDK-8326734.

      [1] https://www.w3.org/TR/html4/struct/global.html#adef-class
      [2] https://github.com/openjdk/jdk/pull/18550#discussion_r1558128238

            psadhukhan Prasanta Sadhukhan
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: