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

html5/status issue-status.html,1.158,1.159

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Sun, 25 Apr 2010 09:01:36 +0000
To: public-html-commits@w3.org
Message-Id: <E1O5xia-0008VT-TA@lionel-hutz.w3.org>
Update of /sources/public/html5/status
In directory hutz:/tmp/cvs-serv32683

Modified Files:
	issue-status.html 
Log Message:
Script error that was blocking sorting by Notes field (missing nullcheck)

Index: issue-status.html
===================================================================
RCS file: /sources/public/html5/status/issue-status.html,v
retrieving revision 1.158
retrieving revision 1.159
diff -u -d -r1.158 -r1.159
--- issue-status.html	22 Apr 2010 04:12:39 -0000	1.158
+++ issue-status.html	25 Apr 2010 09:01:34 -0000	1.159
@@ -705,14 +705,14 @@
        trs[j].parentNode.removeChild(trs[j]);
      }
      cells.sort(function cmp(a, b) {
-       if (a.firstChild.nodeName == 'TIME')
+       if (a.hasChildNodes() && (a.firstChild.nodeName == 'TIME'))
           a_t1 = a.firstChild.getAttribute('datetime');
        else if (a.hasAttribute('id'))
           a_t1 = a.getAttribute('id');
        else
           a_t1 = a.textContent;
        a_t2 = a.parentNode.cells[0].getAttribute('id');
-       if (b.firstChild.nodeName == 'TIME')
+       if (b.hasChildNodes() && (b.firstChild.nodeName == 'TIME'))
           b_t1 = b.firstChild.getAttribute('datetime');
        else if (b.hasAttribute('id'))
           b_t1 = b.getAttribute('id');
Received on Sunday, 25 April 2010 09:01:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 25 April 2010 09:01:41 GMT