3 ms·
Yeah, I get your point. On the other hand, I prefer the serialisation of the light DOM to reflect only changes I've made as the author. The serialisation isn't
by jaffathecake 2y ago
Yeah, I get your point. On the other hand, I prefer the serialisation of the light DOM to reflect only changes I've made as the author.
The serialisation isn't expected to represent page state. Imagine how that would work with <canvas>, or even things like event listeners.
- somishere 2y agoTend to agree ... with the added reflection that to a stylesheet, the DOM is the only worldview. Attributes - and the currently limited set of pseudo classes - afford its agency. If pseudos were extended to include all property state, DOM serialised or not, then we'd be onto something.