validator/htdocs/scripts w3c-validator.js,1.1,1.2

Update of /sources/public/validator/htdocs/scripts
In directory hutz:/tmp/cvs-serv28746

Modified Files:
	w3c-validator.js 
Log Message:
fixing scripting bug with too-greedy replacement of - with _



Index: w3c-validator.js
===================================================================
RCS file: /sources/public/validator/htdocs/scripts/w3c-validator.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- w3c-validator.js	31 May 2007 02:32:14 -0000	1.1
+++ w3c-validator.js	31 May 2007 03:59:42 -0000	1.2
@@ -66,7 +66,7 @@
 		
 		W3C.Tabs.each(function(li, i){
 			var link = li.getFirst();
-			link.href = link.original = link.href.replace(/-/g, '_');
+			link.href = link.original = '#' + link.href.split('#')[1].replace(/-/g, '_');
 			li.addEvent('click', function(){
 				W3C.updateLocation();
 				W3C.displaySection(i);

Received on Thursday, 31 May 2007 03:59:46 UTC