- From: Robin Berjon via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 22 Nov 2011 16:32:47 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/ReSpec.js/js In directory hutz:/tmp/cvs-serv5666 Modified Files: respec.js Log Message: fix weird bug with acronyms Index: respec.js =================================================================== RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v retrieving revision 1.171 retrieving revision 1.172 diff -u -d -r1.171 -r1.172 --- respec.js 21 Sep 2011 10:30:52 -0000 1.171 +++ respec.js 22 Nov 2011 16:32:45 -0000 1.172 @@ -1246,14 +1246,13 @@ } // ABBR else if (abbrMap[matched]) { - if (sn.findNodes("ancestor::abbr", txt)) sn.text(matched, df); + if (sn.findNodes("ancestor::abbr", txt).length) sn.text(matched, df); else sn.element("abbr", { title: abbrMap[matched] }, df, matched); } // ACRO else if (acroMap[matched]) { - if (sn.findNodes("ancestor::acronym", txt)) sn.text(matched, df); + if (sn.findNodes("ancestor::acronym", txt).length) sn.text(matched, df); else sn.element("acronym", { title: acroMap[matched] }, df, matched); - // sn.element("acronym", { title: acroMap[matched] }, df, matched); } // FAIL else {
Received on Tuesday, 22 November 2011 16:33:04 UTC