test/tools/javadoc/TestScriptInComment.java

changeset 3845
735048c9f2d6
parent 3315
6f0746b6de9f
     1.1 --- a/test/tools/javadoc/TestScriptInComment.java	Thu Sep 26 07:17:41 2019 +0100
     1.2 +++ b/test/tools/javadoc/TestScriptInComment.java	Mon Aug 12 13:24:23 2019 -0700
     1.3 @@ -25,7 +25,7 @@
     1.4  
     1.5  /**
     1.6   * @test
     1.7 - * @bug 8138725
     1.8 + * @bug 8138725 8226765
     1.9   * @summary test --allow-script-in-comments
    1.10   * @run main TestScriptInComment
    1.11   */
    1.12 @@ -65,6 +65,10 @@
    1.13          WS("< script >#ALERT</script>", false, "-Xdoclint:none"), // script tag with invalid white space
    1.14          SA("<script src=\"file\"> #ALERT </script>", true), // script tag with an attribute
    1.15          ON("<a onclick='#ALERT'>x</a>", true), // event handler attribute
    1.16 +        OME("<img alt='1' onmouseenter='#ALERT'>", true), // onmouseenter event handler attribute
    1.17 +        OML("<img alt='1' onmouseleave='#ALERT'>", true), // onmouseleave event handler attribute
    1.18 +        OFI("<a href='#' onfocusin='#ALERT'>x</a>", true), // onfocusin event handler attribute
    1.19 +        OBE("<a onbogusevent='#ALERT'>x</a>", true), // bogus/future event handler attribute
    1.20          URI("<a href='javascript:#ALERT'>x</a>", true); // javadcript URI
    1.21  
    1.22          /**

mercurial