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

xmlns should be added as an attribute for consistency #262

Merged
merged 3 commits into from
Jan 25, 2017

Conversation

PaulBGD
Copy link
Member

@PaulBGD PaulBGD commented Jan 23, 2017

While working on #261 I found out that the client code doesn't actually set xmlns as an attribute, resulting in the outputted code to not have a namespace if converted to the string. The server handles this correctly.

@Conduitry
Copy link
Member

I noticed this one when I was looking at the universal-tests branch the yesterday. Is this really necessary? Do we need this set as an attribute, as well as passing it to createElementNS? Does the attribute's presence affect anything besides the serialization and the client-side unit test?

@PaulBGD
Copy link
Member Author

PaulBGD commented Jan 24, 2017 via email

@Rich-Harris
Copy link
Member

Yeah, I think this might be something that was necessary in HTML4, maybe — certainly doesn't have any effect on behaviour, so I thought it best to omit it in the name of saving bytes

@PaulBGD
Copy link
Member Author

PaulBGD commented Jan 24, 2017

@Rich-Harris This is needed for SVGs to work on IE10<, which has about 8% browser marketshare at the moment.

@PaulBGD
Copy link
Member Author

PaulBGD commented Jan 25, 2017

Updated to master.

@Rich-Harris
Copy link
Member

Ah, didn't know that. Worth including in that case — thanks

@Rich-Harris Rich-Harris merged commit 6cde8ff into sveltejs:master Jan 25, 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.

None yet

3 participants