PolymerElements / test-fixture

21 stars 14 forks source link

[feature] callbacks/events before import and append. #51

Open tomalec opened 6 years ago

tomalec commented 6 years ago

Description

I need to access the elements and stub few things precisely when they are created (imported) then when stamped (connected).

Actually, I'm trying to test a polyfill for the declarative shadow dom element, according to latest ideas which consist removing the element once parsed.

Expected outcome

I'd love to have an event or callback:

I could provide a PR if that's the idea with any chance to get merged.

Actual outcome

No way to catch those.

Note, that I cannot stub into Custom Elements constructor.

Live Demo

Steps to reproduce

Browsers Affected