diff --git a/types/Html.d.ts b/types/Html.d.ts index bc9b783..c3ad792 100644 --- a/types/Html.d.ts +++ b/types/Html.d.ts @@ -458,59 +458,8 @@ declare namespace TyperApp { */ } - interface HTMLAttributes extends DOMAttributes { - // Standard HTML Attributes - accessKey?: string; - class?: Class; - contentEditable?: boolean; - contextMenu?: string; - dir?: string; - draggable?: boolean; - hidden?: boolean; - id?: string; - lang?: string; - placeholder?: string; - slot?: string; - spellCheck?: boolean; - style?: CSSProperties; - tabIndex?: number; - title?: string; - - // Unknown - inputMode?: string; - is?: string; - radioGroup?: string; // , - - // WAI-ARIA - role?: string; - - // RDFa Attributes - about?: string; - datatype?: string; - inlist?: any; - prefix?: string; - property?: string; - resource?: string; - typeof?: string; - vocab?: string; - - // Non-standard Attributes - autoCapitalize?: string; - autoCorrect?: string; - autoSave?: string; - color?: string; - itemProp?: string; - itemScope?: boolean; - itemType?: string; - itemID?: string; - itemRef?: string; - results?: number; - security?: string; - unselectable?: 'on' | 'off'; - } - // All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/ - interface HTMLAttributes extends DOMAttributes { + interface AriaAttributes { /** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */ 'aria-activedescendant'?: string; /** Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. */ @@ -697,6 +646,57 @@ declare namespace TyperApp { 'aria-valuetext'?: string; } + interface HTMLAttributes extends AriaAttributes, DOMAttributes { + // Standard HTML Attributes + accessKey?: string; + class?: Class; + contentEditable?: boolean; + contextMenu?: string; + dir?: string; + draggable?: boolean; + hidden?: boolean; + id?: string; + lang?: string; + placeholder?: string; + slot?: string; + spellCheck?: boolean; + style?: CSSProperties; + tabIndex?: number; + title?: string; + + // Unknown + inputMode?: string; + is?: string; + radioGroup?: string; // , + + // WAI-ARIA + role?: string; + + // RDFa Attributes + about?: string; + datatype?: string; + inlist?: any; + prefix?: string; + property?: string; + resource?: string; + typeof?: string; + vocab?: string; + + // Non-standard Attributes + autoCapitalize?: string; + autoCorrect?: string; + autoSave?: string; + color?: string; + itemProp?: string; + itemScope?: boolean; + itemType?: string; + itemID?: string; + itemRef?: string; + results?: number; + security?: string; + unselectable?: 'on' | 'off'; + } + interface AllHTMLAttributes extends HTMLAttributes { // Standard HTML Attributes accept?: string; @@ -1210,7 +1210,7 @@ declare namespace TyperApp { // - "number | string" // - "string" // - union of string literals - interface SVGAttributes extends DOMAttributes { + interface SVGAttributes extends AriaAttributes, DOMAttributes { // Attributes which also defined in HTMLAttributes // See comment in SVGDOMPropertyConfig.js class?: Class;