kbwood / svg

jQuery SVG plugin
http://keith-wood.name/svg.html
168 stars 65 forks source link

jquery.svgdom fixes for jquery 1.8.3 #8

Open micha149 opened 11 years ago

micha149 commented 11 years ago

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!

stoffeastrom commented 11 years ago

+1 This looks good! Would be really good to get this in.

micha149 commented 11 years ago

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.

diogo-paschoal commented 11 years ago

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. :)

rockcdr commented 11 years ago

+1 Great. I am testing to make sure that it is OK for me.

commonpike commented 11 years ago

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.

doedje commented 11 years ago

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!

bobjackman commented 11 years ago

Thank you, @micha149! @kbwood, please merge this! :)

JasonMore commented 11 years ago

@kbwood should just give @micha149 push access if he's going to ignore pull requests.

twitwi commented 10 years ago

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?