-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Add support for data={object} #435
Conversation
|
Does dataset work? |
Then this would actually be consistent with things like |
- changed some variable names to be clearer about they are
Should I also add support for aria={object}? Edit: seems like a bad idea as aria has a limited set of supported variations. Also no relation to the DOM like dataset has. |
What's a use case for this? |
After talking with @yungsters, I'm not convinced yet that this is a good idea. I think it could be useful if |
Close please. It would be mainly for consistency with the DOM, which we aren't anyway. On Monday, October 28, 2013, Paul O’Shannessy wrote:
|
Cool. I'll close it out for now and if we decide in the future we want it, we have something to start from. Thanks for giving it a shot! |
Turns:
var obj = {x:1, t:function(){ return "2"; }};
<p data={obj}/>
into:
<p data-x="1" data-t="2" />
Possible improvement areas: