domenic / html-as-custom-elements

HTML as Custom Elements
https://domenic.github.io/html-as-custom-elements/
Apache License 2.0
260 stars 20 forks source link

What's the naming convention? #9

Closed dglazkov closed 10 years ago

dglazkov commented 10 years ago

I say we do with something simple, like custom- prefix for the tag name, and Custom prefix for the constructor name.s

domenic commented 10 years ago

I was thinking about this too. I was tempted by x- or html- or h- as well.

mathiasbynens commented 10 years ago

Don’t use x- – it’s reserved for X-Tag. See http://webcomponents.github.io/articles/how-should-i-name-my-element/ and http://mothereff.in/custom-element-name#x-p.

custom sounds good to me.

arv commented 10 years ago

custom- or html-

domenic commented 10 years ago

custom- it is.