There are discussions going on at the platform/spec level that could change how custom elements are registered and more so change how they are upgraded/created under the hood:
- Firstly there is a push to make custom elements more 'classy' utilising ES6 classes for definition with possibly real constructors instead of `createdCallback`. - Secondly Symbols may be used to define the life-cycle (created, attached, etc) callback properties to help avoid naming collisions. Until all vendors have come to agreement and Gecko is relatively sure the public API of our custom-element implementation won't change, I'm assuming `document.registerElement()` won't be turned on. W. *W I L S O N P A G E* Front-end Developer Firefox OS (Gaia) London Office Twitter: @wilsonpage IRC: wilsonpage On Thu, Jan 29, 2015 at 10:43 AM, Guillaume Marty <[email protected]> wrote: > Maybe we could enable web components on hosted and privileged apps via a > permission in the meantime. > > > On Wed, Jan 28, 2015 at 8:12 PM, James Burke <[email protected]> wrote: > >> On Wed, Jan 28, 2015 at 11:24 AM, Soledad Penadés <[email protected]> >> wrote: >> > Can you use a polyfill in the meantime? There is a polyfill for enabling >> > only the custom element registration part >> > http://webcomponents.org/polyfills/custom-elements/ >> >> I would prefer to not add that layer if possible. Our custom element >> use so far is light (just custom-named divs with extra properties >> attached) and we have had a way to modularize our UI, so not a >> deal-breaker if we cannot use custom elements. >> >> I also want to target serializing the HTML for some cards used as in >> entry points served by service workers, for fast startup. This will >> mean if using custom elements, constructing them in very idiomatic >> ways, so being able to reuse today's off the shelf components would >> not be one of the main drivers for the custom elements. >> >> --- >> >> Separately, I was informed off-list that perhaps dev-platform is a >> better place to post this question, so I did so there: >> >> https://groups.google.com/forum/#!topic/mozilla.dev.platform/zdYYVi-ayIU >> >> It might be best to continue further discussion on that list. >> Apologies for the initial fuzzy list targeting. >> >> Off-list I was also pointed to >> https://wiki.whatwg.org/wiki/CustomElements that might have some >> useful background information. >> >> James >> _______________________________________________ >> dev-b2g mailing list >> [email protected] >> https://lists.mozilla.org/listinfo/dev-b2g >> > > > > -- > Guillaume Marty > @g_marty > http://gu.illau.me > > _______________________________________________ > dev-b2g mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-b2g > >
_______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
