W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2015

custom elements without the dash

From: Steve Faulkner <faulkner.steve@gmail.com>
Date: Mon, 5 Jan 2015 13:42:57 +0000
Message-ID: <CA+ri+VmOgnHsH6fvZqL3kqtTGMB1s5MN9swN-Zg=TuMfh5bzhw@mail.gmail.com>
To: public-webapps <public-webapps@w3.org>
brought up on a twitter thread
https://twitter.com/johnslegers/status/552064145399767040

Why force hyphen in custom elements? See alternative approach at http://
mdo.github.io/mdoml/  <http://t.co/V73nupEc8E> and https://
github.com/mdo/mdoml/issues/7 … <https://t.co/kJGNmaBOp7>.

NOTE I am not advocating this approach.

There is no apparent downside for a developer if they do
<dropdown>

instead of
<x-dropdown>

claimed issues with use of dash:

(1) causes bloat, (2) reduces readability & (3) reduces flexibility

As there is no perceived negative effect for the developer when using non
dash custom elements (other than opprobrium from the  standards overlords)

Suggest the reasons for not doing so need to be better articulated.
--

Regards

SteveF
Received on Monday, 5 January 2015 13:44:05 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:25 UTC