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 <path d="M {{x}} {{y}}"...> throws error #26

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

SVG <path d="M {{x}} {{y}}"...> throws error #26

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><path d="M {{x}} 0"></path></svg>'
let tpl = new TemplateInstance(svgtpl, {x:0})

Throws

Error: <path> attribute d: Unexpected end of attribute. Expected number, "M ".

By nature similar to #25

@dy dy changed the title SVG path parts throw error SVG <path d="M {{x}} {{y}}"...> throws error Dec 4, 2020
@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