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

2006/unicorn/WebContent/scripts w3c-validator.js,1.1.2.11,1.1.2.12

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 26 Aug 2009 18:19:04 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MgN5M-0000Lk-6u@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/WebContent/scripts
In directory hutz:/tmp/cvs-serv1330/WebContent/scripts

Modified Files:
      Tag: dev2
	w3c-validator.js 
Log Message:
added isUrl() function (not implemented)

Index: w3c-validator.js
===================================================================
RCS file: /sources/public/2006/unicorn/WebContent/scripts/Attic/w3c-validator.js,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -u -d -r1.1.2.11 -r1.1.2.12
--- w3c-validator.js	25 Aug 2009 18:13:39 -0000	1.1.2.11
+++ w3c-validator.js	26 Aug 2009 18:19:02 -0000	1.1.2.12
@@ -29,6 +29,13 @@
 		W3C.selectTask(W3C.SelectedTask, false);
 		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(){
@@ -270,6 +277,10 @@
 		} else {
 			window.location.hash = hash;
 		}
+	},
+	
+	isUrl: function(url){
+		return	url.test(".*");
 	}
 	
 };
Received on Wednesday, 26 August 2009 18:19:13 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:38 UTC