-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polymer throws error in Canary when registering an element via import #290
Comments
I can only reproduce this with "Native HTMLImports" enabled. Native HTML Imports are not yet supported in Polymer as we're waiting for the API to stabilize, but we're working on it. |
yeah I've got the imports flag turned on in canary. good to know! |
@morethanreal is it possible to feature-detect native presence of HTML imports in order to work around the flag being turned on? |
Native Imports can be feature detected, but I'm not sure they can be worked around. The imports will begin loading when the parser sees them, and scripts are supposed to run after imports. Given that this flag is off by default, and the feature is being actively worked on in Canary, I think would be more prudent to just document this case and wait for the native implementation to be ready. |
I'd vote for not even documenting it given native imports aren't ready yet. On Fri, Sep 27, 2013 at 11:21 AM, Daniel Freedman
|
FWIW, a note in http://www.polymer-project.org/platform/html-imports.html would have saved me some time. I'd turned on "Experimental Web Platform features" as suggested at http://www.html5rocks.com/en/tutorials/webcomponents/customelements/#support, and it looked like HTML Imports would produce similarly-useful bug reports. |
It looks like there's an issue with the way imports and polymer element registration works in Chrome Canary. I get an error in the console but things seem to work otherwise.
Seen on Chrome 31.0.1640.2 canary
Outputs:
The text was updated successfully, but these errors were encountered: