]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/on-line/xslt/ls2html.xsl
"Bug" appearing under IE only fixed.
[helm.git] / helm / on-line / xslt / ls2html.xsl
index 105c9ed3f06ad47856b7a5765539015117c33e28..98f8fd17a02c51750bda1df4ee8870ce2c67ad86 100644 (file)
          '&param.getterURL={$getterURL}' +
          '&param.target={$target}' +
          '&param.interfaceURL={$interfaceURL}';
+        var pathname = this.pathname;
+        // Next if to cope with IE idiosyncrasies
+        if (pathname.charAt(0) != '/')
+         pathname = '/' + pathname;
         this.href=
-         this.protocol + '//' + this.host + this.pathname + search + this.hash;"
+         this.protocol + '//' + this.host + pathname + search + this.hash;"
       onMouseOver="window.status='{$uri}'; return true"
       href="apply"
    ><xsl:value-of select="$basename"/></a>