[PATCH 3/9] docs: page: Fix declaration of main javascript source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 docs/page.xsl | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/docs/page.xsl b/docs/page.xsl
index 7dcbc2d7a4..71c7cfba9d 100644
--- a/docs/page.xsl
+++ b/docs/page.xsl
@@ -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()">
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux