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

perl/modules/W3C/LinkChecker/bin checklink,4.162,4.163

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 05 Aug 2009 20:32:17 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MYn9l-0001gx-SN@lionel-hutz.w3.org>
Update of /sources/public/perl/modules/W3C/LinkChecker/bin
In directory hutz:/tmp/cvs-serv6489

Modified Files:
	checklink 
Log Message:
Fix some jslint javascript warnings.

Index: checklink
===================================================================
RCS file: /sources/public/perl/modules/W3C/LinkChecker/bin/checklink,v
retrieving revision 4.162
retrieving revision 4.163
diff -u -d -r4.162 -r4.163
--- checklink	4 Jul 2009 03:45:57 -0000	4.162
+++ checklink	5 Aug 2009 20:32:15 -0000	4.163
@@ -343,18 +343,18 @@
 <meta name="generator" content="%s" />
 <link rel="stylesheet" type="text/css" href="%s" />
 <script type="text/javascript">
+function scroll_bottom(progress_pre_id) {
+var progressPre = document.getElementById(progress_pre_id);
+progressPre.scrollTop = progressPre.scrollHeight;
+}
 function show_progress(progress_text, progress_head_id, progress_pre_id) {
 var progressHead = document.getElementById(progress_head_id);
 var txt = document.createTextNode(progress_text);
-oChild=progressHead.childNodes[1];
-oNewChild=document.createElement("span");
+var oChild=progressHead.childNodes[1];
+var oNewChild=document.createElement("span");
 oNewChild.appendChild(txt);
 progressHead.replaceChild(oNewChild, oChild);
 scroll_bottom(progress_pre_id);
-};
-function scroll_bottom(progress_pre_id) {
-var progressPre = document.getElementById(progress_pre_id);
-progressPre.scrollTop = progressPre.scrollHeight;
 }</script>
 EOF
 
@@ -2454,12 +2454,14 @@
     var ok = false;
     if (u.value.length > 0) {
       if (u.value.search) {
-        ok = (u.value.search(/\S/) != -1);
+        ok = (u.value.search(/\S/) !== -1);
       } else {
         ok = true;
       }
     }
-    if (! ok) u.focus();
+    if (! ok) {
+      u.focus();
+    }
     return ok;
   }
   return true;
Received on Wednesday, 5 August 2009 20:32:28 UTC

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