diff options
Only add workaround comment for empty `span` nodes
See paragraph 5 in 67162f80a77a41bc95d7de05a87f7ee9a21a121c
Diffstat (limited to 'utility')
-rw-r--r-- | utility/xhtml.xsl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utility/xhtml.xsl b/utility/xhtml.xsl index 8b768fa..2f54975 100644 --- a/utility/xhtml.xsl +++ b/utility/xhtml.xsl @@ -15,7 +15,9 @@ <span> <xsl:copy-of select="@*"/> <xsl:apply-templates select="node()" mode="xhtml"/> - <xsl:comment></xsl:comment> + <xsl:if test="not(node())"> + <xsl:comment></xsl:comment> + </xsl:if> </span> </xsl:template> |