- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 10 Aug 2010 13:51:13 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/markup/js
In directory hutz:/tmp/cvs-serv9081/js
Modified Files:
dfn.js jump-indexes.js
Log Message:
build tinkering: only put IDs on links to DFNs, and make sensible IDs (not random-number-like generated ones)
Index: jump-indexes.js
===================================================================
RCS file: /sources/public/html5/markup/js/jump-indexes.js,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- jump-indexes.js 9 Aug 2010 08:21:44 -0000 1.10
+++ jump-indexes.js 10 Aug 2010 13:51:11 -0000 1.11
@@ -19,7 +19,7 @@
["strong", "style", "sub", "summary", "sup"],
["table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr"],
["ul", "var", "video", "wbr"],
- ["global-attributes","index","toc","toggle"]
+ ["global-attributes","index-of-terms","toc","toggle"]
]
function showjumpIndexA(event) {
@@ -61,7 +61,9 @@
itemName = "Overview.html";
if (window.location.hash) {
var fragID = window.location.hash.substring(1,window.location.hash.length);
- if (fragID == "elements") {
+ if (fragID == "index-of-terms") {
+ itemName = "index-of-terms.html";
+ } else if (fragID == "elements") {
itemName = "elements.html";
} else {
var pageNode = document.evaluate("//*[@id = '" + fragID +"']/ancestor-or-self::div[contains(@class,'section')][count(ancestor::div[contains(@class,'section')])=0 and not(@id='elements')]|//*[@id = '" + fragID + "']/ancestor-or-self::div[contains(@class,'section')][child::h2[@class='element-head']]",
@@ -81,6 +83,9 @@
itemName = 'global attributes';
p.setAttribute("class", "jumpIndexA-other");
}
+ if (itemName == 'index-of-terms') {
+ itemName = 'index of terms';
+ }
a.textContent = itemName;
p.appendChild(a);
p.appendChild(separator);
Index: dfn.js
===================================================================
RCS file: /sources/public/html5/markup/js/dfn.js,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- dfn.js 9 Aug 2010 01:03:42 -0000 1.9
+++ dfn.js 10 Aug 2010 13:51:10 -0000 1.10
@@ -2,7 +2,7 @@
// No copyright is asserted on that file nor on this modified version.
var dfnLinks;
-var dfnLinksFile = 'index.xhtml';
+var dfnLinksFile = 'index-of-terms.xhtml';
function initDfn() {
if (document.body.className.indexOf("chunk") != -1) {
var request = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP");
@@ -15,7 +15,7 @@
request.send(null);
} else {
dfnLinks = document.implementation.createDocument('http://www.w3.org/1999/xhtml', 'html', null);
- var index = dfnLinks.importNode(document.getElementById("index"), true);
+ var index = dfnLinks.importNode(document.getElementById("index-of-terms"), true);
dfnLinks.documentElement.appendChild(index);
}
document.body.className += " dfnEnabled";
Received on Tuesday, 10 August 2010 13:51:14 UTC