Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backtick string literals not recognized for svg property #1284

Closed
TehShrike opened this issue Mar 28, 2018 · 2 comments
Closed

Backtick string literals not recognized for svg property #1284

TehShrike opened this issue Mar 28, 2018 · 2 comments

Comments

@TehShrike
Copy link
Member

Example:

<g>
	<slot />
</g>
	
<script>
export default {
	namespace: `svg`
}
</script>

Error message:

The 'namespace' property must be a string literal representing a valid namespace

REPL Reproduction: https://svelte.technology/repl?version=1.58.4&gist=f0ea73178d7664c8de272e0efbc3d9de

This affects me because I started using my autoformatting script in Svelte components, and this article seemed reasonable to me: https://ponyfoo.com/articles/template-literals-strictly-better-strings

@TehShrike
Copy link
Member Author

Pull request opened: #1285

@Conduitry
Copy link
Member

Fixed in v.1.58.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants