W3C home > Mailing lists > Public > public-html-commits@w3.org > January 2010

html5/spec-author-view link-fixup.js,NONE,1.1

From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 01 Jan 2010 03:17:27 +0000
To: public-html-commits@w3.org
Message-Id: <E1NQY11-00017U-C4@lionel-hutz.w3.org>
Update of /sources/public/html5/spec-author-view
In directory hutz:/tmp/cvs-serv4289

Added Files:
	link-fixup.js 
Log Message:
new

--- NEW FILE: link-fixup.js ---
function fixBrokenLink(is404) {
    if (window.location.hash.length < 1 && !is404)
        return;

    var fragid = window.location.hash.substr(1);
    if (fragid && document.getElementById(fragid))
        return;

    var script = document.createElement('script');
    script.src = 'fragment-links.js';
    document.body.appendChild(script);
}
Received on Friday, 1 January 2010 03:17:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 1 January 2010 03:17:28 GMT