Commons Validator
  1. Commons Validator
  2. VALIDATOR-25

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Alan Olmanson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development