W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2015

RE: Custom Elements: is=""

From: Léonie Watson <lwatson@paciellogroup.com>
Date: Sat, 13 Jun 2015 15:30:19 +0100
To: "'Tobie Langel'" <tobie@codespeaks.com>, <public-webapps@w3.org>
Message-ID: <01a801d0a5e5$7a1ab990$6e502cb0$@paciellogroup.com>
From: Tobie Langel [mailto:tobie@codespeaks.com] 
Sent: 12 June 2015 21:26

On Fri, Jun 12, 2015, at 19:41, Léonie Watson wrote:
> Is there a succinct explanation of why the is= syntax is disliked? The 
> info on the WHATWG wiki explains where is= breaks, but doesn’t offer 
> much on the syntax issue [1].


So in summary it's ugly, has a high cognitive load, doesn't express the developers intent (actually even expresses the opposite), is hard to spot when reading code, and is error prone.

Hope this helps. :)

It does, thank you.

At the risk of asking the obvious question, why not use the extends= syntax you mentioned?

<my-button extends="button" attributes>Push</my-button>

It follows the expected X extends Y convention, and makes it reasonably clear what the attributes have been applied to I think.

Received on Saturday, 13 June 2015 14:30:42 UTC

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