web component - detect unresolved elements in polymer-polyfilled browser -
web component - detect unresolved elements in polymer-polyfilled browser -
i'm trying observe if custom element has been registered yet, e.i if still unresolved.
in browser supports custom-element (e.g chrome) can checking is not instance of htmlunknowelement , doesn't match pseudo-class ":unresolved" element.matches or vendor-prefixed equivalent.
but when i'm working under polyfill, matches/webkitmatchesselector/mozmatchesselector function breaks when called ":unresolved"
is there way have peek on list of unresolved elements ? or other way work under polyfilled browser ?
thanks
edit
just found doc bookmarklette detects unresolved element on current page. problem doesn't work on polyfilled browsers.
the reason check if consctrucor is still htmlelement whereas in polyfilled browser constructor is always htmlunknownelement
polymer web-component custom-element
Comments
Post a Comment