Skip to content

Commit

Permalink
Remove code needed to annotate idl definitions in HTML spec
Browse files Browse the repository at this point in the history
Done upstream in whatwg/html#5957
  • Loading branch information
dontcallmedom committed Jun 8, 2021
1 parent 9486eb6 commit 6af76f2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/browserlib/extract-dfns.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -383,15 +383,6 @@ function preProcessHTML() {
}
let m;

if (el.closest("code.idl")) {
// we look if that matches a top-level idl name
let idlTerm = idlTree.find(item => item.name === el.textContent);
if (idlTerm) {
// we split at space to cater for "interface mixin"
el.dataset.dfnType = idlTerm.type.split(' ')[0];
return;
}
}
if ((m = el.id.match(/^attr-([^-]+)-([^-]+)$/))) {
// e.g. attr-ul-type
el.dataset.dfnType = 'element-attr';
Expand Down

0 comments on commit 6af76f2

Please sign in to comment.