We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It doesn't seem to be possible to add attributes to a custom component's root tag. For example:
<my-tag is="svg" viewbox="0 0 16 9" xmlns="http://www.w3.org/2000/svg"> ... </my-tag>
Then when I use the tag:
<svg is="my-tag"></svg>
In the output, the viewbox and xmlns attributes don't appear.
viewbox
xmlns
This is particularly problematic in SVG where I'd like to accept height/width attributes. Is this possible?
The text was updated successfully, but these errors were encountered:
I can enhance the compiler to match these attributes but for now a quick workaround for it is to set them as expressions:
<my-tag viewbox={'0 0 16 9'} xmlns={'http://www.w3.org/2000/svg'}> ... </my-tag>
Sorry, something went wrong.
Side note: is="svg" doesn't make really sense as attribute
is="svg"
riot/compiler@30a26ea
Fixed in Riot.js@4.6.3 https://plnkr.co/edit/1HMkDgB7YQMn7kh4BaGy?p=preview
GianlucaGuarini
No branches or pull requests
It doesn't seem to be possible to add attributes to a custom component's root tag. For example:
Then when I use the tag:
In the output, the
viewbox
andxmlns
attributes don't appear.This is particularly problematic in SVG where I'd like to accept height/width attributes. Is this possible?
The text was updated successfully, but these errors were encountered: