W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2009

2006/unicorn/WebContent/scripts w3c_unicorn_index.js,1.8,1.9

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 11 Sep 2009 11:10:43 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mm41b-0001Wb-MT@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/scripts
In directory hutz:/tmp/cvs-serv5846/WebContent/scripts

Modified Files:
	w3c_unicorn_index.js 
Log Message:
now search for la language parameter in the 'html' tag attributes
+ fixed hash was added two times to get requests

Index: w3c_unicorn_index.js
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/scripts/w3c_unicorn_index.js,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- w3c_unicorn_index.js	10 Sep 2009 09:29:41 -0000	1.8
+++ w3c_unicorn_index.js	11 Sep 2009 11:10:41 -0000	1.9
@@ -10,7 +10,8 @@
 		W3C.TaskDescrip = $('task_descrip');
 		W3C.TaskInputs = $$('input.task');
 		
-		W3C.LangParameter = $$('input.lang')[0].value;
+		W3C.LangParameter = $$('html').getProperty('lang')[0];
+		
 		W3C.Forms = $$('form[action=observe]');
 		
 		// index of selected tab
@@ -30,12 +31,6 @@
 		W3C.toggleOptions(false);
 		W3C.addOptionEvents();
 		
-		/*console.log(W3C.isUrl("http://www.w3.org"));
-		console.log(W3C.isUrl("http://jigsaw.w3.org/css-validator/validator?uri=www.w3.org&profile=css3&usermedium=all&warning=1&lang=fr&output=ucn"));
-		console.log(W3C.isUrl("http://localhost:8080/unicorn_dev/#validate-by-uri+task_full-css+with_options"));
-		console.log(W3C.isUrl("http://www.%w3.org/TR/CSS21/colors.html#propdef-color"));
-		console.log(W3C.isUrl("/w3.org"));
-		console.log(W3C.isUrl("www.w3.org"));*/
 	},
 	
 	prepareDocument: function(){
@@ -87,7 +82,6 @@
 					if (passed) {
 						event.preventDefault();	
 						var queryString = form.toQueryString().replace('uri=http%3A%2F%2F', 'uri=') + "#" + W3C.getHash();
-						queryString = queryString + "#" + W3C.getHash();
 						window.location = "./observe?" + queryString;
 					}
 				}
Received on Friday, 11 September 2009 11:10:53 GMT

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