- From: Robin Berjon via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 05 Oct 2009 15:16:47 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/ReSpec.js/js
In directory hutz:/tmp/cvs-serv26768/ReSpec.js/js
Modified Files:
respec.js
Log Message:
added device; several fixes to ReSpec references
Index: respec.js
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/js/respec.js,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- respec.js 30 Sep 2009 15:24:54 -0000 1.44
+++ respec.js 5 Oct 2009 15:16:45 -0000 1.45
@@ -649,12 +649,13 @@
var inf = w.definition(idl);
var df = w.makeMarkup();
idl.parentNode.replaceChild(df, idl);
- infNames.push(inf.id);
+ if (inf.type == "interface" || inf.type == "exception") infNames.push(inf.id);
}
document.normalize();
var ants = document.querySelectorAll("a:not([href])");
for (var i = 0; i < ants.length; i++) {
var ant = ants[i];
+ if (sn.hasClass(ant, "externalDFN")) continue;
var name = ant.textContent;
if (infNames.indexOf(name) >= 0) {
ant.setAttribute("href", "#idl-def-" + name);
@@ -663,7 +664,6 @@
ant.innerHTML = "<code>" + name + "</code>";
}
}
-
},
// --- CLEANUP --------------------------------------------------------------------------------------------
@@ -1049,10 +1049,11 @@
}
else {
cnt = [ sn.text("All instances of the "),
- sn.element("a", {}, null, obj.id),
+ sn.element("code", {}, null, [sn.element("a", {}, null, obj.id)]),
sn.text(" type are defined to also implement the "),
sn.element("a", {}, null, obj.datatype),
sn.text(" interface.")];
+ cnt = [sn.element("p", {}, null, cnt)];
}
return sn.element("div", { "class": "idlImplementsDesc" }, null, cnt);
}
Received on Monday, 5 October 2009 15:16:50 UTC