W3C home > Mailing lists > Public > public-dap-commits@w3.org > May 2012

2009/dap/ReSpec.js/js respec.js,1.188,1.189

From: Shane McCarron via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 22 May 2012 15:36:16 +0000
To: public-dap-commits@w3.org
Message-Id: <E1SWr8C-0000z0-64@lionel-hutz.w3.org>
Update of /sources/public/2009/dap/ReSpec.js/js
In directory hutz:/tmp/cvs-serv3728/js

Modified Files:
	respec.js 
Log Message:
Added handling for prevRecHeader and prevRecURI to make previous recommendation references in the document head more specific if needed.
Updated documentation about these and about testsuiteURI and implementationReportURI which were not in the docs.

Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.188
retrieving revision 1.189
diff -u -d -r1.188 -r1.189
--- respec.js	18 May 2012 23:38:40 -0000	1.188
+++ respec.js	22 May 2012 15:36:13 -0000	1.189
@@ -880,8 +880,13 @@
         }
 
         if (this.prevRecShortname) {
-            var prevRecURI = "http://www.w3.org/TR/" + this.prevRecShortname + "/";
-            header += "<dt>Latest recommendation:</dt><dd>" + 
+            var prevRecURI = this.prevRecURI ? this.prevRecURI : "http://www.w3.org/TR/" + this.prevRecShortname + "/";
+            if (this.prevRecHeader) {
+                header += "<dt>" + this.prevRecHeader;
+            } else {
+                header += "<dt>Latest recommendation" ;
+            }
+            header += ":</dt><dd>" + 
                 '<a href="' + prevRecURI + '">' + prevRecURI + "</a></dd>";
         }
 
Received on Tuesday, 22 May 2012 15:36:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:52:31 UTC