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

Onclick Script displayed as Link Text

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.4.17
    • 1.5.1
    • wicket
    • None

    Description

      Wicket changes an anchor that has an onclick attribute in a way that breaks it:

      <a href="google.com" onclick="if(history.length > 1)

      {history.back();return false;}else{return true;}">Back to Google</a>
      becomes:
      <a href="google.com" onclick="" if="" history.length=""> 1){history.back();return false;}

      else

      {return true;}

      ">Back to Google</a>

      Attachments

        1. cumulativePatch.txt
          7 kB
          Andrea Del Bene
        2. Quickstart.zip
          7 kB
          bernard
        3. valueAttributeCharsWithTest.txt
          5 kB
          Andrea Del Bene
        4. WICKET-3773.patch
          7 kB
          Martin Tzvetanov Grigorov

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              bht@actrix.gen.nz bernard
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: