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

Onclick Script displayed as Link Text

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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. valueAttributeCharsWithTest.txt
          5 kB
          Andrea Del Bene
        3. WICKET-3773.patch
          7 kB
          Martin Tzvetanov Grigorov
        4. Quickstart.zip
          7 kB
          bernard

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment