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

Onclick Script displayed as Link Text

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.4.17
    • Fix Version/s: 1.5.1
    • Component/s: wicket
    • Labels:
      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. valueAttributeCharsWithTest.txt
          5 kB
          Andrea Del Bene
        3. WICKET-3773.patch
          7 kB
          Martin Grigorov
        4. Quickstart.zip
          7 kB
          bernard

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: