Skip to content
Permalink
Browse files

Add space before closing slash in empty elements

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 cbf14ce5be8c2d248d69f7c7d6586a4e92df0049
Showing with 2 additions and 2 deletions.
  1. +1 −1 resources/header.xml
  2. +1 −1 samples/plugins/com.example.html5-webfont/include/webfont.hdf.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.
You can’t perform that action at this time.