Skip to content

Commit

Permalink
Add space before closing slash in empty elements
Browse files Browse the repository at this point in the history
This change is not necessary for HTML5 output, as the toolkit automatically generates the proper HTML5 syntax for void elements per https://dev.w3.org/html5/html-author/#void.

However, to ensure these examples also work in XHTML customizations, this commit adds the space before the slash in empty elements per compatibility guidelines in XHTML 1.0, Appendix C: https://www.w3.org/TR/xhtml-media-types/#C_2

Signed-off-by: Roger Sheen <roger@infotexture.net>
  • Loading branch information
infotexture committed Nov 13, 2019
1 parent 530b8c2 commit cbf14ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/header.xml
@@ -1,4 +1,4 @@
<div class="header">
<p>DITA Open Toolkit</p>
<hr/>
<hr />
</div>
@@ -1,3 +1,3 @@
<div>
<link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet"></link>
<link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet" />
</div>

0 comments on commit cbf14ce

Please sign in to comment.