diff --git a/src/generators/dom/visitors/Element/Element.ts b/src/generators/dom/visitors/Element/Element.ts index 49eeab2bef..2ea66f5799 100644 --- a/src/generators/dom/visitors/Element/Element.ts +++ b/src/generators/dom/visitors/Element/Element.ts @@ -257,6 +257,6 @@ function getClaimStatement( } function quoteProp(name: string) { - if (/[^a-zA-Z_$0-9]/.test(name)) return `"${name}"`; + if (/[^a-zA-Z_$0-9]/.test(name) || name === 'class') return `"${name}"`; return name; }