-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Should not magically convert kebab-cased values to camelCased values #13
Should not magically convert kebab-cased values to camelCased values #13
Conversation
Wait, could you provide us with some more info? |
Please ask any specific question. The current implementation handles an attribute with the name |
@wooorm is it clear now? |
Ah, missed that. Thanks Dustin! I feel this is similar to #11 (comment). It feels like you want something that never normalises values, whereas this project is meant for the normalising part 🤔 |
No, it's not related because we will always lowercase the attributes. I'm fine with normalization but my idea in #11 was to respect case-sensitivity when the known attribute isn't supported by the tag. According to this issue can we merge and release it? |
@StarpTech The Could you try adding some tests showing they don’t break? |
There are already tests for
and when the attribute is defined it can be just returned https://github.com/wooorm/property-information/blob/master/find.js#L21 |
@StarpTech Ahh I forgot about that. Sorry! Well then I’m fine with this change, as long as it’s properly documented and tested, and in a major release! |
@wooorm doc was updated! |
@wooorm I'm not aware of any additional test-scenario. If you find something ping me. It would be great when we can merge it. |
@wooorm ping. |
@wooorm this test will fail https://github.com/syntax-tree/hastscript/blob/master/test.js#L148. It seems that the current behaviour was intentional? |
@StarpTech sorry for the delay! Yes, it was intentional to be chill about input, but maybe that’s not good. |
@wooorm I think this change will definitely improve the handling because as you see this issue comes from real-world user experience 😄 |
You don't agree with the change or what's the problem? |
@StarpTech I agree with the change, just don’t want to do major releases too often if they‘re only tiny changes (but still breaking) |
Just as a reference: Here is another user which use the attribute When can we expect a major release? What's wrong with the circumstance that not every package is up-to-date when it's from your side, not a critical issue? |
@wooorm would be great to have a decision 🤔 so that I can think about a different solution for my project. |
@wooorm ping! |
Failing tests to reproduce will fix #12