Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
According to HTML-Specs "name" and "id" attributes share the same namespace. So we can't have one element with name="offset" and another one with id="offset". Additionally IE6's getElementById() returns elements with matching names as well and Opera is mimicing this behaviour.
fuchsie78098be9bc5
diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.jsindex ce23eb5d4..e30c7ce5f 100644--- a/htroot/js/yacysearch.js+++ b/htroot/js/yacysearch.js@@ -69,7 +69,7 @@ function addHover() {}function statistics(offset, items, global, total) {- document.getElementById("offset").firstChild.nodeValue = offset;+ document.getElementById("resultsOffset").firstChild.nodeValue = offset;document.getElementById("itemscount").firstChild.nodeValue = items;document.getElementById("globalcount").firstChild.nodeValue = global;document.getElementById("totalcount").firstChild.nodeValue = total;diff --git a/htroot/yacysearch.html b/htroot/yacysearch.htmlindex 0e0b5eac4..40dd0ca2b 100644--- a/htroot/yacysearch.html+++ b/htroot/yacysearch.html@@ -99,7 +99,7 @@ document.getElementById("Enter").value = "search again - catch up more links";::<p>No Results. (length of search words must be at least 3 characters)</p>::- <p><strong id="offset">#[offset]#</strong>-<strong id="itemscount">#[linkcount]#</strong> results from a total number of <strong id="totalcount">#[totalcount]#</strong> known#(globalresults)#.::, <strong id="globalcount">#[globalcount]#</strong> links from other YaCy peers.#(/globalresults)#<div id="results"></div></p>+ <p><strong id="resultsOffset">#[offset]#</strong>-<strong id="itemscount">#[linkcount]#</strong> results from a total number of <strong id="totalcount">#[totalcount]#</strong> known#(globalresults)#.::, <strong id="globalcount">#[globalcount]#</strong> links from other YaCy peers.#(/globalresults)#<div id="results"></div></p><p>Search Result Pages: <span id="pagenav">#[pagenav]#</span></p>::<p>Searching the web with this peer is disabled for unauthorized users. Please <a href="Status.html?login=">log in</a> as administrator to use the search function</p>