Skip to content

Commit 0a7b09c

Browse files
aminesbdevJeanMeche
authored andcommitted
fix(compiler): add missing Baseline DOM properties to the schema
Binding to a DOM property that is missing from the schema fails with NG8002, even when the property is Baseline. This adds the Baseline properties that were never added to the schema: `command` and `commandForElement` on `button` (invoker commands), `name` on `details`, `autocorrect`, `webkitdirectory` on `input`, `fetchPriority` on `img`, `link` and `script`, `rel` on `form` and SVG `a`, `crossOrigin` on SVG `image`, and the `aria-braillelabel`/`aria-brailleroledescription` attributes. The `q`/`blockquote` entry also listed `cite` as an element instead of a property, so `[cite]` never compiled on those elements. It also adds the missing events (`animationcancel`, `beforeinput`, `beforematch`, `beforetoggle`, `command`, the composition events, `contentvisibilityautostatechange`, `focusin`, `focusout` and `scrollend`) so the language service can suggest them.
1 parent 22fb98a commit 0a7b09c

3 files changed

Lines changed: 57 additions & 19 deletions

File tree

‎packages/compiler/src/schema/dom_element_schema_registry.ts‎

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ function normalizeTagName(tagName: string): string {
8282
// =================================================================================================
8383

8484
export const SCHEMA: string[] = [
85-
'[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot' +
85+
'[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,ariaBrailleLabel,ariaBrailleRoleDescription,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot' +
8686
/* added manually to avoid breaking changes */
8787
',*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored',
88-
'[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,popover,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy',
88+
'[HTMLElement]^[Element]|accessKey,autocapitalize,autocorrect,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationcancel,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*command,*compositionend,*compositionstart,*compositionupdate,*contentvisibilityautostatechange,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*focusin,*focusout,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,popover,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy',
8989
'abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy',
9090
'media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume',
9191
':svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex',
@@ -102,20 +102,20 @@ export const SCHEMA: string[] = [
102102
'br^[HTMLElement]|clear',
103103
'base^[HTMLElement]|href,target',
104104
'body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink',
105-
'button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,popoverTargetAction,%popoverTargetElement,type,value',
105+
'button^[HTMLElement]|command,%commandForElement,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,popoverTargetAction,%popoverTargetElement,type,value',
106106
'canvas^[HTMLElement]|#height,#width',
107107
'content^[HTMLElement]|select',
108108
'dl^[HTMLElement]|!compact',
109109
'data^[HTMLElement]|value',
110110
'datalist^[HTMLElement]|',
111-
'details^[HTMLElement]|!open',
111+
'details^[HTMLElement]|name,!open',
112112
'dialog^[HTMLElement]|!open,returnValue',
113113
'dir^[HTMLElement]|!compact',
114114
'div^[HTMLElement]|align',
115115
'embed^[HTMLElement]|align,height,name,src,type,width',
116116
'fieldset^[HTMLElement]|!disabled,name',
117117
'font^[HTMLElement]|color,face,size',
118-
'form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target',
118+
'form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,rel,target',
119119
'frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src',
120120
'frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows',
121121
'geolocation^[HTMLElement]|accuracymode,!autolocate,*location,*promptaction,*promptdismiss,*validationstatuschange,!watch',
@@ -124,12 +124,12 @@ export const SCHEMA: string[] = [
124124
'h1,h2,h3,h4,h5,h6^[HTMLElement]|align',
125125
'html^[HTMLElement]|version',
126126
'iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,!credentialless,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width',
127-
'img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width',
128-
'input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,popoverTargetAction,%popoverTargetElement,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width',
127+
'img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,fetchPriority,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width',
128+
'input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,popoverTargetAction,%popoverTargetElement,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,!webkitdirectory,#width',
129129
'li^[HTMLElement]|type,#value',
130130
'label^[HTMLElement]|htmlFor',
131131
'legend^[HTMLElement]|align',
132-
'link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type',
132+
'link^[HTMLElement]|as,charset,%crossOrigin,!disabled,fetchPriority,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type',
133133
'map^[HTMLElement]|name',
134134
'marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width',
135135
'menu^[HTMLElement]|!compact',
@@ -146,8 +146,8 @@ export const SCHEMA: string[] = [
146146
'picture^[HTMLElement]|',
147147
'pre^[HTMLElement]|#width',
148148
'progress^[HTMLElement]|#max,#value',
149-
'q,blockquote,cite^[HTMLElement]|',
150-
'script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type',
149+
'q,blockquote^[HTMLElement]|cite',
150+
'script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,fetchPriority,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type',
151151
'select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value',
152152
'selectedcontent^[HTMLElement]|',
153153
'slot^[HTMLElement]|name',
@@ -169,7 +169,7 @@ export const SCHEMA: string[] = [
169169
'ul^[HTMLElement]|!compact,type',
170170
'unknown^[HTMLElement]|',
171171
'video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width',
172-
':svg:a^:svg:graphics|',
172+
':svg:a^:svg:graphics|rel',
173173
':svg:animate^:svg:animation|',
174174
':svg:animateMotion^:svg:animation|',
175175
':svg:animateTransform^:svg:animation|',
@@ -207,7 +207,7 @@ export const SCHEMA: string[] = [
207207
':svg:filter^:svg:|',
208208
':svg:foreignObject^:svg:graphics|',
209209
':svg:g^:svg:graphics|',
210-
':svg:image^:svg:graphics|decoding',
210+
':svg:image^:svg:graphics|%crossOrigin,decoding',
211211
':svg:line^:svg:geometry|',
212212
':svg:linearGradient^:svg:gradient|',
213213
':svg:mpath^:svg:|',
@@ -274,6 +274,7 @@ export const SCHEMA: string[] = [
274274
export const _ATTR_TO_PROP = new Map(
275275
Object.entries({
276276
'class': 'className',
277+
'fetchpriority': 'fetchPriority',
277278
'for': 'htmlFor',
278279
'formaction': 'formAction',
279280
'innerHtml': 'innerHTML',
@@ -284,6 +285,8 @@ export const _ATTR_TO_PROP = new Map(
284285
'aria-activedescendant': 'ariaActiveDescendantElement',
285286
'aria-atomic': 'ariaAtomic',
286287
'aria-autocomplete': 'ariaAutoComplete',
288+
'aria-braillelabel': 'ariaBrailleLabel',
289+
'aria-brailleroledescription': 'ariaBrailleRoleDescription',
287290
'aria-busy': 'ariaBusy',
288291
'aria-checked': 'ariaChecked',
289292
'aria-colcount': 'ariaColCount',

‎packages/compiler/test/schema/dom_element_schema_registry_spec.ts‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ describe('DOMElementSchema', () => {
2525
it('should detect elements', () => {
2626
expect(registry.hasElement('div', [])).toBeTruthy();
2727
expect(registry.hasElement('b', [])).toBeTruthy();
28+
expect(registry.hasElement('cite', [])).toBeTruthy();
2829
expect(registry.hasElement('ng-container', [])).toBeTruthy();
2930
expect(registry.hasElement('ng-content', [])).toBeTruthy();
3031

@@ -49,6 +50,22 @@ describe('DOMElementSchema', () => {
4950
expect(registry.hasProperty('button', 'popoverTargetElement', [])).toBeTruthy();
5051
expect(registry.hasProperty('input', 'popoverTargetAction', [])).toBeTruthy();
5152
expect(registry.hasProperty('input', 'popoverTargetElement', [])).toBeTruthy();
53+
expect(registry.hasProperty('div', 'autocorrect', [])).toBeTruthy();
54+
expect(registry.hasProperty('div', 'ariaBrailleLabel', [])).toBeTruthy();
55+
expect(registry.hasProperty('div', 'ariaBrailleRoleDescription', [])).toBeTruthy();
56+
expect(registry.hasProperty('button', 'command', [])).toBeTruthy();
57+
expect(registry.hasProperty('button', 'commandForElement', [])).toBeTruthy();
58+
expect(registry.hasProperty('details', 'name', [])).toBeTruthy();
59+
expect(registry.hasProperty('input', 'webkitdirectory', [])).toBeTruthy();
60+
expect(registry.hasProperty('form', 'rel', [])).toBeTruthy();
61+
expect(registry.hasProperty('img', 'fetchPriority', [])).toBeTruthy();
62+
expect(registry.hasProperty('link', 'fetchPriority', [])).toBeTruthy();
63+
expect(registry.hasProperty('script', 'fetchPriority', [])).toBeTruthy();
64+
expect(registry.hasProperty(':svg:a', 'rel', [])).toBeTruthy();
65+
expect(registry.hasProperty(':svg:image', 'crossOrigin', [])).toBeTruthy();
66+
expect(registry.hasProperty('blockquote', 'cite', [])).toBeTruthy();
67+
expect(registry.hasProperty('q', 'cite', [])).toBeTruthy();
68+
expect(registry.hasProperty('cite', 'cite', [])).toBeFalsy();
5269
expect(registry.hasProperty('h1', 'align', [])).toBeTruthy();
5370
expect(registry.hasProperty('h2', 'align', [])).toBeTruthy();
5471
expect(registry.hasProperty('h3', 'align', [])).toBeTruthy();
@@ -83,6 +100,22 @@ describe('DOMElementSchema', () => {
83100
expect(registry.hasProperty('video', 'click', [])).toBeFalsy();
84101
});
85102

103+
it('should detect events on regular elements', () => {
104+
const events = registry.allKnownEventsOfElement('div');
105+
expect(events).toContain('animationcancel');
106+
expect(events).toContain('beforeinput');
107+
expect(events).toContain('beforematch');
108+
expect(events).toContain('beforetoggle');
109+
expect(events).toContain('command');
110+
expect(events).toContain('compositionend');
111+
expect(events).toContain('compositionstart');
112+
expect(events).toContain('compositionupdate');
113+
expect(events).toContain('contentvisibilityautostatechange');
114+
expect(events).toContain('focusin');
115+
expect(events).toContain('focusout');
116+
expect(events).toContain('scrollend');
117+
});
118+
86119
it('should treat custom elements as an unknown element by default', () => {
87120
expect(registry.hasProperty('custom-like', 'unknown', [])).toBe(false);
88121
expect(registry.hasProperty('custom-like', 'className', [])).toBeTruthy();
@@ -106,6 +139,10 @@ describe('DOMElementSchema', () => {
106139

107140
it('should re-map property names that are specified in DOM facade', () => {
108141
expect(registry.getMappedPropName('readonly')).toEqual('readOnly');
142+
expect(registry.getMappedPropName('aria-braillelabel')).toEqual('ariaBrailleLabel');
143+
expect(registry.getMappedPropName('aria-brailleroledescription')).toEqual(
144+
'ariaBrailleRoleDescription',
145+
);
109146
});
110147

111148
it('should not re-map property names that are not specified in DOM facade', () => {

‎packages/language-service/src/attribute_completions.ts‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import {
2222
} from '@angular/compiler-cli';
2323
import ts from 'typescript';
2424

25-
import {DisplayInfoKind, unsafeCastDisplayInfoKindToScriptElementKind} from './utils/display_parts';
2625
import {makeElementSelector} from './utils';
26+
import {DisplayInfoKind, unsafeCastDisplayInfoKindToScriptElementKind} from './utils/display_parts';
2727
import {getClassDeclarationFromSymbolReference} from './utils/ts_utils';
2828

2929
/**
@@ -415,12 +415,10 @@ export function buildAttributeCompletionTable(
415415
}
416416
}
417417
for (const event of checker.getPotentialDomEvents(element.name)) {
418-
if (!table.has(event)) {
419-
table.set(event, {
420-
kind: AttributeCompletionKind.DomEvent,
421-
eventName: event,
422-
});
423-
}
418+
table.set(event, {
419+
kind: AttributeCompletionKind.DomEvent,
420+
eventName: event,
421+
});
424422
}
425423
}
426424
return table;

0 commit comments

Comments
 (0)