diff options
Diffstat (limited to 'src/frontend/h.ts')
-rw-r--r-- | src/frontend/h.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/h.ts b/src/frontend/h.ts index 70965e135..7d26d21d2 100644 --- a/src/frontend/h.ts +++ b/src/frontend/h.ts @@ -6,9 +6,9 @@ export type HTag = string | AstroComponent; const voidTags = new Set(['area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr']); function* _h(tag: string, attrs: HProps, children: Array<HChild>) { - if(tag === '!doctype') { + if (tag === '!doctype') { yield '<!doctype '; - if(attrs) { + if (attrs) { yield Object.keys(attrs).join(' '); } yield '>'; |