-
Notifications
You must be signed in to change notification settings - Fork 86
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
Invalid setAttributeNS syntax #6
Comments
What was the point in opening this issue then? |
See my first comment above, the issue is with the setAttributeNS syntax I was just pointing out that this issue does not also apply to getAttributeNS. |
In other words this line of code uses the wrong syntax:
It needs to look like this:
|
The prefix in the qualified name seems to be optional though: http://www.w3.org/TR/1999/REC-xml-names-19990114/#ns-qualnames And when I tested the demo in IE 9 and 10, there was no issue. Have you encountered any issues with the current setAttibuteNS? |
It is reported here that this can cause issues in Chrome. |
Fair enough. I will add the prefix in a moment. |
Btw - since the polyfill only activates in IE leaving it probably won't do any harm, but I guess it's better to err on the side of caution. |
I agree. It can't hurt. I just tested it in IE again to make sure the addition of the prefix won't cause issues. |
You need to specify the qualified name (i.e 'xlink:href' not 'href') when using setAttributeNS.
The text was updated successfully, but these errors were encountered: