Skip to content

Commit 3154737

Browse files
committed
feat: add style attribute to HTML native attribute
1 parent f66e77a commit 3154737

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", "style"].includes(value) || value.startsWith("data-");
131131
}
132132

133133
export { isHtmlTag, isHtmlAttribute, isTransition };

0 commit comments

Comments
 (0)