Closed unlocomqx closed 5 years ago
Thanks for contribution!
Will close for now as we probably won't need the lexer to inject JS into attributes
That's how href="javascript: window"
does it anyway, it simply uses code injection
I lost the exact line of code which handles that, I'll post it later
Edit: Here's the line
JSInXmlLanguagesInjector.class:80
injectJSIntoAttributeValue(registrar, (XmlAttributeValue)host, true);
Unquoted attributes still need to be handled but as you've said injection of some extended SvelteJS is the way to go AFAIK
This should fix https://github.com/tomblachut/svelte-intellij/issues/22 and maybe https://github.com/tomblachut/svelte-intellij/issues/2
And also quoted attributes