- From: Robin Berjon via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 23 Jun 2010 14:27:17 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/ReSpec.js/js In directory hutz:/tmp/cvs-serv24790/ReSpec.js/js Modified Files: respec.js Log Message: address Safari bug Index: respec.js =================================================================== RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v retrieving revision 1.119 retrieving revision 1.120 diff -u -d -r1.119 -r1.120 --- respec.js 23 Jun 2010 13:24:35 -0000 1.119 +++ respec.js 23 Jun 2010 14:27:15 -0000 1.120 @@ -324,8 +324,13 @@ if (!cfg.specStatus) cfg.specStatus = "ED"; // the below is experimental, use this if it fails: // cfg.publishDate = new Date(); - if (!cfg.publishDate) cfg.publishDate = this._parseLastModified(document.lastModified); - else cfg.publishDate = this._parseDate(cfg.publishDate); + if (!cfg.publishDate) { + if (document.lastModified) cfg.publishDate = this._parseLastModified(document.lastModified); + else cfg.publishDate = new Date(); + } + else { + cfg.publishDate = this._parseDate(cfg.publishDate); + } if (cfg.previousPublishDate) cfg.previousPublishDate = this._parseDate(cfg.previousPublishDate); if (cfg.previousPublishDate && ! cfg.previousMaturity) error("Previous date is set, but not previousMaturity"); if (cfg.lcEnd) cfg.lcEnd = this._parseDate(cfg.lcEnd);
Received on Wednesday, 23 June 2010 14:27:19 UTC