]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Border and display 12/head
authorfredddii <fredddii@users.noreply.github.com>
Tue, 20 Oct 2015 16:35:21 +0000 (18:35 +0200)
committerfredddii <fredddii@users.noreply.github.com>
Tue, 20 Oct 2015 16:35:21 +0000 (18:35 +0200)
Deleted border from <img> as it causes a deprecated error when validating, and added style="display:none;" to the tag list.

wwwroot/js/awstats_misc_tracker.js

index 0ffd5b3d291d8a64b230c121f36126fad949042b..8dfe2dc5c03301326cc6e592667ed032c57f3e89 100644 (file)
@@ -149,13 +149,13 @@ if (window.location.search == "" || window.location.search == "?") {
     var imgsrc=imgsrc1+imgsrc2;
        if( document.createElementNS ) {
        var l=document.createElementNS("http://www.w3.org/1999/xhtml","img");
+        l.setAttribute("style", "display:none;");
         l.setAttribute("src", imgsrc );
         l.setAttribute("height", "0");
         l.setAttribute("width", "0");
-        l.setAttribute("border", "0");
         document.getElementsByTagName("body")[0].appendChild(l);
        } else {
-               document.write('<img style="display:none;" src="'+ imgsrc +'" height="0" width="0" border="0" />')
+               document.write('<img style="display:none;" src="'+ imgsrc +'" height="0" width="0">')
        }
 
 }