You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The name viewbox is meanless for SVG. The issue due method which jQuery.attr() function handles case sensitivity for attributes and this is "won't fix" http://bugs.jquery.com/ticket/11166
Yeah unfortunately if jQuery has it marked as a wontfix there's not a whole lot we can do about it. It's best if you add the changes to jQuery directly rather than through Stickit.
Getting Stickit involved in messing with attribute handlers opens a whole can of worms that are outside the project scope.
It would be useful ability to set dom element attributes with custom method.
The current implementation uses $.attr() which has issues with case sensitive attributes.
I have HTML with embedded SVG:
And I want to bind attribute
viewBox
on svg element with stickit:This does not work as expected beacause it adds another attribute with name in lowcase:
The name
viewbox
is meanless for SVG. The issue due method which jQuery.attr() function handles case sensitivity for attributes and this is "won't fix" http://bugs.jquery.com/ticket/11166There is workaround to add attrHook to jQuery:
But it seems to me that it is not too obvious. It would be nice abilty to customize DOM access methods at stickit binding level.
The text was updated successfully, but these errors were encountered: