diff options
Diffstat (limited to 'src/frontend/h.ts')
-rw-r--r-- | src/frontend/h.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/frontend/h.ts b/src/frontend/h.ts index 3ba0541e8..77ecf857b 100644 --- a/src/frontend/h.ts +++ b/src/frontend/h.ts @@ -3,8 +3,7 @@ export type HChild = string | undefined | (() => string); export type HMXComponent = (props: HProps, ...children: Array<HChild>) => string; export type HTag = string | HMXComponent; -const voidTags = new Set(['area', 'base', 'br', 'col', 'command', 'embed', 'hr', - 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr']); +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>) { yield `<${tag}`; @@ -17,7 +16,7 @@ function* _h(tag: string, attrs: HProps, children: Array<HChild>) { yield '>'; // Void tags have no children. - if(voidTags.has(tag)) { + if (voidTags.has(tag)) { return; } |