-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Iron flex guide does not show code #1395
Comments
FWIW, I was seeing this as well with Chrome 46 a few days ago, but I can't reproduce it now on the production site. Running a dev version of the site, you can reproduce it by removing the |
So first of all, I just opened it up again, and I cannot reproduce. Luckily, I still have the old tab open. The only thing in the console is this: /deep/ combinator is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details. elements.build.js:40898 Is there something that processes the stuff in code tags to produce the highlighting that could be failing during the build process? I've attached two screenshots comparing the broken/working state of a specific code tag, and it looks like on the broken one, the code that's supposed to be displayed is actually "executed". (Not sure I have the right word for this -- rendered?) |
This portion of the var event = this.fire('syntax-highlight', {code: code});
if (event.detail.code && !els[i].highlighted) {
els[i].highlighted = true;
els[i].innerHTML = event.detail.code;
} AFAIK, |
Yep, rendered is right. If you still have the bad tab open, can you try running this in the console?
If it returns
Or words to that effect. See: https://github.com/Polymer/polymer/blob/master/src/standard/utils.html#L212 But it occurs to me that if |
Console output:
(Sorry I can't be of more help, hadn't done web dev in ages before starting with polymer.) |
Huh, I wouldn't have thought the underlying |
No, that's plenty to go on. I believe it must be a timing issue. @jeffposnick I know, right? Need to open a bug to make that clear in the docs. |
@frankiefu @blasten Weird intermittent catalog bug -- could this be a timing issue? |
This issue was moved to googlearchive/polymer-element-catalog#207 |
I'm assuming that those grey boxes are not supposed to be empty:
Using up-to-date Chrome on OS X.
The text was updated successfully, but these errors were encountered: