ambethia / recaptcha

ReCaptcha helpers for ruby apps

Home Page:http://github.com/ambethia/recaptcha

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

id on textarea causes duplicate ids if recaptcha_tags is called twice on the same page

jcoyne opened this issue · comments

Our automated accessibility check is giving a warning about this.
https://github.com/ambethia/recaptcha/blob/master/lib/recaptcha/helpers.rb#L77

Could that ID be derived from options[:id] if present?

Is there a reason that element needs an id?

check the id is not used in the js ... if that's the case PR welcome to make it unique

check the id is not used in the js

This is in the <noscript> section.

then it should be fine