Skip to content

Commit

Permalink
Update packages/astro/src/runtime/server/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Neal <[email protected]>
  • Loading branch information
natemoo-re and Jonathan Neal authored Feb 4, 2022
1 parent 570147c commit 5ecb303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/runtime/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const voidElementNames = /^(area|base|br|col|command|embed|hr|img|input|keygen|l
const htmlBooleanAttributes = /^(allowfullscreen|async|autofocus|autoplay|controls|default|defer|disabled|disablepictureinpicture|disableremoteplayback|formnovalidate|hidden|loop|nomodule|novalidate|open|playsinline|readonly|required|reversed|scoped|seamless|itemscope)$/i;
const htmlEnumAttributes = /^(contenteditable|draggable|spellcheck|value)$/i;
// Note: SVG is case-sensitive!
const svgEnumAttributes = /^(autoReverse|externalResourcesRequired|focusable|preserveAlpha)$/;
const svgEnumAttributes = /^(autoReverse|externalResourcesRequired|focusable|preserveAlpha)$/i;

// INVESTIGATE:
// 2. Less anys when possible and make it well known when they are needed.
Expand Down

0 comments on commit 5ecb303

Please sign in to comment.