-
Notifications
You must be signed in to change notification settings - Fork 491
URL Polyfill Missing #53
Comments
good catch. This used to bite me as well, if I somehow didn't have the URL repository checked out and tried to build platform.js Digging into this a bit more, my guess is that this is by design (sort of an intentional breaking change) ... it doesn't seem like the webcomponents.js polyfills use the |
Interesting... The |
yeah, maybe depend directly on https://github.com/Polymer/URL? does it need a file to expose it better to pkg managers? or is there something else we could do to make it easy to consume as its own pkg? @sorvell would be the decider for whether to include in webcomponents.js ... I can definitely see the argument in favor; it means less code for custom elements on browsers that do support web components natively. And as you point out, it's really convenient to have around too. |
We removed URL from webcomponents.js simply because it was not necessary. I On Fri, Nov 14, 2014 at 4:15 PM, John Messerly [email protected]
|
Actually I think I've got a good fallback if this doesn't get added back to var a = document.createElement('a');
a.href = url;
var path = a.pathname;
// ... That seems to work and cover the cases I need. |
I think it makes sense for us to not include the URL polyfill in this package outright. We could however add a note more clearly to the readme stating that it isn't included. I should also update http://webcomponents.org/polyfills/ as to the best of my knowledge this was still being pulled in. @sorvell could you confirm if the other two items are also still valid? (i.e are we still including WeakMap and MO shims or keeping separate?) |
Yes. CustomElements/HTMLImports depend on MO which depends on WeakMap. On Fri, Nov 21, 2014 at 6:42 AM, Addy Osmani [email protected]
|
webcomponents.js
seems to have dropped support for theURL()
constructor function.throws error
"Object doesn't support this action"
This worked in
platform.js
.platform.js
referenced URL in build.json.webcomponents.js
doesn't seem to reference it anywhere.The text was updated successfully, but these errors were encountered: