DMXzone reCAPTCHA Support Product Page

Not a problem

The page will not validate due to errors in recaptcha output code

Reported 03 Mar 2013 17:43:48
1
has this problem
03 Mar 2013 17:43:48 James Threadgill posted:
I found errors in the HTML of the recaptcha behavior when validaing against XHTML 1.0 trans, W3C. The input tag has no closing / and there an empty set of tag brackets. These are bolded for your consideration.

"<iframe src=""www.google.com/recaptcha/api/noscript?k=" & m_PublicKey & """ frameborder=""1""></iframe><>" & _
"<textarea name=""recaptcha_challenge_field"" rows=""3"" cols=""40""></textarea>" & _
"<input type=""hidden"" name=""recaptcha_response_field"" value=""manual_challenge"" />" & _

Replies

Replied 04 Mar 2013 14:08:59
04 Mar 2013 14:08:59 Teodor Kuduschiev replied:
Hello,

You should not worry about this, it is how Google provide the code so there are no problems.
Replied 04 Mar 2013 16:41:14
04 Mar 2013 16:41:14 James Threadgill replied:
You are so wrong! The errors are the file dmxReCAPTCHA.asp on line 115 and 117. I fixed them and the page now validates. I reported it not because I didn't know what to do but because you need to address this BUG in the extension package. Here is your corrected code:


 GetControl = _
	  "<s" & "cript type=""text/javascript"">" & _
	  "var RecaptchaOptions = {" & _
	  "   theme : '" & theme & "'," & _
		"   lang : '" & language & "'," & _	  
	  "   tabindex : 0" & _
	  "};" & _
	  "</s" & "cript>" & _
	  "<s" & "cript type=""text/javascript"" src=""http://www.google.com/recaptcha/api/challenge?k=" & m_PublicKey & errString & """></s" & "cript>" & _
	  "<noscript>" & _
	    "<iframe src=""http://www.google.com/recaptcha/api/noscript?k=" & m_PublicKey & """ frameborder=""1""></iframe>" & _
	      "<textarea name=""recaptcha_challenge_field"" rows=""3"" cols=""40""></textarea>" & _
	      "<input type=""hidden"" name=""recaptcha_response_field"" value=""manual_challenge"" />" & _
	  "</noscript>"



I always worry when my pages are W3C compliant and so should you.

Reply to this topic