Commit Graph

319 Commits

Author SHA1 Message Date
Steven Orvell
68ef957139 Adds a window.WebComponents global. Existence of this global indicates that the WebComponentsReady event will be fired when polyfills are ready. After the event fires WebComonents.ready is set to true. This enables testing environments like web-component-tester to more easily determine if they should wait for the WebComponentsReady event before starting. 2017-04-24 12:39:37 -07:00
Daniel Freedman
b3643c7fe3 set webComponentsReady flag on script when WebComponentsReady event is fired 2017-04-21 17:54:38 -07:00
Daniel Freedman
7b13afd170 Make WebComponentsReady fire consistently for Chrome
Also fire WebComponentsReady on document and have it bubble for
backwards compatibility

Fixes #753
Fixes #756
2017-04-06 17:01:05 -07:00
Daniel Freedman
d39e744c21 fix let 2017-03-03 10:55:54 -08:00
Daniel Freedman
7b30fe50e2 Make everything advance compile 2017-03-03 10:47:37 -08:00
Steven Orvell
4f8849e86e [whenReady] call after custom elements needs to be wrapped whenReady. 2017-02-10 16:53:32 -08:00
Steven Orvell
9d0052cb15 Defers whenReady until after any imports that are queued by custom elements upgrading have been loaded. 2017-02-10 16:32:05 -08:00
Steven Orvell
7bb0b7d5ec Move dispatching WebComponentsReady until after HTMLImports.whenReady is patched. 2017-02-06 21:55:06 -08:00
Steven Orvell
1d112fcb70 Ensure HTMLImports.whenReady always comes after custom elements have upgraded. 2017-02-06 10:44:04 -08:00
Russell Bicknell
52e256a756 If the custom elements polyfill is in use, prevent document upgrade walks until HTMLImports.whenReady. 2017-02-03 16:43:19 -08:00
Monica Dinculescu
824c1e4882 update loader; update tests to use loader 2017-01-12 17:11:41 -08:00
Monica Dinculescu
7e1275033b delete old and unused build files 2017-01-12 16:29:40 -08:00
Monica Dinculescu
418c4d67c8 not everybody has HTMLImports 2017-01-11 15:51:36 -08:00
Monica Dinculescu
3bc06328e9 remove old CustomElements flag code 2017-01-04 18:15:04 -08:00
Monica Dinculescu
35eaf162e7 clean up src folder 2016-12-14 13:46:46 -08:00
Monica Dinculescu
542bd120ef replace HTMLImports.js with webcomponents/html-imports 2016-12-14 13:39:26 -08:00
Monica Dinculescu
bbf8d264d4 delete unused files for (i think) building 2016-12-14 13:35:01 -08:00
Monica Dinculescu
4c138da6a9 fix template/url deps names 2016-12-14 13:07:54 -08:00
Monica Dinculescu
968bf0b5a4 replace Template.js with webcomponents/template 2016-12-14 12:37:03 -08:00
Monica Dinculescu
8d16d8cc4a replace URL.js with webcomponentsjs/URL 2016-12-14 11:43:41 -08:00
Monica Dinculescu
8a0b6a95ab delele legacy takeRecords 2016-12-13 17:11:07 -08:00
Monica Dinculescu
71e837771d delete ShadowDOM/ShadowCSS, piss off all the tests 2016-12-13 17:10:23 -08:00
Monica Dinculescu
ad9400cc5a replace lang.js/dom.js with webcomponents-platform 2016-12-13 16:53:52 -08:00
Monica Dinculescu
352c1cb711 delete WeakMap 2016-12-13 16:49:38 -08:00
Monica Dinculescu
579b3665e6 paths have meanings 2016-12-13 16:35:14 -08:00
Monica Dinculescu
ab21a42c01 delete MutationObserver polyfill 2016-12-13 15:52:04 -08:00
Monica Dinculescu
1a9f2c6b1a replace Promise.js with es6-polyfill 2016-12-13 15:36:12 -08:00
Kevin Schaaf
d133399dc7 Fix strict mode error on older Safari. 2016-12-01 17:02:34 -08:00
Steven Orvell
130ecb3bf3 move ES6 polyfills into lang 2016-12-01 11:13:12 -08:00
Steven Orvell
ff87ab9681 fix indentation 2016-12-01 10:39:21 -08:00
Steven Orvell
572e8c223e Enhance compatibility with IE by including a Promise polyfill and some minor ES6 methods. 2016-11-30 14:39:13 -08:00
Kevin Schaaf
41898d4c06 Allow forcing CE polyfill via script. 2016-10-24 16:55:37 -07:00
Steven Orvell
73b21497cd Load external polyfills in webcomponents-lite.js. Thread web components flags to polyfills. 2016-09-08 13:18:46 -07:00
Daniel Freedman
1518c1b371 CustomElements split out into webcomponents/custom-elements
Update package.json, gulpfile, and tests
2016-09-08 12:19:32 -07:00
Justin Fagnani
c48d295295 Define window.customElements with defineProperty 2016-09-07 15:33:44 -07:00
Justin Fagnani
c60aef5d26 Move built-in HTMLElement subclass prototype patching to separate file 2016-09-06 16:28:03 -07:00
Justin Fagnani
fe5251632c isConnected() returns true for elements in any Document, not just the main document.
connectedCallback() should be called in HTML imports.
2016-09-06 16:23:03 -07:00
Justin Fagnani
f3e5a4b111 CustomElementsRegistry -> CustomElementRegistry 2016-09-06 16:13:05 -07:00
Justin Fagnani
4ec8435396 Custom element names must be lower case 2016-09-06 16:11:08 -07:00
Justin Fagnani
e19b82e292 Add build and test instructions to README 2016-09-06 13:37:21 -07:00
Justin Fagnani
ee6324a0b2 Consolidate producing name errors 2016-09-06 10:42:23 -07:00
Justin Fagnani
0dd8343aaa Use isValidCustomElementName in whenDefined 2016-09-06 10:32:21 -07:00
Justin Fagnani
d50d543e89 Simplify logic for adding flush() to native customElements 2016-09-06 10:26:11 -07:00
Justin Fagnani
6e4a951ddd Actually use the constants to access per-element state 2016-09-06 10:25:31 -07:00
Justin Fagnani
9ac84da0bf Make a getter for the current customElements registry 2016-09-06 10:12:50 -07:00
Justin Fagnani
e984474589 var -> const or let 2016-09-03 09:27:22 -07:00
Justin Fagnani
45808b97ad Convert CustomElementsRegistry to a class 2016-09-02 21:44:55 -07:00
Justin Fagnani
dbb5381e6f Defer upgrades until HTML Imports have loaded 2016-09-02 17:15:47 -07:00
Justin Fagnani
ef8a56d7f0 Use better property names for Element expando properties 2016-09-02 16:53:57 -07:00
Justin Fagnani
0dc1ca4002 Add sync setAttribute, removeAttribute, and importNode 2016-09-02 16:48:08 -07:00