diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2019-08-27 17:21:32 +0200 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2019-08-28 13:39:26 +0200 |
commit | 648c11c04cf1d45f37f4662ffb7952611ddb458c (patch) | |
tree | bae706c03ffc2f676ee4cc27b8a08a352d45396b /docs/newapi.xsl | |
parent | 0c67a11a4a30c85feae4d8671834941bdd78e896 (diff) | |
download | libvirt-648c11c04cf1d45f37f4662ffb7952611ddb458c.tar.gz |
docs: Make anchors follow HTML5
According to HTML specification, <a name=''> works in HTML4, but
<a id=''> works in both HTML4 and HTML5. This is followed even in
docs/page.xsl where HTML bookmark links are generated only for
those anchors which have @id attribute.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'docs/newapi.xsl')
-rw-r--r-- | docs/newapi.xsl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/newapi.xsl b/docs/newapi.xsl index 4c7b241659..ca8c703d5c 100644 --- a/docs/newapi.xsl +++ b/docs/newapi.xsl @@ -258,7 +258,7 @@ </xsl:call-template> </span> <xsl:text> </xsl:text> - <a name="{@name}"></a> + <a id="{@name}"></a> <xsl:value-of select="@name"/> <xsl:text> </xsl:text> @@ -281,7 +281,7 @@ </xsl:call-template> </span> <xsl:text> </xsl:text> - <a name="{$name}"><xsl:value-of select="$name"/></a> + <a id="{$name}"><xsl:value-of select="$name"/></a> <xsl:text> </xsl:text> </xsl:otherwise> @@ -320,7 +320,7 @@ <xsl:for-each select="/api/symbols/enum[@type = $name]"> <xsl:sort select="@value" data-type="number" order="ascending"/> <tr> - <td><a name="{@name}"><xsl:value-of select="@name"/></a></td> + <td><a id="{@name}"><xsl:value-of select="@name"/></a></td> <td><xsl:text> = </xsl:text></td> <xsl:choose> <xsl:when test="@info != ''"> |