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

[Validator] Javascript Validation currently uses unsupported DOM method getAttributeNode("name").

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Operating System: other
      Platform: PC

    • 37315

    Description

      The use of Element.getAttributeNode("name") is not supported by IE prior to
      version 6. This error was reportedly fixed in COM-2145 but the resolution to
      still uses getAttributeNode("name").

      document.getAttributeNode() is present in:
      ./jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloatRange.js
      ./jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateShort.js
      ./jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMinLength.js
      ./jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateDate.js
      ./jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateEmail.js
      ./jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateByte.js
      ./jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateIntRange.js
      ./jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMask.js
      ./jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js
      ./jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateInteger.js
      ./jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateMaxLength.js
      ./jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/validateFloat.js

      This is issue has also previously been raised in COM-1622, with an appropriate
      patch being supplied.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--patchIE5.diff
          0.4 kB
          Jeffrey Williams

        Activity

          People

            Unassigned Unassigned
            jwilliams@judcom.nsw.gov.au Jeffrey Williams
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: