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

validator/htdocs/scripts w3c-validator.js,1.4,1.5

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 24 Aug 2007 01:14:51 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1IONlD-0001Nl-HA@lionel-hutz.w3.org>

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

Modified Files:
	w3c-validator.js 
Log Message:
Fixing a usability bug where options would be hidden from view, but still would be tabbed through 
when navigating with the keyboard.
Following ideas and suggestions by Greg Rosmaita, Gez Lemon, Patrick Lauke.
http://lists.w3.org/Archives/Public/wai-xtech/2007Aug/thread.html#msg76



Index: w3c-validator.js
===================================================================
RCS file: /sources/public/validator/htdocs/scripts/w3c-validator.js,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- w3c-validator.js	15 Jun 2007 15:47:23 -0000	1.4
+++ w3c-validator.js	24 Aug 2007 01:14:49 -0000	1.5
@@ -41,6 +41,9 @@
 				if (this.element.getStyle('margin-top').toInt() == 0){
 					this.wrapper.setStyle('height', 'auto');
 				}
+				else {
+				  this.element.setStyle('display','none');  // if a slideOut completed, set display:none
+				}
 			});
 		});
 		
@@ -54,6 +57,7 @@
 			var option = W3C.Options[i];
 			var link = legend.getFirst();
 			link.addEvent('click', function(event){
+			  option.setStyle('display', 'block'); // before any slide effect, set display:block
 				var block = (option.getStyle('margin-top').toInt() == 0);
 				W3C.setHash((block) ? pid : pid + opt);
 				new Event(event).stop();
Received on Friday, 24 August 2007 01:14:55 GMT

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