-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Inserting an iframe causes page rendering to be partial #346
Comments
I think this may involve problems with both Chrome and Jekyll. As you can see from the source, your iframe element has the form |
+1 seeing the same thing here |
The solution was to insert unwanted text between iframe, for ex <iframe>unwantedtext</iframe> Then it would render fine. |
Had the same problem. |
The solution for me was adding: ?wmode=opaque to the src. iframe src="http://www.youtube.com/embed/xxzczc?wmode=opaque" |
Original: It works for me! |
@jiguang Your solution worked for me as well. Thank you! |
@parkr - (tagging you because you might want to reopen) - I am having this same issue with Google Maps embedded iFrame. I have an array of "location" objects in my YAML front matter, each of them has a property called "mapFrame" which stores a string to the iFrame markup. When I output it via {{ location.mapFrame }}, the first one loads but breaks the rendering of the rest of the page. I have confirmed I can render each individually, but after Jekyll loads the first iFrame, the rest of the loop does not execute and nothing else gets into the DOM. |
Adding ampersand + "nbsp" to force a space in between iFrame tags caused Jekyll to render properly. This is a definite bug! @parkr Very likely that Jekyll may be doing something with "empty tags"? |
@netpoetica This isn't a bug with Jekyll, but a behaviour of your renderer. Some renderers "clean up" your HTML for you, which ends up breaking it. RedCarpet, Kramdown and MaRuKu all seem to have this "let me help you with that tag that has no content in it" behaviour. File a bug report with them if you'd like to see this behaviour changed! |
@parkr - I've never implicitly set a renderer for Jekyll, Jekyll set it for me! Whatever the default is, that is what I am using. Looks like Maruku is the default - is that true? Any way I could check? |
Yes maruku is the default. Try kramdown or redcarpet. Look at the Jekyll
|
Wrapping the iframe with a DIV seems to fix this for me. |
@netpoetica workaround works with showterm.io iframes Original Fixed
|
@jiguang solution worked for me |
Observe this page:
http://madhur.github.com/blog/2011/06/11/githubplatform.html
Source:
https://raw.github.com/madhur/madhur.github.com/master/_posts/2011-06-11-githubplatform.markdown
The page has source below the iframe (Youtube Video) but it does not get rendered. Any idea if its the Chrome or Jekyll issue ?
Thanks,
Madhur
The text was updated successfully, but these errors were encountered: