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

JDK 6 parses html text with script tags within comments differently from previous releases

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 6-pool
    • 6u23
    • client-libs

        Parsing the following snippet with javax.swing.text.html.parser.ParserDelegator

        <script>
        <!--
        function foo() {
          var tag1 = "</script>";
          var tag2 = "<div>";
          var tag3 = "</div>";
          var tag4 = "<script>";
        }
        // -->
        </script>

        JDK 6 will break at line
          var tag1 = "</script>";

        Previous jdk 1.4.2_x and 5.0_x, it will determine the comments correctly and break at
        //-->

              dmarkov Dmitry Markov
              fchoong Fui-Shien Choong (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: