]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Tweak to make w3.org html validator a little happier
authorRich Bowen <rbowen@apache.org>
Sun, 31 May 2026 00:28:48 +0000 (00:28 +0000)
committerRich Bowen <rbowen@apache.org>
Sun, 31 May 2026 00:28:48 +0000 (00:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1934798 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/common.xsl
docs/manual/style/xsl/synopsis.xsl

index 6aaf1648e24802fcd89c10b6768b0aee2ea7f08a..d57ed6f1892c29d63f8df8c192c28bd74a1e4e56 100644 (file)
            rel="stylesheet"
            href="{$path}/style/css/manual-print.css"/>
     <link href="{$path}/style/css/prettify.css" type="text/css" rel="stylesheet" />&lf;
-    <script type="text/javascript" src="{$path}/style/scripts/prettify.min.js">&lf;</script>&lf;
+    <script src="{$path}/style/scripts/prettify.min.js">&lf;</script>&lf;
     <!-- chm files do not need a favicon -->
     <xsl:if test="not($is-chm or $is-zip)">&lf;
         <link rel="shortcut icon" href="{$path}/images/favicon.png" />
 
 </div> <!-- /footer -->
 
-<script type="text/javascript">
+<script>
 <xsl:text disable-output-escaping="yes"><![CDATA[<!--//--><![CDATA[//><!--
 if (typeof(prettyPrint) !== 'undefined') {
     prettyPrint();
@@ -517,9 +517,8 @@ if (qv) {
     <h2>
         <xsl:choose>
         <xsl:when test="@id">
-          <a id="{@id}" name="{@id}">
-              <xsl:apply-templates select="title" mode="print" />
-          </a>
+          <xsl:attribute name="id"><xsl:value-of select="@id" /></xsl:attribute>
+          <xsl:apply-templates select="title" mode="print" />
           <xsl:text> </xsl:text>
           <a class="permalink" href="#{@id}" title="{$message[@id='permalink']}">&para;</a>
         </xsl:when>
@@ -545,9 +544,8 @@ if (qv) {
 <h3>
     <xsl:choose>
     <xsl:when test="@id">
-        <a id="{@id}" name="{@id}">
-            <xsl:apply-templates select="title" mode="print" />
-        </a>
+        <xsl:attribute name="id"><xsl:value-of select="@id" /></xsl:attribute>
+        <xsl:apply-templates select="title" mode="print" />
     </xsl:when>
 
     <xsl:otherwise>
index 1f250202224e3814cb48a35a03e21bbbd976b932..ffc0008c8a3db2e73a24c8b7e3a02f7b226f330f 100644 (file)
         <!-- Directive heading gets both mixed case and lowercase      -->
         <!-- anchors, and includes lt/gt only for "section" directives -->
         <h2>
+            <xsl:attribute name="id"><xsl:value-of select="$lowername" /></xsl:attribute>
             <xsl:choose>
             <xsl:when test="$message
                             [@id='directive']/@before-name = 'yes'">
-                <a id="{$lowername}" name="{$lowername}">
-                    <xsl:value-of select="$message[@id='directive']" />
-                </a>
+                <xsl:value-of select="$message[@id='directive']" />
 
                 <xsl:choose>
                 <xsl:when test="$message
                 </xsl:otherwise>
                 </xsl:choose>
 
-                <a id="{$directivename}" name="{$directivename}">
+                <span id="{$directivename}">
                     <xsl:if test="@type='section'">&lt;</xsl:if>
                     <xsl:value-of select="name" />
                     <xsl:if test="@type='section'">&gt;</xsl:if>
-                </a>
+                </span>
             </xsl:when>
 
             <xsl:otherwise>
-                <a id="{$directivename}" name="{$directivename}">
+                <span id="{$directivename}">
                     <xsl:if test="@type='section'">&lt;</xsl:if>
                     <xsl:value-of select="name" />
                     <xsl:if test="@type='section'">&gt;</xsl:if>
-                </a>
+                </span>
 
                 <xsl:choose>
                 <xsl:when test="$message
                 </xsl:otherwise>
                 </xsl:choose>
 
-                <a id="{$lowername}" name="{$lowername}">
-                    <xsl:value-of select="$message[@id='directive']" />
-                </a>
+                <xsl:value-of select="$message[@id='directive']" />
             </xsl:otherwise>
             </xsl:choose>
         <xsl:text> </xsl:text>