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

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

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 21 Apr 2011 04:29:23 +0000
To: public-html-commits@w3.org
Message-Id: <E1QClW7-0003pn-0Z@lionel-hutz.w3.org>
Update of /sources/public/html5/spec-author-view
In directory hutz:/tmp/cvs-serv14725

Modified Files:
	toc.js 
Log Message:
updated

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

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