diff --git a/packages/@lwc/shared/src/aria.ts b/packages/@lwc/shared/src/aria.ts index fcda967298..e971eb3357 100644 --- a/packages/@lwc/shared/src/aria.ts +++ b/packages/@lwc/shared/src/aria.ts @@ -129,6 +129,7 @@ export const ID_REFERENCING_ATTRIBUTES_SET: Set = /*@__PURE__*/ new Set( 'aria-labelledby', 'aria-owns', 'for', + 'popovertarget', ]); export { AriaAttrNameToPropNameMap, AriaPropNameToAttrNameMap }; diff --git a/packages/@lwc/shared/src/html-attributes.ts b/packages/@lwc/shared/src/html-attributes.ts index c35367767d..671996004e 100644 --- a/packages/@lwc/shared/src/html-attributes.ts +++ b/packages/@lwc/shared/src/html-attributes.ts @@ -80,6 +80,7 @@ const GLOBAL_ATTRIBUTE = /*@__PURE__*/ new Set([ 'lang', 'nonce', 'part', + 'popover', 'slot', 'spellcheck', 'style', diff --git a/packages/@lwc/template-compiler/src/parser/utils/html-element-attributes.ts b/packages/@lwc/template-compiler/src/parser/utils/html-element-attributes.ts index 65656a67ff..7362263f34 100644 --- a/packages/@lwc/template-compiler/src/parser/utils/html-element-attributes.ts +++ b/packages/@lwc/template-compiler/src/parser/utils/html-element-attributes.ts @@ -54,6 +54,7 @@ const HTML_ELEMENT_ATTRIBUTE_MAP = { 'itemtype', 'lang', 'nonce', + 'popover', 'slot', 'spellcheck', 'style', @@ -118,6 +119,8 @@ const HTML_ELEMENT_ATTRIBUTE_MAP = { 'formnovalidate', 'formtarget', 'name', + 'popovertarget', + 'popovertargetaction', 'type', 'value', ],