-
Notifications
You must be signed in to change notification settings - Fork 58
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
test attribute copying #39
Comments
Had a |
What is the expected behavior in that example? Is there ever a case where you would want to retain the old attrs? |
Don't think we'd ever wanna retain the old values. From a UX perspective
for all intents and purposes it's a new element despite us recycling it
…On Wed, Jan 25, 2017, 22:09 kj ***@***.***> wrote:
What is the expected behavior in that example?
Are you thinking the attribute logic should:
see if the attr exists on old but not on new then nuke it
see if the attr exists on new and old, then update to the new value
Is there ever a case where you would want to retain the old attrs?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#39 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWleg1Wnk4aAzvFCAMMjT-H7K73ewU2ks5rWDitgaJpZM4LrvUV>
.
|
That was my inclination as well. I checked the code and it seems to at least logically follow the cases I described above. Will add some more tests to try and get to the bottom of it. |
We're testing SVG namespaces and events, but not regular ol' attributes. I've been running into issues on the server with this, so we should probably test this. Would also help enable #37 as we need to read and write attributes.
Specifically it'd be nice if tests could hit
el.setAttribute()
andel.getAttribute()
. Thanks!The text was updated successfully, but these errors were encountered: