- From: Robin Berjon via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 28 Jan 2010 16:01:45 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/ReSpec.js/js
In directory hutz:/tmp/cvs-serv26360/ReSpec.js/js
Modified Files:
respec.js
Log Message:
no need to overdo id generation
Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- respec.js 28 Jan 2010 15:54:52 -0000 1.79
+++ respec.js 28 Jan 2010 16:01:43 -0000 1.80
@@ -633,7 +633,7 @@
var h = heads[i];
if (h.hasAttribute("id")) continue;
var par = h.parentNode;
- if (par.localName == "div" && par.hasAttribute("id") && !h.previousElementSibling) continue;
+ if (par.localName.toLowerCase() == "div" && par.hasAttribute("id") && !h.previousElementSibling) continue;
sn.makeID(h, null);
}
},
Received on Thursday, 28 January 2010 16:01:47 UTC