Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-25

[validator] maxlength on textarea in firefox the javascript doesn't match serverside

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • None
    • None
    • None
    • Operating System: Windows XP
      Platform: PC

    • 37962

    Description

      When using firefox with a textarea that has a maxlength, if you include carriage
      returns in your data entry, the client side javascript will not match the server
      side java. On the client side the javascript is only seeing a \n for the
      carriage returns while on the server side the java is seeing a \n\r. So if you
      have a max length of 5, 1\n2\n3 will pass the client side, put fail the server
      side since there is will be 1\n\r2\n\r3.

      Attachments

        Activity

          People

            Unassigned Unassigned
            apache.9.alanf@antichef.net Alan Olmanson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: