-
-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(fix) (svelte2tsx) also transform element true attribute to lowercase (…
…#511) * also transform element true attribute to lowercase ex: <input readonly> * don't transform if attribute is transformed from directive and namespace
- Loading branch information
1 parent
41827f7
commit 048e467
Showing
3 changed files
with
21 additions
and
2 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
3 changes: 3 additions & 0 deletions
3
packages/svelte2tsx/test/htmlx2jsx/samples/attribute-element/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,3 @@ | ||
<><div contenteditable></div> | ||
<div contenteditable={contentEditable}></div> | ||
<div contenteditable={contenteditable}></div></> |
3 changes: 3 additions & 0 deletions
3
packages/svelte2tsx/test/htmlx2jsx/samples/attribute-element/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,3 @@ | ||
<div contentEditable></div> | ||
<div {contentEditable}></div> | ||
<div contentEditable={contenteditable}></div> |