Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4149

ReCAPTCHA in CiviContribute form produces invalid HTML

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.2.0
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      When I include a Profile that uses the ReCAPTHA component in a CiviContribute page, the HTML produced is invalid. The ReCAPTCHA section produces a <TR> outside of a <TABLE>.

      It all works fine if I edit the templates/CRM/common/ReCAPTCHA.tpl file so it looks like:

      <table class="form-layout-compressed">
      <tr>
      <td class="label"> </td>
      <td>
      {$recaptchaHTML}
      {$form.recaptcha_challenge_field.html}
      {$form.recaptcha_response_field.html}
      </noscript>
      </td>
      </tr>
      </table>

      I don't know if there are any negative side-affects to this change.

        Attachments

          Activity

            People

            • Assignee:
              amit Amiteshwar Prasad
              Reporter:
              jrosen Jason Rosen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: