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

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -