-
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
Content inside <template>
breaks extending <body>
element.
#421
Comments
I don't have Chrome32 to test on but do yo mind verifying this repro's with Thanks. On Fri, Feb 14, 2014 at 4:57 AM, Tomek Wytrębowicz <notifications@github.com
|
Oh, and kudos for using a jsbin as an HTMLImport =) On Tue, Feb 18, 2014 at 10:34 AM, Steve Orvell sorvell@google.com wrote:
|
:) Thanks. I still face same issue on |
I'm unable to reproduce this now (see below) on Chrome 32 (Version 32.0.1700.107 m). Sorry, but can you verify one more time? The test is loading polymer directly via github. This, unfortunately (or not) makes it a moving target as this build is frequently updated. If the problem persists, can you include any Chrome flags that are set (you can go to chrome://version and paste the output next to 'Command Line'). Thanks for your patience. |
I have fixed Polymer version to latest baster hash http://jsbin.com/cepew/5/edit chrome://version
|
This seems to work on Chrome now: @arv and @jmesserly It doesn't appear to work with the ShadowDOM polyfill. |
I really do not see why this would be different than say a div. I think the first step would be to see if this repros in a pure ShadowDOM polyfill. |
ah, tracked it down. It breaks because this line: Not sure the best fix. We could capture the native insertBefore method as "originalInsertBefore" and call that directly from ShadowRenderer to ensure we're getting the native one. Not sure if there's any other way to reliably get the native (visual) methods for "body", since they're all overridden. Thoughts? |
By the way, here's a 1-page repro: http://jsbin.com/bitebohovezo/1/edit |
Storing the original function is what we had to do in a few other places. |
simplified the repro a bit further (just platform.js now): http://jsbin.com/bitebohovezo/2/edit |
I wrote a custom element that extends
<body>
(http://jsbin.com/vohoc/1/edit). It worked perfectly fine in both Canary and regular Chrome (http://jsbin.com/cepew/2/quiet).But when I put anything into element's template:
http://jsbin.com/cepew/3/quiet
It blows with a ton of
Uncaught Error: Assertion failed
errors. Two at the beginning at PointerGestureEvent.js:18, and throws one for every mouse move.(Chrome 32.0.1700.107 m)
The text was updated successfully, but these errors were encountered: