-
Notifications
You must be signed in to change notification settings - Fork 176
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
Ability to customize update method for attributes #212
Comments
this looks like a dupe of #204 |
Yeah unfortunately if jQuery has it marked as a Getting Stickit involved in messing with attribute handlers opens a whole can of worms that are outside the project scope. |
husa
added a commit
to husa/backbone.stickit
that referenced
this issue
Feb 25, 2015
husa
added a commit
to husa/backbone.stickit
that referenced
this issue
Feb 25, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: