amcss / attribute-module-specification

The Attribute-Module CSS (AMCSS) Specification
MIT License
393 stars 8 forks source link

What about specification ? #22

Closed magsout closed 10 years ago

magsout commented 10 years ago

HTML Syntax The syntax is simple. Any attribute on any element whose attribute name starts with data- is a data attribute

benschwarz commented 10 years ago

@magsout You might need to add a bit of detail here — can you please describe the issue?

magsout commented 10 years ago

I am concerned about the specification attributes. The specification says that it is necessary to add data- for each attribute used in an element. You add am- directly into element. Your idea is interesting, but you invalidate the html page.

So what about the specification ? You don't care ? Or I missed something about data attributes ?

benschwarz commented 10 years ago

@magsout data- attributes are purely optional. If you don't want to use custom elements prefixed with am-, then you can use data- attributes. Its as simple as that.

I'm having a hard time understanding your issue, so sorry if I've missed your point here :panda_face:

MoOx commented 10 years ago

From what I understand from html specs, attributes that are not in the spec should always be prefixed by data-, so you should use data-am-.

benschwarz commented 10 years ago

@MoOx, @magsout We've discussed this at length in #4, feel free to move conversation over to there — I'll close this issue.