diff --git a/src/browserlib/extract-dfns.mjs b/src/browserlib/extract-dfns.mjs index 8818bdbe..38a3b9fd 100644 --- a/src/browserlib/extract-dfns.mjs +++ b/src/browserlib/extract-dfns.mjs @@ -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'; diff --git a/tests/extract-dfns.js b/tests/extract-dfns.js index c5168b55..e115f474 100644 --- a/tests/extract-dfns.js +++ b/tests/extract-dfns.js @@ -171,15 +171,6 @@ const tests = [ definedIn: "heading"}], spec: "html" }, - {title: "handles HTML spec convention for defining element interfaces", - html: '
interface HTMLHRElement {};
', - changesToBaseDfn: [{id: "htmlhrelement", - access: "public", - type: "interface", - linkingText: ["HTMLHRElement"], - definedIn: "pre"}], - spec: "html" - }, {title: "handles finding IDL type across mixins and partial", html: 'taintEnabled()', changesToBaseDfn: [{id: "dom-navigator-taintenabled",