DrSensor / nusa

incremental runtime that bring both simplicity and power into webdev (buildless, cross-language, data-driven)
MIT License
4 stars 0 forks source link

Declarative Shadow DOM #51

Open DrSensor opened 1 year ago

DrSensor commented 1 year ago

from https://www.wiktorwisniewski.dev/blog/exploring-declarative-shadow-dom

That template is transfered into shadow dom when HTML parser finds it

Seems I have misunderstood that DSD doesn't solve CLS issue. I wonder if there's pseudo-code or step-by-step sections on how DSD works 🤔

If this works then I don't need the current <slot> hack. Still, I need to figure out how portal and conditional rendering (#7) would looks like.

For now I can use polyfill to continue the development then figure out the semantics of conditional and list rendering would looks like.

DrSensor commented 1 year ago

There's still 1 mystery. What happens if Javascript disabled? Does all elements inside <template shadowroot> get rendered? If no then I must reject it.