- From: Robin Berjon via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 21 Sep 2011 10:30:54 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/ReSpec.js/js
In directory hutz:/tmp/cvs-serv4862/js
Modified Files:
respec.js
Log Message:
remove debug
Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.170
retrieving revision 1.171
diff -u -d -r1.170 -r1.171
--- respec.js 21 Sep 2011 10:29:12 -0000 1.170
+++ respec.js 21 Sep 2011 10:30:52 -0000 1.171
@@ -334,7 +334,6 @@
},
toXML: function () {
- console.log("toXML");
var str = "<?xml version='1.0' encoding='UTF-8'?>\n<!DOCTYPE html";
var dt = document.doctype;
if (dt && dt.publicId) {
@@ -377,7 +376,6 @@
}
}
str += ">\n";
- console.log("start document", str);
// walk the entire DOM tree grabbing nodes and emitting them - possibly modifying them
// if they need the funny closing tag
var pRef = this ;
@@ -385,18 +383,15 @@
"br img input area base basefont col isindex link meta param hr".split(" ").forEach(function (n) {
selfClosing[n] = true;
});
- console.log("selfClosing", selfClosing);
var dumpNode = function (node) {
var out = '' ;
// if the node is the document node.. process the children
if ( node.nodeType == 9 || ( node.nodeType == 1 && node.nodeName.toLowerCase() == 'html' ) ) {
- console.log("processing children of document or root element");
for (var i = 0; i < node.childNodes.length; i++) out += dumpNode(node.childNodes[i]) ;
}
// element
else if (1 === node.nodeType) {
var ename = node.nodeName.toLowerCase() ;
- console.log("processing element", ename);
out += '<' + ename ;
for (var i = 0; i < node.attributes.length; i++) {
var atn = node.attributes[i]
@@ -419,17 +414,14 @@
}
// comments
else if (8 === node.nodeType) {
- console.log("processing comment");
out += "\n<!-- " + node.nodeValue + " -->\n";
}
// text or cdata
else if (3 === node.nodeType || 4 === node.nodeType) {
- console.log("processing text");
out += pRef._esc(node.nodeValue);
}
// we don't handle other types for the time being
else {
- console.log("unknown type", node.nodeType);
warning("Cannot handle serialising nodes of type: " + node.nodeType);
}
return out;
@@ -437,7 +429,6 @@
var node = document.documentElement;
str += dumpNode(document.documentElement) ;
str += "</html>";
- console.log("DONE");
return str;
},
Received on Wednesday, 21 September 2011 10:30:56 UTC