Skip to content

Commit 01407ca

Browse files
authored
feat: acknowledge the existence of popover and related attributes (#5357)
1 parent d2c5d22 commit 01407ca

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

packages/@lwc/shared/src/aria.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export const ID_REFERENCING_ATTRIBUTES_SET: Set<string> = /*@__PURE__*/ new Set(
129129
'aria-labelledby',
130130
'aria-owns',
131131
'for',
132+
'popovertarget',
132133
]);
133134

134135
export { AriaAttrNameToPropNameMap, AriaPropNameToAttrNameMap };

packages/@lwc/shared/src/html-attributes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ const GLOBAL_ATTRIBUTE = /*@__PURE__*/ new Set([
8080
'lang',
8181
'nonce',
8282
'part',
83+
'popover',
8384
'slot',
8485
'spellcheck',
8586
'style',

packages/@lwc/template-compiler/src/parser/utils/html-element-attributes.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const HTML_ELEMENT_ATTRIBUTE_MAP = {
5454
'itemtype',
5555
'lang',
5656
'nonce',
57+
'popover',
5758
'slot',
5859
'spellcheck',
5960
'style',
@@ -118,6 +119,8 @@ const HTML_ELEMENT_ATTRIBUTE_MAP = {
118119
'formnovalidate',
119120
'formtarget',
120121
'name',
122+
'popovertarget',
123+
'popovertargetaction',
121124
'type',
122125
'value',
123126
],

0 commit comments

Comments
 (0)