Skip to content
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

Polymer should allow attributes with dashes #21532

Closed
DartBot opened this issue Nov 7, 2014 · 2 comments
Closed

Polymer should allow attributes with dashes #21532

DartBot opened this issue Nov 7, 2014 · 2 comments
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams.

Comments

@DartBot
Copy link

DartBot commented Nov 7, 2014

This issue was originally filed by @stevenroose


> No dashes allowed in custom attributes
> Polymer used to recognize attributes with dashes like my-name and convert them to match properties where dashes were removed,
> and words follow the camelCase style (for example myName). This feature is no longer available. Now simply use the same name
> as the property.
>
> Because HTML attributes are case-insensitive, you can also write the name of your property entirely in lowercase. Just be
> sure that your custom-elements don’t declare two properties with the same name but different capitalization.

That's what the error messages page from Polymer.dart says (https://www.dartlang.org/polymer/reference/error-messages/).

I know that there probably was a whole discussion about this when Polymer dropped the support for dashed attributes, but I don't seem to be able to find it somewhere.

Dashes are the defacto standard for multi-word HTML tags and attributes. Not allowing them is like not allowing upper case in Java variables.

What was the reason for dropping the support? The mapping of dashed attributes to camelcase attributes sound perfectly fine for me.

@jakemac53
Copy link
Contributor

duplicate of Polymer/polymer#150, I would follow it there


Added MovedToGithub label.

@DartBot DartBot added Type-Defect area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. labels Nov 10, 2014
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-archive/polymer-dart#336.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams.
Projects
None yet
Development

No branches or pull requests

3 participants