-
Notifications
You must be signed in to change notification settings - Fork 162
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
Inconsistant naming of members #7
Comments
JS APIs usually prefer camelCase syntax.
W3C APIs only use underscore for constants. JSON documents may vary as they can be provided by different languages with different conventions. As this manifest file target web apps written in JavaScript, camelCase looks more natural. |
Thanks for doing this research. Very helpful! |
I think it would be great to have a note about that in the specification. |
@mounirlamouri I can add that, but is it ok to fix the manifest to use camelCase? |
@AMorgaut 👍 Good comment |
I'm fine with changing the manifest. However, you have to keep in mind that you might need to revert that later because Google [1] and Mozilla [2] both use underscores in their manifest format. [1] http://developer.chrome.com/extensions/manifest.html |
@mounirlamouri true that. I think at this point, we should just fix the relNotes -> rel_notes. |
So, I'm going to ignore Google compat because we are currently fairly incompatible with them anyway. I'm still not sure what's worst/best here:
Thoughts? |
If the specification changes everything from "foo_bar" to "fooBar", I can do my best to have Mozilla implementing those changes and updating the documentations. However, we might end up with compat issues. If we do it early enough, those compat' issues might be small enough. I do not know if it is worth trying though. |
The only solution I see is that Moz continues to support its own + the new W3C ones (and eventually mark the Moz one as deprecated in the docs). If the W3C changes the behavior of an existing Moz field, then the W3C should rename that field so not to cause compat issues for Moz. |
As I said, I will push our App team to update the manifest handling as soon as possible if you update the document and the mailing list agrees with the naming convention. From there, we will see how to make sure the spec is compatible with the Web. |
Can someone please review: #36 and give it an OK (or not) to merge. |
Just FTR, every time I see properties using the "foo_bar" format, my eyes bleed ;) |
I agree with Mounir the "underscore" notation irritates me each time I see it |
Why are some properties with underscore and some not?
relNotes vs required_features?
The text was updated successfully, but these errors were encountered: