Uh, what about Web Components? Sounds like you’re re-inventing the wheel here…
Kito D. Mann
1

Hi Kito, thanks for the comment!

xcomponent is designed for a different purpose than web-components:

  • Sandboxing javascript and UI in an iframe so they don’t interfere with the parent page
  • Displaying privileged content that the other domain should not have access to
  • Accepting privileged form fields, like login credentials, that the other domain should not have access to

There’s no reason what’s inside the iframe shouldn’t be a web-component. But to my knowledge web-components don’t really help in solving the above problems.

Like what you read? Give Daniel Brain a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.