On Fri, 11 Mar 2022 23:19:19 GMT, Damon Nguyen <dngu...@openjdk.org> wrote:
> So I wrote a test with a JEditorPane loading HTML from a file, but couldn't > get HTML buttons to render properly in JEditorPane. I wanted HTML buttons to > test a foo function encased in script tags in my HTML file to see if script > tags are parsed or just ignored via a proper test. Swing does not support plain `button` type, only `submit` and `reset`. https://github.com/openjdk/jdk/blob/ec4fb47b90c9737dfdc285ebe98367a221c90c79/src/java.desktop/share/classes/javax/swing/text/html/FormView.java#L257-L257 This is why the button isn't rendered. It may be due to the fact that there's no way to associate a handler for button click because scripts aren't supported. ------------- PR: https://git.openjdk.java.net/jdk/pull/7446