Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
8 tasks done
tomalec opened this issue Nov 7, 2017 · 0 comments
Open
8 tasks done

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

tomalec opened this issue Nov 7, 2017 · 0 comments

Comments

@tomalec
Copy link

tomalec commented Nov 7, 2017

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:

  • imported - with a NodesList of imported nodes as a detail/parameter, so I could access them even though the may get removed from the document after constructor/connectedCallback/fixture. Called just after content of tempalte is imported.
  • connected - when the elements are being appended to the main document.

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

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant