W3C home > Mailing lists > Public > www-validator-cvs@w3.org > June 2010

markup-validator commit: Drop explanation loader javascript.

From: Mercurial notifier <nobody@w3.org>
Date: Wed, 30 Jun 2010 20:47:55 +0000
To: markup-validator updates <www-validator-cvs@w3.org>
Message-Id: <E1OU4CJ-0003qg-BW@blinky.w3.org>
changeset:   3112:57ae9318da7e
tag:         tip
user:        Ville Skyttä <ville.skytta@iki.fi>
date:        Wed Jun 30 23:47:30 2010 +0300
files:       htdocs/loadexplanation.js share/templates/en_US/error_loop.tmpl share/templates/en_US/error_loop_grouped.tmpl
description:
Drop explanation loader javascript.

The functionality to take advantage of this has no longer apparently
existed since introduction of error message grouping in validator 0.8.0.


diff -r 98508e38bd58 -r 57ae9318da7e htdocs/loadexplanation.js
--- a/htdocs/loadexplanation.js	Wed Jun 30 23:33:08 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-d=document
-w=window
-msgs=new Array()
-if (w && d && d.getElementsByTagName){
- w.onload=doubleUp
-}
-function doubleUp() {
- glist=d.getElementsByTagName("DIV")
- upto(1)
-}
-function upto(n) {
- if (n<glist.length) {
-  for (i=n;i<glist.length && i<n+10;i++) {
-   j=glist[i]
-   cls=j.className
-   if (cls) cls=cls.split(' ')
-   if (cls.length>1) {
-    if (cls[0]=='ve') msgs[cls[1]]=j.innerHTML
-    if (cls[0]=='hidden' && msgs[cls[1]]) {
-     j.className="ve "+cls[1]
-     j.innerHTML=msgs[cls[1]]
-    }
-   }
-  }
-  if (w && w.setTimeout) setTimeout('upto('+i+')',500)
- }
-}
diff -r 98508e38bd58 -r 57ae9318da7e share/templates/en_US/error_loop.tmpl
--- a/share/templates/en_US/error_loop.tmpl	Wed Jun 30 23:33:08 2010 +0300
+++ b/share/templates/en_US/error_loop.tmpl	Wed Jun 30 23:47:30 2010 +0300
@@ -13,7 +13,3 @@
 <TMPL_IF NAME="has_errors"></ol></TMPL_IF>
 
 <TMPL_INCLUDE NAME="backtop.tmpl">
-
-<TMPL_IF NAME="opt_verbose">
-    <script type="text/javascript" src="loadexplanation.js"></script>
-</TMPL_IF>
diff -r 98508e38bd58 -r 57ae9318da7e share/templates/en_US/error_loop_grouped.tmpl
--- a/share/templates/en_US/error_loop_grouped.tmpl	Wed Jun 30 23:33:08 2010 +0300
+++ b/share/templates/en_US/error_loop_grouped.tmpl	Wed Jun 30 23:47:30 2010 +0300
@@ -24,8 +24,3 @@
 <TMPL_IF NAME="has_errors"></ol></TMPL_IF>
 
 <TMPL_INCLUDE NAME="backtop.tmpl">
-
-
-<TMPL_IF NAME="opt_verbose">
-    <script type="text/javascript" src="loadexplanation.js"></script>
-</TMPL_IF>
Received on Wednesday, 30 June 2010 20:47:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:21 GMT