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

javax.swing.JEditorPane.setPage(java.net.URL) does not preserve nesting of font and form elements

XMLWordPrintable

      Nested structures like
      <b>
       <select>
         <option value="Adelaide">Adelaide</option>
       </select>
       This is some Text.
      </b>
      are not preserved when reading them with
        javax.swing.JEditorPane.setPage(java.net.URL)
      and subsequently writing them with
        javax.swing.JEditorPane.getText().

      javax.swing.JEditorPane.getText() returns the html code as

      <select>
        <option value=Adelaide>Adelaide
      </select>
      <b>
        This is some Text.
      </b>

            miroslawzn Miroslaw Niemiec (Inactive)
            thlenz Thomas Lenz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: