Skip to content

Commit

Permalink
Use post-processing to remove unwanted links to HTMLLS
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom committed Aug 28, 2017
1 parent 9bcda21 commit dda86bb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion getusermedia.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// Working around respec using WHATWG HTML links for EventHandler
// See also https://github.com/w3c/respec/issues/1372
function cleanHTMLRef() {
[...document.querySelectorAll("a[href='https://html.spec.whatwg.org/multipage/#eventhandler']")].forEach(a => a.href = "https://www.w3.org/TR/html52/webappapis.html#event-handler");
document.getElementById('bib-HTML').nextElementSibling.remove();
document.getElementById('bib-HTML').remove();
}

var respecConfig = {
// specification status (e.g. WD, LCWD, NOTE, etc.). If in doubt use ED.
specStatus: "ED",
Expand Down Expand Up @@ -107,5 +115,6 @@ var respecConfig = {
img.height = 21;
el.appendChild(img);
});
}
},
postProcess: [cleanHTMLRef]
};

0 comments on commit dda86bb

Please sign in to comment.