Open micha149 opened 11 years ago
+1 This looks good! Would be really good to get this in.
It would be also great to have a bunch of unit tests to ensure, that fixes works correctly in all expected situations. I have used the jquery test suite to ensure that jquery core is not affected by the overrides of jquery.svgdom plugin. The functionality of jquery.svgdom could only be tested through our application, but it uses only a few features of the jquery.svg plugin.
Hey hey, man. Very thanks. Past month I've tested the svgdom plugin but it broke the twitter bootstrap, so I almost discarted it. Today, googling for "addclass jquery.svgdom problem" I've found this post. Starting the tests. If I get good news I'l bring it to you. Thanks again. :)
+1 Great. I am testing to make sure that it is OK for me.
tested with jquery 1.9.0, still good. thanks!
one catch, but I'm not sure if that is in your patch or somewhere else in svgdom - in explorer7, jquery itself seemed to 'break without errors' - a lot of selectors werent working anymore. explorer8 was still fine.
since it wont work in ie<9 anyway, i'm including the scripts within (yuk) IE conditional comments.
Hmm, does not work for me with jquery 1.9.1 since there is no $.browser anymore... (but here I am talking about jquery.svg.js and not jquery.svgdom.js, my bad) I'll fork the project and try to fix it...
Hmmm, this problem is already mentioned in issue #9 so I'll continue over there!
Thank you, @micha149! @kbwood, please merge this! :)
@kbwood should just give @micha149 push access if he's going to ignore pull requests.
Thanks @micha149 for the patch and @mar10 for the fork.
It seems a bunch of functions disappeared in the patch, especially the load function (I use it for "remote" resource loading). Was this intended? Anyone knows a workaround? Should I put it back in?
I have fixed a lot of issues with the current jquery version 1.8.3 which occured in my project. This should also fix the most problems from issue kbwood/svg#5
Created a minified version with yui compressor, but this file was not tested!