Skip to content

Commit

Permalink
fix: JSX type missing charset for meta tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mhevery committed Jun 18, 2021
1 parent 445e6fd commit 1b731cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions generate/tsx/types.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@
if (key === 'HTMLScriptElement') {
interface.attrs.push('events?: string');
}
if (key === 'HTMLMetaElement') {
interface.attrs.push('charset?: string');
}
if (key === 'Element') {
pre.textContent += ` interface JSX${key} extends JSXBase {\n `;
} else {
Expand Down
1 change: 1 addition & 0 deletions src/core/render/jsx/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ declare global {
}

interface JSXHTMLMetaElement extends JSXHTMLElement {
charset?: string;
content?: string;
httpEquiv?: string;
name?: string;
Expand Down

0 comments on commit 1b731cc

Please sign in to comment.