Skip to content

Commit 8a5d853

Browse files
committed
expanded criteria for isHtmlAttribute
1 parent f66e77a commit 8a5d853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/tags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function isTransition(name) {
127127
}
128128

129129
function isHtmlAttribute(value) {
130-
return ["id", "class"].includes(value) || value.startsWith("data-");
130+
return ["id", "class", "role"].includes(value) || value.startsWith("data-") || value.startsWith("aria-");
131131
}
132132

133133
export { isHtmlTag, isHtmlAttribute, isTransition };

0 commit comments

Comments
 (0)