W3C home > Mailing lists > Public > public-html-commits@w3.org > October 2011

html5/spec-author-view fragment-links.js,1.375,1.376

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 24 Oct 2011 10:57:29 +0000
To: public-html-commits@w3.org
Message-Id: <E1RIIDh-00080s-PS@lionel-hutz.w3.org>
Update of /sources/public/html5/spec-author-view
In directory hutz:/tmp/cvs-serv30748

Modified Files:
	fragment-links.js 
Log Message:
typo (whatwg r6730)

[updated by splitter]


Index: fragment-links.js
===================================================================
RCS file: /sources/public/html5/spec-author-view/fragment-links.js,v
retrieving revision 1.375
retrieving revision 1.376
diff -u -d -r1.375 -r1.376
--- fragment-links.js	21 Oct 2011 21:57:27 -0000	1.375
+++ fragment-links.js	24 Oct 2011 10:57:23 -0000	1.376
@@ -2,10 +2,4 @@
 
 var fragid = window.location.hash.substr(1);
 if (!fragid) { /* handle section-foo.html links from the old multipage version, and broken foo.html from the new version */
-    var m = window.location.pathname.match(/\/(?:section-)?([\w\-]+)\.html/);
-    if (m) fragid = m[1];
-}
-var page = fragment_links[fragid];
-if (page) {
-    window.location.replace(page+'.html#'+fragid);
-}
+ 
\ No newline at end of file
Received on Monday, 24 October 2011 10:57:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 24 October 2011 10:57:33 GMT