]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: page: Fix declaration of main javascript source
authorPeter Krempa <pkrempa@redhat.com>
Thu, 29 Feb 2024 12:32:59 +0000 (13:32 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 1 Mar 2024 11:51:55 +0000 (12:51 +0100)
Per the w3 html validator a HTML/XML comment is not allowed inside the
<script> tag, use a space instead as it must be a pair tag.

Additionally drop the 'type' attribute as it's not needed (validator
warns about it).

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
docs/page.xsl

index 7dcbc2d7a4ea4a23e86840f715f127bcdb2dcec0..71c7cfba9db141b0c0a2515789822cd6fda08793 100644 (file)
@@ -44,8 +44,9 @@
             <meta name="go-import" content="{/html:html/html:head/html:meta[@name='go-import']/@content}"/>
         </xsl:if>
 
-        <script type="text/javascript" src="{$asset_href_base}js/main.js">
-          <xsl:comment>// forces non-empty element</xsl:comment>
+        <!-- force non-empty script tag -->
+        <script src="{$asset_href_base}js/main.js">
+          <xsl:text> </xsl:text>
         </script>
       </head>
       <body onload="pageload()">