- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 19 Aug 2010 09:22:59 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec-author-view In directory hutz:/tmp/cvs-serv11080 Modified Files: dfn.js Log Message: fixxed some other goddamn thing I browke Index: dfn.js =================================================================== RCS file: /sources/public/html5/spec-author-view/dfn.js,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- dfn.js 19 Aug 2010 09:19:42 -0000 1.9 +++ dfn.js 19 Aug 2010 09:22:57 -0000 1.10 @@ -43,13 +43,11 @@ dfnClicked = true; } while (node && node.parentNode && (node.nodeType != event.target.ELEMENT_NODE || node.tagName == "A" || !node.hasAttribute("id"))) { - if (node.nodeType == node.ELEMENT_NODE && node.tagName == "DFN") { + if (node.parentNode.nodeType == node.parentNode.ELEMENT_NODE && node.parentNode.tagName == "DFN") { dfnClicked = true; } node = node.parentNode; } - console.log(node); - console.log(dfnClicked); var panel = document.createElement('div'); panel.className = 'dfnPanel'; if (node && dfnClicked) {
Received on Thursday, 19 August 2010 09:23:00 UTC