diff --git a/src/core/dfn-panel.js b/src/core/dfn-panel.js index 358d89ccdd..637fcfc7da 100644 --- a/src/core/dfn-panel.js +++ b/src/core/dfn-panel.js @@ -9,6 +9,28 @@ import { norm } from "./utils.js"; export const name = "core/dfn-panel"; +const IDL_TYPES = new Set([ + "attribute", + "callback", + "callback interface", + "constructor", + "dict-member", + "dictionary", + "enum-value", + "enum", + "exception", + "extended-attribute", + "interface", + "interface mixin", + "method", + "namespace", + "typedef", +]); + +const CDDL_TYPES = new Set(["cddl-type", "cddl-key", "cddl-value"]); + +const ELEMENT_TYPES = new Set(["element", "element-attr", "attr-value"]); + export async function run() { document.head.insertBefore( html`