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

2009/dap/ReSpec.js/js respec.js,1.150,1.151

From: Robin Berjon via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 23 May 2011 13:29:06 +0000
To: public-dap-commits@w3.org
Message-Id: <E1QOVBy-0006pP-T1@lionel-hutz.w3.org>
Update of /sources/public/2009/dap/ReSpec.js/js
In directory hutz:/tmp/cvs-serv26213/js

Modified Files:
	respec.js 
Log Message:
forgot to also change sotd generation, this addresses that oversight

Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -d -r1.150 -r1.151
--- respec.js	23 May 2011 13:21:12 -0000	1.150
+++ respec.js	23 May 2011 13:29:04 -0000	1.151
@@ -956,6 +956,12 @@
             if (custom) sotd += custom.innerHTML;
             sotd += "</section>";
         }
+        else if (this.specStatus === "finding" || this.specStatus === "draft-finding") {
+            sotd = "<section id='sotd' class='introductory'><h2>Status of This Document</h2>";
+            if (custom) sotd += custom.innerHTML;
+            else sotd += "<p style='color: red'>ReSpec does not support automated SotD generation for TAG findings, please specify one using a &lt;section> element with ID=sotd.</p>";
+            sotd += "</section>";
+        }
         else if (this.isNoTrack) {
             var mc = (this.specStatus == "MO") ? " member-confidential" : "";
             sotd = "<section id='sotd' class='introductory'><h2>Status of This Document</h2>" +
Received on Monday, 23 May 2011 13:29:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 May 2011 13:29:08 GMT