-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
womenshealthmag.com - see bug description #1267
Comments
Hm. The site loads for me. But maybe "website is not responding" means something else? The slideshow does seem super broken. |
The slideshow is not working for me (on device).
|
btw this is showing in the console.log whatever it means. The domain is being rewritten after the unbalanced tree error.
|
Maybe this is this sequence which creates the issue. document.write('<iframe class="feature_ad" id="feature_ad_leaderboard" src="http://ad.doubleclick.net/adi/womenshealth/sexrelationships;kw=;tag=sex;article=8_sex_habits_of_super_happy_couples;topic=;sbtpc=sexhabitsofsuperhappycouples;slot=81x81;page=0;tile=2;sz=81x81;adc=adi;ord=?" width="1" height="1" marginwidth="0" marginheight="0" frameborder="0" scrolling="no">');
if (navigator.userAgent.indexOf("Gecko")==-1) {
document.write('<script type="text/javascript" id="feature_ad_leaderboard" src="http://ad.doubleclick.net/adj/womenshealth/sexrelationships;kw=;tag=sex;article=8_sex_habits_of_super_happy_couples;topic=;sbtpc=sexhabitsofsuperhappycouples;slot=81x81;page=0;tile=2;sz=81x81;adc=adi;abr=!ie;ord=?"><\/script>');
}
document.write('</iframe>'); Or reduced to its minimum document.write('<iframe>');
if (navigator.userAgent.indexOf("Gecko")==-1) {
document.write('<script type="text/javascript"><\/script>');
}
document.write('</iframe>'); When we do that it rewrites the
|
It's document.write() replacing the document that creates the wyciwyg: URL. This is a bug but should not cause real problems. If removing the code Karl quotes really makes a difference, perhaps their Mobify is just outdated. (Or, possibly, Mobify's 227 pull request was an incomplete fix). There's a Mobify.api=[1,0] somewhere in the source - if that means Mobify 1.0 it's old indeed. https://bugzilla.mozilla.org/show_bug.cgi?id=923360#c10 and mobify/mobifyjs#227 to some extent explain why a </script> tag written by a script might break Mobify - if the escape gets lost at some point, we might have a problem. However, I think that's a red herring and the real problem is this script assuming that global variables will survive a document.write(): $ = jQuery = Mobify.$; When this is run in the document.write()-generated script, Mobify doesn't exist, and hence neither jQuery nor $ get set correctly. That's going to break pretty much everything in a jQuery-based page. |
Yes, we've run into this before. I wrote about it: https://miketaylr.com/posts/2014/08/document-writing-zeptos.html Unfortunately it's a WebKit quirk (and a bug according to the HTML standard). |
So, site needs to update Mobify.. |
this site is working now. |
URL: http://www.womenshealthmag.com/sex-and-relationships/8-sex-habits-of-super-happy-couples
Browser / Version: Firefox Mobile 41.0
Operating System: Android
Problem type: Something else - I'll add details below
Steps to Reproduce
Expected Behavior:
Actual Behavior:
The text was updated successfully, but these errors were encountered: