Skip to content

Unequal number of <div> and </div> in sphinx_rtd_theme/layout.html #1273

@thomas-nilsson-irfu

Description

@thomas-nilsson-irfu

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:

# number of start tags:
grep -c '<div' sphinx_rtd_theme/layout.html
# number of end tags:
grep -c '</div' sphinx_rtd_theme/layout.html

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

  • Python Version: N/A
  • Sphinx Version: N/A
  • RTD Theme Version: master branch (as of 2022-01-10).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions