Commons Validator
  1. Commons Validator
  2. VALIDATOR-80

[validator] All validation fails when "name" attribute in form not specified

    Details

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

      Operating System: All
      Platform: All

      Description

      All validation fails when "name" attribute in a <form> is not specified. If
      a "name" attribute is not specified, the JavaScript should query the "id"
      property's value as it is legal for the "id" to be specified with the "name"
      left out (XHTML Strict).

      An example of this problem coming up is when the <html:xhtml/> is specified
      when using Struts. See All validation fails when "name" attribute in a <form> is not specified. If
      a "name" attribute is not specified, the JavaScript should query the "id"
      property's value as it is legal for the "id" to be specified with the "name"
      left out (XHTML Strict).

      An example of this problem coming up is when the <html:xhtml/> is specified
      when using Struts. See Bug 35127.

      A patch fixing this problem is supplied. It checks the id attribute if the
      name attribute is not specified..

      A patch fixing this problem is supplied. It checks the id attribute if the
      name attribute is not specified.

        Activity

        Zarar Siddiqi created issue -
        Hide
        Zarar Siddiqi added a comment -

        Created an attachment (id=15354)
        Patch fixing problem which led to all JavaScript validation failing when name
        attribute is specified. One of id or name must be specified.

        Show
        Zarar Siddiqi added a comment - Created an attachment (id=15354) Patch fixing problem which led to all JavaScript validation failing when name attribute is specified. One of id or name must be specified.
        Hide
        Don Brown added a comment -

        Fixed in changeset [232636] Thanks for the patch!

        Show
        Don Brown added a comment - Fixed in changeset [232636] Thanks for the patch!
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 35294 12342297
        Henri Yandell made changes -
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Affects Version/s unspecified [ 12311647 ]
        Component/s Validator [ 12311135 ]
        Key COM-2145 VALIDATOR-80
        Project Commons [ 12310458 ] Commons Validator [ 12310494 ]
        Niall Pemberton made changes -
        Status Resolved [ 5 ] Reopened [ 4 ]
        Hide
        Niall Pemberton added a comment -

        Re-openned and the set to "Resolved Fixed" again to correct "resolution" which was lost in Bugzilla --> JIRA conversion

        Show
        Niall Pemberton added a comment - Re-openned and the set to "Resolved Fixed" again to correct "resolution" which was lost in Bugzilla --> JIRA conversion
        Niall Pemberton made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Fix Version/s 1.2.0 Release [ 12311749 ]
        Resolution Fixed [ 1 ]
        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Resolved Resolved Reopened Reopened
        404d 12h 7m 1 Niall Pemberton 19/Jul/06 14:30
        Reopened Reopened Resolved Resolved
        39m 13s 1 Niall Pemberton 19/Jul/06 15:09
        Resolved Resolved Closed Closed
        481d 5h 15m 1 Henri Yandell 12/Nov/07 19:25

          People

          • Assignee:
            Unassigned
            Reporter:
            Zarar Siddiqi
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development