When run through Markup Validation from W3C, you get a number of
validation errors when it comes to the reCAPTCHA form. Are there any
plans to fix this?
Thanks a lot!
Rob Loach
http://www.robloach.net
I too am having issues with XHTML validation, but I don't believe it
is just down to the document.write calls. The errors I'm getting are
due to unclosed tags:
...h="500" frameborder="0"></iframe><br> (this should be <br /> for
XHTML)
...onse_field" value="manual_challenge"> (Input tag should end /> for
XHTML)
Please can these be fixed?
Edward
On Aug 10, 12:08 am, "reCAPTCHA Support" <supp...@recaptcha.net>
wrote:
> Hello Rob,
>
> It actually turns out the problems are deeper than this. We use
> document.write, which is not valid with XHTML. Very few AJAX apis (Google
> Maps, Adsense, many counters, etc) are actually XHTML compliant, even though
> the markup may appear to be valid XML.
>
> On 8/9/07, Rob Loach <roblo...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > When run through Markup Validation from W3C, you get a number of
> > validation errors when it comes to the reCAPTCHA form. Are there any
> > plans to fix this?
>
> >http://validator.w3.org
>
> > Thanks a lot!
>
> > Rob Loach
> >http://www.robloach.net
>
> --
> reCAPTCHA: stop spam, read bookshttp://recaptcha.net- Hide quoted text -
>
> - Show quoted text -
Joe
--
Joe Audette
Software Solutions Architect
Source Tree Solutions, LLC
joe.a...@gmail.com
http://www.sourcetreesolutions.com
http://www.mojoportal.com
Thanks,
I also depend on proper XHTML validation. The JavaScript imported
does break validation to a certain extent.
No matter what our opinions on XHTML are, a lot of websites depend on
it due to large scale web-, templating- and component-frameworks
automatically generating xhtml.
Your comments below that you require document.write to support the API
can be circumvented. I believe that you should also support an XHTML-
compliant version along with the perhaps easier to use current
solution. An XHTML version could simply fill in an xhtml structure
that is also provided. Most web-systems have the capability to import
pages into another. The following pseudo-code illustrates this
example:
...
<head>
<script language="JavaScript" src="http://recaptcha.net/
functions.js" type="text/javascript"></script>
</head>
...
<form>
<myTag:import src="http://recaptcha.net/skeleton.xhtml" />
</form>
...
To clarify, the skeleton.xhtml would contain the parts that the
current JavaScript-implementation is generating dynamically through
document.write(). The XHTML-compliant JS included in the header would
simply traverse the DOM and fill in any required fields such as the
img src.
This way validation would work for sites that require it.
Best wishes,
Marcus