Skip to content

Commit c6e58c0

Browse files
authored
feat(template-compiler): add name attribute for <details> (#5706)
newly added feature: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/details#name Fixes #5705.
1 parent 789846e commit c6e58c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const HTML_ELEMENT_ATTRIBUTE_MAP = {
130130
colgroup: ['align', 'char', 'charoff', 'span', 'valign', 'width'],
131131
data: ['value'],
132132
del: ['cite', 'datetime'],
133-
details: ['open'],
133+
details: ['name', 'open'],
134134
dialog: ['open'],
135135
dir: ['compact'],
136136
div: ['align'],

0 commit comments

Comments
 (0)