paulroth3d / jupyter-ijavascript-utils

Utility library for working with iJavaScript - a Jupyter Kernel
1 stars 0 forks source link

Use ShadowRoot for HTML Script #2

Open paulroth3d opened 2 years ago

paulroth3d commented 2 years ago

ShadowScript is meant to be a way to encapsulate components, and could be a great way to have HtmlScript be isolated in each cell - essentially as a component.

https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM


Unfortunately, it seems like it will only encapsulate CSS, and not JavaScript, but it still would be helpful.

The change appears to be small, to complete...

This however, would require a large amount of testing on the Browser Side for testing how it would impact others.