HeinrichApfelmus / threepenny-gui

GUI framework that uses the web browser as a display.
https://heinrichapfelmus.github.io/threepenny-gui/
Other
437 stars 77 forks source link

State of SVG.Attributes / camlcase #186

Closed MarcFontaine closed 6 years ago

MarcFontaine commented 7 years ago

The SVG.Attributes module contains many attributes that are defined in camlCase. I ran in the situation that jquery automatically converts all uppercase letters in attributes to lower case and that these all-lower-case attributes then get ignored in svg elements since svg is case-sensitive. Can anybody confirm that these attributes work at all (from Haskell) ? What is the trick to get them to work (which browser/setup ) ?

HeinrichApfelmus commented 7 years ago

Hm, it appears that this is an issue with jQuery indeed ( jquery/jquery#2910 ). If I understand this correctly, it seems to be fixed in jQuery 3.* though, so the solution would be to upgrade the jQuery version bundled with threepenny-gui.

HeinrichApfelmus commented 6 years ago

Note to self: I'm looking into upgrading to jQuery 3.2.1, but it appears that Threepenny depends on jQuery 2.2.3 in a way that is not compatible with the newer version.

HeinrichApfelmus commented 6 years ago

I have upgraded the version of jQuery to 3.2.1 in commit 5ed387cc6f93b2752144b55133b489a628a4cd20 . This should fix the issue. Feel free to reopen if not!