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
www.community-orchard.org.uk - see bug description #2309
Comments
This one will be a hard one, because I guess it's hitting the maximum depth of html parsing in Gecko. The code is just terrible. There are paths such as the one below and all the divs are empty. td.sites-layout-tile:nth-child(3) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > span:nth-child(1) > b:nth-child(1) > div:nth-child(1) > span:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > b:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > b:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > b:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > font:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) I wonder what is producing this code. What the commenter meant by " Note that this is a Google site"
This provides the same insanity without JS execution. |
@hsivonen knows probably more about the limit of our HTML5 parsing algorithm compared to the one of blink. |
Gecko's limit is in layout, but the HTML parser enforces this in order not to reach the limit on the layout side. I'd happily remove the parser check for the limit if layout got rid of the limitation. |
This issue seems well understood - removing the needsdiagnosis label. We just need to decide whether to close it as a duplicate of the open Gecko but or contacting them to recommend the code is somewhat simplified.. |
To contact them: just a pinch of salt they probably don't know what they are doing and it's why they are using Google Sites. |
I left a quick message about the bug in the contact form. Let's see if we get a response. |
Hi, I got your message, thanks. I administer the site. You are correct this site was created using Google Sites tools, no actual code was written by us. The page in question is the only one on the site that experiences this problem, and as I explained above it renders correctly in other browsers. How can I help you to help me? |
@community-orchard Thanks a lot. |
Well, the site itself is based on a template but the whole thing is wysiwyg tools. Not really sure what you mean by 'pre-built template' - can you explain? |
pre-built template: A template given by Google Sites UI. (thinking out loud: I wonder why the tool creates so many nested divs, maybe to align images and the system doesn't know how to reduce the complexity. There are ways to clean this code either with tables, lists or flexbox, but that would require manual fixing, so maybe too difficult). |
There are a lot of images on the page, and I add new ones periodically and always to the top of the left column, shifting the existing ones to the right and then to the next row. I wonder if making changes in this way after the code has been generated causes the problem. Anyway, once the page has been created, I can actually view and modify directly the HTML, but I'm not confident to do that, and I'm guessing that the code should be re-written rather than just be tweaked, right? |
@community-orchard Thanks a lot for helping. Something with this pattern could work: <figure>
<a href="http://www.community-orchard.org.uk/gallery/wassail-2016"><img src="" /></a>
<figcaption>Title 3</figcaption>
</figure>
<figure>
<a href=""><img src="" /></a>
<figcaption>Title 4</figcaption>
</figure>
</div> and the associated CSS. .photos {
display:flex;
flex-direction: row;
justify-content: space-between;
flex-wrap: wrap;
} but not sure if Google Sites will damage this in the future with the wysiwyg tool. |
We should ask Google contacts if anyone is working on Google Sites at the moment. Their markup generating code clearly has some room for improvements.. |
SeeAlso: https://bugzilla.mozilla.org/show_bug.cgi?id=1285546 |
This issue still exists. |
URL: http://www.community-orchard.org.uk/gallery
Browser / Version: Firefox 44.0
Operating System: Ubuntu
Problem type: Something else - I'll add details below
Steps to Reproduce
Expected Behavior: 16 images and their labels should be loaded in the main page frame
Actual Behavior: only 7 images and labels, and a couple of unaccompained labels appear
The text was updated successfully, but these errors were encountered: