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

        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!
        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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development