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

Re: [webcomponents] Template element parser changes => Proposal for adding DocumentFragment.innerHTML

From: Scott González <scott.gonzalez@gmail.com>
Date: Thu, 10 May 2012 19:06:45 -0400
Message-ID: <CAO8i3ifLjKpKq+Y3Ds3HMSodJvLoa-5mCTsekSny+NmX66Zqdw@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: Jonas Sicking <jonas@sicking.cc>, Webapps WG <public-webapps@w3.org>
Let's pretend that $() doesn't exist and we exposed this functionality as
jQuery.createElementFromHtml().

FWIW, web authors' design aesthetics don't really match the Web platform's
design aesthetic. This is why broken APIs like querySelectorAll() will be
replaced by intuitive APIs like find().


On Thu, May 10, 2012 at 6:50 PM, Ian Hickson <ian@hixie.ch> wrote:

> On Thu, 10 May 2012, Jonas Sicking wrote:
> >
> > The jQuery API shows that at least jQuery developers don't agree with
> > you regarding what is simpler here.
>
> That wouldn't be the first time. :-)
>
> jQuery doesn't really match the Web platform's design aesthetic, with
> method names consisting purely of punctuation, methods that can be used
> both to register a callback and invoke a callback (click(f) vs click()),
> the style of using return values to enable chained invocations of methods
> on a specific object, etc.
>
> I have great respect for jQuery as a library, but I'm not sure it's
> necessarily a given that just because jQuery does something one way, it
> makes sense for the Web platform to do it that way as well.
>
> --
> Ian Hickson               U+1047E                )\._.,--....,'``.    fL
> http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
>
>
Received on Thursday, 10 May 2012 23:07:09 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:52 GMT