Last active
August 1, 2023 08:18
-
-
Save jmcamposdev/8eead4dd28490ed863a1b1d63c91a700 to your computer and use it in GitHub Desktop.
Solved WAVE Recaptcha (Missing form label)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener("load", (event) => { | |
let grecaptchaContainer = document.querySelector(".grecaptcha-badge"); | |
if (grecaptchaContainer) { | |
let grecaptchaTextarea = grecaptchaContainer.querySelector("textarea"); | |
let grecaptchaLabel = document.createElement("label"); | |
grecaptchaLabel.textContent = "Recaptcha"; | |
grecaptchaLabel.style.fontSize = "0px"; | |
grecaptchaLabel.setAttribute("for", grecaptchaTextarea.id); | |
grecaptchaContainer.appendChild(grecaptchaLabel); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wordpress


Using this snippet you can solve the WAVE WAVE Recaptcha (Missing form label)
If you have this Euros adding the Recaptcha to the Wordpress form flow this steps to solve:
Is create to WAVE Accessibility --> https://wave.webaim.org/