Skip to content

Commit

Permalink
fixup! IBX-8258: richtext: Html5Input is not washed for duplicate IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
vidarl committed Jun 25, 2024
1 parent 85c63fa commit 104897d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/lib/eZ/RichText/Resources/stylesheets/xhtml5/edit/docbook.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
</xsl:choose>
</xsl:template>

<xsl:template name="conditionallyAddIdAttribute">
<xsl:template name="addUniqueIdAttribute">
<xsl:param name="attribute"/>

<xsl:if test="$attribute">
Expand All @@ -109,7 +109,7 @@

<xsl:template match="ezxhtml5:p" name="paragraph">
<para>
<xsl:call-template name="conditionallyAddIdAttribute">
<xsl:call-template name="addUniqueIdAttribute">
<xsl:with-param name="attribute" select="@id"/>
</xsl:call-template>
<xsl:if test="@class">
Expand Down Expand Up @@ -145,7 +145,7 @@

<xsl:template match="ezxhtml5:pre">
<xsl:element name="programlisting">
<xsl:call-template name="conditionallyAddIdAttribute">
<xsl:call-template name="addUniqueIdAttribute">
<xsl:with-param name="attribute" select="@id"/>
</xsl:call-template>
<xsl:if test="@class">
Expand Down Expand Up @@ -261,7 +261,7 @@
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:call-template name="conditionallyAddIdAttribute">
<xsl:call-template name="addUniqueIdAttribute">
<xsl:with-param name="attribute" select="@id"/>
</xsl:call-template>
<xsl:if test="@title">
Expand All @@ -284,7 +284,7 @@
<xsl:template name="link.anchor">
<xsl:param name="attribute"/>
<anchor>
<xsl:call-template name="conditionallyAddIdAttribute">
<xsl:call-template name="addUniqueIdAttribute">
<xsl:with-param name="attribute" select="$attribute"/>
</xsl:call-template>
</anchor>
Expand Down Expand Up @@ -323,7 +323,7 @@
<xsl:value-of select="@class"/>
</xsl:attribute>
</xsl:if>
<xsl:call-template name="conditionallyAddIdAttribute">
<xsl:call-template name="addUniqueIdAttribute">
<xsl:with-param name="attribute" select="@id"/>
</xsl:call-template>
<xsl:if test="contains( @style, 'text-align:' )">
Expand All @@ -348,7 +348,7 @@

<xsl:template match="ezxhtml5:ol">
<orderedlist>
<xsl:call-template name="conditionallyAddIdAttribute">
<xsl:call-template name="addUniqueIdAttribute">
<xsl:with-param name="attribute" select="@id"/>
</xsl:call-template>
<xsl:if test="@class">
Expand All @@ -363,7 +363,7 @@

<xsl:template match="ezxhtml5:ul">
<itemizedlist>
<xsl:call-template name="conditionallyAddIdAttribute">
<xsl:call-template name="addUniqueIdAttribute">
<xsl:with-param name="attribute" select="@id"/>
</xsl:call-template>
<xsl:if test="@class">
Expand Down Expand Up @@ -407,7 +407,7 @@
</xsl:choose>
</xsl:variable>
<xsl:element name="{$tablename}" namespace="http://docbook.org/ns/docbook">
<xsl:call-template name="conditionallyAddIdAttribute">
<xsl:call-template name="addUniqueIdAttribute">
<xsl:with-param name="attribute" select="@id"/>
</xsl:call-template>
<xsl:if test="@class">
Expand Down Expand Up @@ -633,7 +633,7 @@
</xsl:template>

<xsl:template name="addCommonEmbedAttributes">
<xsl:call-template name="conditionallyAddIdAttribute">
<xsl:call-template name="addUniqueIdAttribute">
<xsl:with-param name="attribute" select="@id"/>
</xsl:call-template>
<xsl:if test="@data-href">
Expand Down Expand Up @@ -678,7 +678,7 @@
<xsl:value-of select="@title"/>
</xsl:attribute>
</xsl:if>
<xsl:call-template name="conditionallyAddIdAttribute">
<xsl:call-template name="addUniqueIdAttribute">
<xsl:with-param name="attribute" select="@id"/>
</xsl:call-template>
<xsl:if test="@class">
Expand Down Expand Up @@ -726,7 +726,7 @@
</xsl:attribute>
</xsl:if>
<xsl:if test="@data-ezelement='eztemplate'">
<xsl:call-template name="conditionallyAddIdAttribute">
<xsl:call-template name="addUniqueIdAttribute">
<xsl:with-param name="attribute" select="@id"/>
</xsl:call-template>
</xsl:if>
Expand Down

0 comments on commit 104897d

Please sign in to comment.