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

Fix SVG <text> tags self closing #29

Merged
merged 1 commit into from
Feb 23, 2017
Merged

Conversation

Widdershin
Copy link
Contributor

@Widdershin Widdershin commented Feb 22, 2017

Previously, h('svg', [ h('text', 'Hello world') ]) would produce <svg><text /></svg>.

This change means it correctly produces <svg><text>Hello world</text></svg>.

😺

I added test coverage and verified that it passes with the change in place and fails without.

Previously, `h('svg', [ h('text', 'Hello world') ])` would produce `<svg><text /></svg>`

This change means it correctly produces `<svg><text>Hello world</text></svg>`
@acstll
Copy link
Member

acstll commented Feb 22, 2017

Brilliant, I'll merge and release ASAP. Thank you for the tests.

@acstll acstll merged commit 5693216 into snabbdom:master Feb 23, 2017
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

Successfully merging this pull request may close these issues.

2 participants