- From: Robin Berjon via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 15 Apr 2010 14:31:47 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/ReSpec.js/js In directory hutz:/tmp/cvs-serv16105/js Modified Files: respec.js Log Message: xmlns and xml:lang now appear for some reason, and aren't allowed by validator Index: respec.js =================================================================== RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v retrieving revision 1.108 retrieving revision 1.109 diff -u -d -r1.108 -r1.109 --- respec.js 13 Apr 2010 11:20:18 -0000 1.108 +++ respec.js 15 Apr 2010 14:31:45 -0000 1.109 @@ -234,7 +234,7 @@ this.saveMenu.parentNode.removeChild(this.saveMenu); }, -toString: function () { + toString: function () { var str = "<!DOCTYPE html"; var dt = document.doctype; if (dt && dt.publicId) { @@ -247,6 +247,8 @@ str += "<html"; var ats = document.documentElement.attributes; for (var i = 0; i < ats.length; i++) { + var an = ats[i].name; + if (an == "xmlns" || an == "xml:lang") continue; str += " " + ats[i].name + "=\"" + this._esc(ats[i].value) + "\""; } str += ">\n";
Received on Thursday, 15 April 2010 14:31:52 UTC