-
Notifications
You must be signed in to change notification settings - Fork 35
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
Inline <script type="text/markdown"> not picked up in ready() #55
Comments
@brettpostin what version of the |
Originally 1.3.1, however I have just updated to 1.4.1 and still see the issue. As mentioned above I'm struggling to reproduce this with the markup above in isolation. As it seems to be affected by other elements in the document, I'm wondering if another (our badly implemented) element could be interfering with the shady dom in some way? But then it's strange that it only happens in Chrome... |
For reference, the only other markup inside the body is the following:
Something as simple as commenting out the two Uncommenting out various other portions can change which of the four Confused! |
@brettpostin Can you try out the latest version? I think it may have been some kind of timing issue that should be resolved with the |
Updated to 2.1.0 and afraid it didn't help. I did try stripping everything back in our app and it was still evident so I will have another go at reproducing it in an isolated environment. |
Description
TL;DR
var markdownElement = Polymer.dom(this).querySelector('[type^="text/markdown"]');
In Chrome, this line in the
ready()
callback returnsnull
unexpectedly.Long Version
Ok I've tried to reproduce this in isolation but I'm having difficulty so I will have to try and explain as best I can.
Environment:
Markup:
Given four
marked-elements
with the exact same markup (copied-pasted) , the 3rdmarked-element
does not render at all. I have put the following tracing in:In the
ready()
method the following line unexpectedly returnsnull
:var markdownElement = Polymer.dom(this).querySelector('[type^="text/markdown"]');
Observations:
marked-element
(1,2,3,4) does not get rendered.Expected outcome
All
marked-elements
get rendered.Actual outcome
A pseudo-random
marked-element
does not get rendered, seemingly dependent on the rest of the document.Browsers Affected
The text was updated successfully, but these errors were encountered: