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

Added standard Methods to SVG Elements #97

Closed
wants to merge 1 commit into from

Conversation

jwestbrook
Copy link
Collaborator

https://prototype.lighthouseapp.com/projects/8886/tickets/1655-include-svgand-others-elements-support

I've added some changes to dom.js to add the standard methods to SVGElements, but didn't know if this was something to address.

I've tested on IE6-IE10 it fails silently on IE6-8 and works on IE9 and 10

also tested on Firefox/Chrome/Safari

If SVGElements should not have these methods or need a smaller set of methods I can do that too

https://prototype.lighthouseapp.com/projects/8886/tickets/1655-include-svgand-others-elements-support
added logic check and then standard Element.methods to SVGElement.prototype. Tested in IE9/IE10/Chrome/Firefox/Safari.
In earlier IE without SVG support it fails silently
@savetheclocktower
Copy link
Collaborator

I'd prefer to keep this as an extension. Because Element.Methods and Element.Methods.Simulated are public, you can write a separate script to mix them into SVGElement.prototype with only slightly more effort than in this PR.

@jwestbrook
Copy link
Collaborator Author

Sounds good I'll put something together and document it

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

2 participants