-
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fix) strip doctype before jsx is generated (#213)
* fix(204): strip doctype before jsx is generated * fix(204): add tests to validate doctype if removed Fixes #204
- Loading branch information
1 parent
5437e5f
commit 3ef9d78
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/svelte2tsx/test/htmlx2jsx/samples/doctype/expected.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<><html lang="en"> | ||
<body> | ||
<h1>Svelte</h1> | ||
</body> | ||
</html></> |
6 changes: 6 additions & 0 deletions
6
packages/svelte2tsx/test/htmlx2jsx/samples/doctype/input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<body> | ||
<h1>Svelte</h1> | ||
</body> | ||
</html> |