W3C home > Mailing lists > Public > public-html-commits@w3.org > April 2011

html5/spec-author-view toc.js,1.3,1.4

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 21 Apr 2011 04:34:48 +0000
To: public-html-commits@w3.org
Message-Id: <E1QClbM-0003xc-Py@lionel-hutz.w3.org>
Update of /sources/public/html5/spec-author-view
In directory hutz:/tmp/cvs-serv15195

Modified Files:
	toc.js 
Log Message:
updated

Index: toc.js
===================================================================
RCS file: /sources/public/html5/spec-author-view/toc.js,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- toc.js	21 Apr 2011 04:29:20 -0000	1.3
+++ toc.js	21 Apr 2011 04:34:46 -0000	1.4
@@ -2,9 +2,8 @@
   var li = toc.firstChild;
   var allmatched = true;
   while (li) {
-    if (li.nodeType == Node.ELEMENT_NODE && li.hasChildNodes &&
-        li.firstChild != null &&
-        li.firstChild.nodeType == Node.ELEMENT_NODE) {
+    if (li.nodeType == Node.ELEMENT_NODE &&
+        li.firstChild != null) {
       var id = li.firstChild.hash.substr(1);
       var target = document.getElementById(id);
       var matched = false;
Received on Thursday, 21 April 2011 04:34:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 21 April 2011 04:34:53 GMT