Re: [custom elements] Improving the name of document.register()

2013-12-13 Thread Brian Kardell
On Dec 13, 2013 3:40 AM, "Maciej Stachowiak" wrote: > > > Thanks, Google folks, for considering a name to document.register. Though a small change, I think it will be a nice improvement to code clarity. > > Since we're bikeshedding, let me add a few more notes in favor of defineElement for conside

Re: [custom elements] Improving the name of document.register()

2013-12-13 Thread pira...@gmail.com
I found registerElement a good candidate and parallel to registerProtocolHandler, but after this comments I also think declareElement is a better alternative. +1 to it. Send from my Samsung Galaxy Note II El 13/12/2013 10:18, "Dominic Cooney" escribió: > On Fri, Dec 13, 2013 at 5:44 PM, Kenneth

Re: [custom elements] Improving the name of document.register()

2013-12-13 Thread Dominic Cooney
On Fri, Dec 13, 2013 at 5:44 PM, Kenneth Rohde Christiansen < kenneth.christian...@gmail.com> wrote: > I also really like defineElement. I am not sure that it is easy to > understand what it actually means to "register an element", where as > defining an element is pretty clear. > > Kenneth > > On

Re: [custom elements] Improving the name of document.register()

2013-12-13 Thread Kenneth Rohde Christiansen
I also really like defineElement. I am not sure that it is easy to understand what it actually means to "register an element", where as defining an element is pretty clear. Kenneth On Fri, Dec 13, 2013 at 9:40 AM, Maciej Stachowiak wrote: > > Thanks, Google folks, for considering a name to docum

Re: [custom elements] Improving the name of document.register()

2013-12-13 Thread Maciej Stachowiak
Thanks, Google folks, for considering a name to document.register. Though a small change, I think it will be a nice improvement to code clarity. Since we're bikeshedding, let me add a few more notes in favor of defineElement for consideration: 1) In programming languages, you would normally sa

Re: [custom elements] Improving the name of document.register()

2013-12-13 Thread Ryosuke Niwa
Also, http://www.html5rocks.com/en/tutorials/webcomponents/customelements/ and http://www.polymer-project.org/platform/custom-elements.html already talk about custom elements as a way of "defining (and use) new (types of DOM) elements". I mean… even our current working draft says "This specificat

Re: [custom elements] Improving the name of document.register()

2013-12-12 Thread Maciej Stachowiak
I like defineElement a lot too. I think it gets to the heart of this method's potential - the ability to define your own elements. - Maciej > On Dec 11, 2013, at 6:46 PM, Dominic Cooney wrote: > >> On Thu, Dec 12, 2013 at 5:17 AM, pira...@gmail.com wrote: >> I have seen registerProtocolHandl

Re: [custom elements] Improving the name of document.register()

2013-12-12 Thread Dominic Cooney
On Fri, Dec 13, 2013 at 2:29 AM, Brian Kardell wrote: > > On Dec 11, 2013 11:48 PM, "Ryosuke Niwa" wrote: > > > > > > On Dec 11, 2013, at 6:46 PM, Dominic Cooney wrote: > > > ... > >>> El 11/12/2013 21:10, "Edward O'Connor" escribió: > >>> > Hi, > > The name "register" is very g

Re: [custom elements] Improving the name of document.register()

2013-12-12 Thread Brian Kardell
On Dec 11, 2013 11:48 PM, "Ryosuke Niwa" wrote: > > > On Dec 11, 2013, at 6:46 PM, Dominic Cooney wrote: > >> On Thu, Dec 12, 2013 at 5:17 AM, pira...@gmail.com wrote: >>> >>> I have seen registerProtocolHandler() and it's being discused registerServiceWorker(). I believe registerElementDefiniti

Re: [custom elements] Improving the name of document.register()

2013-12-11 Thread Ryosuke Niwa
On Dec 11, 2013, at 6:46 PM, Dominic Cooney wrote: > On Thu, Dec 12, 2013 at 5:17 AM, pira...@gmail.com wrote: > I have seen registerProtocolHandler() and it's being discused > registerServiceWorker(). I believe registerElementDefinition() or > registerCustomElement() could help to keep going

Re: [custom elements] Improving the name of document.register()

2013-12-11 Thread Scott Miles
I also agree with Ted. I prefer 'registerElement' because I'm used to the concept of registration wrt custom elements, but I'm not ginding any axe. Scott On Wed, Dec 11, 2013 at 6:46 PM, Dominic Cooney wrote: > On Thu, Dec 12, 2013 at 5:17 AM, pira...@gmail.com wrote: > >> I have seen registe

Re: [custom elements] Improving the name of document.register()

2013-12-11 Thread Dominic Cooney
On Thu, Dec 12, 2013 at 5:17 AM, pira...@gmail.com wrote: > I have seen registerProtocolHandler() and it's being discused > registerServiceWorker(). I believe registerElementDefinition() or > registerCustomElement() could help to keep going on this path. > > Send from my Samsung Galaxy Note II > E

Re: [custom elements] Improving the name of document.register()

2013-12-11 Thread Brian Kardell
On Wed, Dec 11, 2013 at 3:17 PM, pira...@gmail.com wrote: > I have seen registerProtocolHandler() and it's being discused > registerServiceWorker(). I believe registerElementDefinition() or > registerCustomElement() could help to keep going on this path. > > > Since a custom element is the only ki

Re: [custom elements] Improving the name of document.register()

2013-12-11 Thread pira...@gmail.com
I have seen registerProtocolHandler() and it's being discused registerServiceWorker(). I believe registerElementDefinition() or registerCustomElement() could help to keep going on this path. Send from my Samsung Galaxy Note II El 11/12/2013 21:10, "Edward O'Connor" escribió: > Hi, > > The name "

[custom elements] Improving the name of document.register()

2013-12-11 Thread Edward O'Connor
Hi, The name "register" is very generic and could mean practically anything. We need to adopt a name for document.register() that makes its purpose clear to authors looking to use custom elements or those reading someone else's code that makes use of custom elements. Here are some ideas: documen