Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-501

JavaScript comment stripping doesn't handle regexps

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.3.0-beta1
    • 1.3.0-beta2
    • wicket
    • None

    Description

      The following line is crippled when using javascript comment stripping

      (from jquery.js)

      // Handle the common XPath // expression
      if ( !t.indexOf("//") ) {

      it will be result in

      if ( !t.indexOf("

      the // inside the string quotes are taken as a comment instead of as a string...

      Attachments

        1. 20070425-WICKET-501-JavascriptStripper.txt
          3 kB
          Jean-Baptiste Quenot
        2. jquery-06-19-07.js
          64 kB
          Peter Ertl
        3. jquery-06-19-07-stripped.js
          38 kB
          Peter Ertl

        Activity

          People

            almaw Alastair Maw
            pete Peter Ertl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: