Re: Custom-elements: document.registerPolyfillElement ?

2014-06-10 Thread Dominic Cooney
On Mon, Jun 9, 2014 at 4:00 PM, Brett Zamir bret...@gmail.com wrote: I was looking to make a genuine polyfill for dialog (not just a shim), and I found Polymer's CustomElements helpful, but realized too late that the spec required x- prefixes. I still feel like it would be useful to have a

Re: Custom-elements: document.registerPolyfillElement ?

2014-06-10 Thread Brett Zamir
Thanks, this is helpful to know, though I'd still prefer a solution at some point which didn't require one to use extra code and once the polyfill was no longer needed, requiring alteration of code to be semantically correct (e.g., if it no longer is a x-polyfill-dialog because the

Custom-elements: document.registerPolyfillElement ?

2014-06-09 Thread Brett Zamir
I was looking to make a genuine polyfill for dialog (not just a shim), and I found Polymer's CustomElements helpful, but realized too late that the spec required x- prefixes. I still feel like it would be useful to have a means for polyfills to be built according to well-recognized semantics

Re: Custom-elements: document.registerPolyfillElement ?

2014-06-09 Thread Anne van Kesteren
On Tue, Jun 10, 2014 at 1:00 AM, Brett Zamir bret...@gmail.com wrote: How about something like `document.registerPolyfillElement`? Native elements have access to more hooks and synchronous features not available to custom elements. And we haven't fully explored what those are yet so this seems a