-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
This is kind of a meta-bug, related to issues reported on the catalog (googlearchive/polymer-element-catalog#207) and elsewhere.
Briefly, the ordering of attached can vary based on whether you're polyfilled or not, so the current interaction model for this element is racy.
I think this was an early experiment in loosely-coupled components, but the protocol isn't reliable.
I suggest that we could either make it more reliable, or simply turn prism-element into a prism-behavior that exposes a single highlight(code, language-hint) function. Which would remove the loose coupling benefits, but be fast and reliable.
... Or we tell users they should fire the event, and see if they get results, and if not, wait a rAF and try again.
Metadata
Metadata
Assignees
Labels
No labels