Making HTML 5 compatible

svn path=/trunk/; revision=20368
This commit is contained in:
ato
2011-04-25 14:14:19 +00:00
parent e0dd72b3ad
commit 280d593bd7

View File

@@ -150,12 +150,10 @@ if (window.location.search == "" || window.location.search == "?") {
if( document.createElementNS ) {
var l=document.createElementNS("http://www.w3.org/1999/xhtml","img");
l.setAttribute("src", imgsrc );
l.setAttribute("height", "0");
l.setAttribute("width", "0");
l.setAttribute("border", "0");
l.setAttribute("style", "display: none");
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 +'" />')
}
}