W3C home > Mailing lists > Public > www-validator-cvs@w3.org > May 2007

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

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 31 May 2007 03:59:44 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1HtbpA-0007Vi-UX@lionel-hutz.w3.org>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:22 UTC