Path

ez projects / recaptcha / forum / general / xhtml strict patch


XHTML strict patch

You need to be logged in to post messages in the forums. New users may register here.

Geoff Bentley

Member since:
08 December 2007

Posts: 46

Thursday 16 April 2009 2:13:54 am

We have updated classes/recaptchalib.php to be XHTML strict, replacing IFRAME with OBJECT, and putting everything in a block-level element:



Index: recaptchalib.php


===================================================================


--- recaptchalib.php    (revision 121)


+++ recaptchalib.php    (revision 2205)


@@ -122,9 +122,11 @@


        return '<script type="text/javascript" src="'. $server . '/challenge?k=' . $pubkey . $errorpart . '"></script>


 

        <noscript>


-              <iframe src="'. $server . '/noscript?k=' . $pubkey . $errorpart . '" height="300" width="500" frameborder="0"></iframe><br/>


-              <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>


+               <div>


+              <object data="'. $server . '/noscript?k=' . $pubkey . $errorpart . '" type="text/html" height="300" width="500"></object><br/>


+              <textarea id="recaptcha_challenge_field" name="recaptcha_challenge_field" rows="3" cols="40"></textarea>


               <input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>


+              </div>


        </noscript>';


 }


 


For those that need it.
Up

You need to be logged in to post messages in the forums. New users may register here.