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

SVG width={{width}} generates error to console #25

Open
dy opened this issue Dec 4, 2020 · 1 comment
Open

SVG width={{width}} generates error to console #25

dy opened this issue Dec 4, 2020 · 1 comment

Comments

@dy
Copy link
Contributor

dy commented Dec 4, 2020

const svgtpl = document.createElement('template')
svgtpl.innerHTML = '<svg width="{{w}}"></svg>'
let tpl = new TemplateInstance(svgtpl, {w:10})

This generates error in console:

Error: <svg> attribute width: Unexpected end of attribute. Expected length, "".

Some attributes need other than empty string default values.

@keithamus
Copy link
Member

It would be worth presenting these issues to the upstream proposal; as we intend to align closely to that and the current spec does not propose how these situations are handled.

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