2009/dap/ReSpec.js/js respec.js,1.134,1.135

Update of /sources/public/2009/dap/ReSpec.js/js
In directory hutz:/tmp/cvs-serv27448

Modified Files:
	respec.js 
Log Message:
Simple change to wrap 'a' elements in a reference within a 'cite' element in order to conform to the requirements in http://www.w3.org/2001/06/manual/#citation

Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.134
retrieving revision 1.135
diff -u -d -r1.134 -r1.135
--- respec.js	27 Jul 2010 21:24:11 -0000	1.134
+++ respec.js	2 Aug 2010 20:56:58 -0000	1.135
@@ -1156,7 +1156,9 @@
                             if (norm) norms[ref] = true;
                             else      informs[ref] = true;
                             sn.text("[", df);
-                            sn.element("a", { "class": "bibref", rel: "biblioentry", href: "#bib-" + ref }, df, ref);
+                            // embed a cite with an a inside of it
+                            var el = sn.element("cite", {} , df);
+                            sn.element("a", { "class": "bibref", rel: "biblioentry", href: "#bib-" + ref }, el, ref);
                             sn.text("]", df);
                         }
                         else {

Received on Monday, 2 August 2010 20:57:01 UTC