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

Add xmlNS and xmlnsXlink SVG Attributes #6532

Closed
wants to merge 1 commit into from

Conversation

elrumordelaluz
Copy link

  • Since is a good practice to include all the commonly used namespace declarations when creating <svg>, specially when used as external .svg files to help the users agents recognise the content, it is necessary to have at least those attributes available.
  • Change the xml namespace into the String standard most used.

Specify syntax and change xml namespace based on #6471

- Since is a good practice to include all the commonly used namespace declarations when creating `<svg>`, specially when used as external `.svg` files to help the users agents recognize the content, it is necessary to have at least those attributes available.

- Change the `xml` namespace into the String standard most used.
@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@@ -264,7 +264,9 @@ var ATTRS = {
xlinkType: 'xlink:type',
xmlBase: 'xml:base',
xmlLang: 'xml:lang',
xmlNS: 'xmlns',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears like the capitalization only happens after a :. Is there any reason to break that pattern here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right @iamdustan, capitalisation happens after : or - and this attribute (xmlns) seems to be al little weird (but this is a spec problem). I just followed the point 3 from this comment and seems coherent to me.

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@zpao
Copy link
Member

zpao commented Jul 7, 2016

Sorry for the delay! Going to take #6471 instead. I think the change to the XML namespace is actually incorrect. We use that for the XML attributes which don't get created in the SVG namespace.

@zpao zpao closed this Jul 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants