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

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P3
    • 6-pool
    • Affects Version/s: 6u23
    • Component/s: 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
        //-->

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: