Comment by johnny22
12 hours ago
i think xhtml happened before the wider world of web devs were ready for it. Component based architectures took longer to be adopted than I certainly expected.
It might actually work if reintroduced these days as long as we can consider many components to be valid documents.
There is nothing component-based about xhtml compared to html. It is just html with xml syntax.
It was reintroduced, in the form of jsx.
Sure there is some embedded JS in there as well but ignore that and JSX is thr XHTML comeback story.
And jsx was kind of weird because e4x existed (and was never widespread, and implementations of it went away).
I suppose the important part was that jsx needed to be compiled, which means it couldn't introduce any new security issues…