Blank iFrame being added in Google Chrome

1,540 views
Skip to first unread message

Chris McKinnel

unread,
Jan 19, 2012, 8:41:19 AM1/19/12
to reCAPTCHA
It looks like reCaptcha is appending an empty iFrame in Google
Chrome. Is this a bug or a feature?

I have temporarily hidden this iFrame as it breaks my site's layout
using:
iframe[src="about:blank"] {display:none;}

I'm calling the script at http://www.google.com/recaptcha/api/challenge?k=xxxxMySiteKeyxxxx

Chris

Adrian Godong

unread,
Jan 19, 2012, 5:33:27 PM1/19/12
to reca...@googlegroups.com
Duplicate? http://groups.google.com/group/recaptcha/browse_thread/thread/e550b4d57518956c/

If it is, then it's your fault. :) Try running your site through
validator.w3c.org and fix any error (and also warning).

> --
> You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
> To post to this group, send email to reca...@googlegroups.com.
> To unsubscribe from this group, send email to recaptcha+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/recaptcha?hl=en.
>

--
Adrian Godong
adrian...@gmail.com

Chris McKinnel

unread,
Jan 20, 2012, 4:59:23 AM1/20/12
to reCAPTCHA
Hi Adrian,

The page in question validates as valid HTML5. I shouldn't say it
breaks my site layout, it just changes it a little as the inline
styling of the iframe appended by recaptcha isn't quite what it should
be.

Instead of:

<iframe src="about:blank" style="height: 0px; width: 0px; visibility:
hidden; border-top-style: none; border-right-style: none; border-
bottom-style: none; border-left-style: none; border-width: initial;
border-color: initial; ">This frame prevents back/forward cache
problems in Safari.</iframe>

It could simply be:

<iframe src="about:blank" style="display:none">This frame prevents
back/forward cache problems in Safari.</iframe>

Which would resolve any issues.

Do the developers read these threads or is just this a place to ask
for help from other developers?

Chris

On Jan 19, 10:33 pm, Adrian Godong <adrian.god...@gmail.com> wrote:
> Duplicate?http://groups.google.com/group/recaptcha/browse_thread/thread/e550b4d...
>
> If it is, then it's your fault. :) Try running your site through
> validator.w3c.org and fix any error (and also warning).
>
>
>
>
>
>
>
>
>
> On Thu, Jan 19, 2012 at 05:41, Chris McKinnel <chrismckin...@gmail.com> wrote:
> > It looks like reCaptcha is appending an empty iFrame in Google
> > Chrome.  Is this a bug or a feature?
>
> > I have temporarily hidden this iFrame as it breaks my site's layout
> > using:
> > iframe[src="about:blank"] {display:none;}
>
> > I'm calling the script athttp://www.google.com/recaptcha/api/challenge?k=xxxxMySiteKeyxxxx
>
> > Chris
>
> > --
> > You received this message because you are subscribed to the Google Groups "reCAPTCHA" group.
> > To post to this group, send email to reca...@googlegroups.com.
> > To unsubscribe from this group, send email to recaptcha+...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/recaptcha?hl=en.
>
> --
> Adrian Godong
> adrian.god...@gmail.com

Eleven Cool

unread,
Aug 15, 2012, 6:02:46 PM8/15/12
to reca...@googlegroups.com
Hi Chris,

First I'd just like to start with don't listen to Adrian, he clearly has no idea why this is happening and just feels the need to troll and jump to the assumption that you have no idea what you're doing and he knows everything.  He also probably calls himself God, but that's getting off topic.

I will not pretend like I know why this is happening because I don't.    However, I do have a css workaround for you that fixed this issue for me:

iframe[src="about:blank"] {
display:none;
}

Cheers!
Reply all
Reply to author
Forward
0 new messages