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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 6u23
    • Fix Version/s: 6-pool
    • Component/s: client-libs
    • Labels:

      Backports

        Description

        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
        //-->

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: