- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 19 Aug 2010 12:30:56 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec-author-view In directory hutz:/tmp/cvs-serv2817 Modified Files: dfn.js Log Message: handle a particular corner case Index: dfn.js =================================================================== RCS file: /sources/public/html5/spec-author-view/dfn.js,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- dfn.js 19 Aug 2010 09:53:50 -0000 1.13 +++ dfn.js 19 Aug 2010 12:30:54 -0000 1.14 @@ -70,12 +70,17 @@ initDfn(node, panelDiv); } else { var targetNode = document.getElementById(node.id+"_index"); - panelDiv.innerHTML = targetNode.innerHTML; - panelDiv.removeChild(panelDiv.firstChild); + if (targetNode) { + panelDiv.innerHTML = targetNode.innerHTML; + panelDiv.removeChild(panelDiv.firstChild); + } else { + console.log(node); + return -1; + } } panel.appendChild(panelDiv); } else { - console.log(node) + console.log(node); return -1; } node.appendChild(panel);
Received on Thursday, 19 August 2010 12:30:57 UTC