-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] skip custom element check if <svelte:element> uses under svg (#…
…7869) * add test * skip custom element check if svelte element uses under svg
- Loading branch information
1 parent
56bcec5
commit 433460e
Showing
4 changed files
with
26 additions
and
9 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
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
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,10 @@ | ||
export default { | ||
html: '<svg xmlns="http://www.w3.org/2000/svg"><path xmlns="http://www.w3.org/2000/svg"></path></svg>', | ||
|
||
test({ assert, target }) { | ||
const svg = target.querySelector('svg'); | ||
const rect = target.querySelector('path'); | ||
assert.equal(svg.namespaceURI, 'http://www.w3.org/2000/svg'); | ||
assert.equal(rect.namespaceURI, 'http://www.w3.org/2000/svg'); | ||
} | ||
}; |
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 @@ | ||
<svelte:element this="svg" xmlns="http://www.w3.org/2000/svg"> | ||
<svelte:element this="path" xmlns="http://www.w3.org/2000/svg"></svelte:element> | ||
</svelte:element> |