Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Comments form causes mobile browser crash with certain themes #540
I have 2 reports of this:
uses Decode, from the theme repo.
Uses Akita, from Themeforest.
I was able to reproduce with Decode. With Minileven off, the mobile browser crashes only when Jetpack's Comment module is active. This does not happen on the Twenty themes.
I did not test Akita.
I agree that this seems like a Webkit bug but I can't find a related bug report for Webkit.
I have more information about this issue that might be of help.
Decode has a DIV element named "commentform" that is styled with a class named "comment-form". The source of the IFRAME that Jetpack returns to replace Wordpress comments contains a FORM element named "commentform" that is styled with a class named "comment-form". Having discovered that, I set up the following test:
I created a plain HTML file named test.html that contains the following markup:
I created another plain HTML page named "formtest.html" that contains an exact copy of the source of the comment form IFRAME returned by Jetpack. It's a lot of code, so I won't repost here. Loading my "test.html" file in Chrome on iOS 7 produced the crash.
Hope this helps. Thank you.
I added a semicolon here in the Jetpack code in my formtest.html file:
The original code was:
The addition of the semicolon appears to have fixed the problem, at least in my test form. Loading the page in Chrome for iOS 7 without the semicolon causes the crash. Loading the page in Chrome for iOS 7 with the semicolon loads the Jetpack comment form as it should.
Because the original source code comes down in an IFRAME, I have no way of testing this in my full production environment, so I do not know if adding the semicolon breaks anything else.