-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Unequal number of <div> and </div> in sphinx_rtd_theme/layout.html #1273
Comments
Hey @thomas-nilsson-irfu I want to resolve this error. Can I? |
Hi @NaincyKumariKnoldus ! Your contribution is more than welcome. We haven't yet assessed what |
hye @astrojuanlu I will see that which is missing closing tag. Can I?
|
Hello @astrojuanlu and @thomas-nilsson-irfu I have raised now a PR for this and fixed this issue. |
xref #1274 |
There's only an unequal number due to this conditionally templated div, so on a grep you'd get 12 of If this really is a problem you could fix it by conditionally displaying the class, roughly like this:
or something similar instead of this if/else/endif block. Could also do it with a helper function; see https://forums.meteor.com/t/solved-conditional-css-class-applied-to-element-in-template-can-this-be-simplified/7627 Not sure if this is really worth a fix (given it probably violates code style) or just to close this issue 🫠 |
Problem
The included template, sphinx_rtd_theme/layout.html, does not have an equal number of
<div>
and</div>
tags making it effectively invalid as per html standard.Counting the numbers of
<div>
tags I get 12 and counting</div>
I only get 11...Reproducible Project
Including a simple shell script example:
Expected Results
Correctly start (
<div>
) and end (</div>
) all tags in the template so it correctly follows the HTML standard, neither tag is omissible.Ref:
https://html.spec.whatwg.org/multipage/grouping-content.html#the-div-element
Environment Info
The text was updated successfully, but these errors were encountered: