Re: [WICG/webcomponents] [declarative-custom-elements] how would SSR work? (#886)

Other options to be able to "reverse engineer" rendered HTML to a binding template, compared to comment placeholders, are template elements, and other special tags (for example xslt based tags that have no impact on rendering).

Between comments and template elements (if anyone is considering that option), I think the decision should be based on which performs better first.  Templates may have the advantage that they are easier to query on, maybe easier to read.  I learned recently it is possible to query on comment tags using xpath, so that's probably not a huge factor.  I suspect search engines could be trained to use either, as far as detecting types of data (like itemprops provide).

Templates and comments seem like they wouldn't cause serious changes to rendering protocols (in particular, table elements, which are quite finicky about allowed children, don't object to parents, and of course comments are ignored).  That would be a bigger issue for xslt based tags (for example).


-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/886#issuecomment-1505371719
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/886/1505371719@github.com>

Received on Wednesday, 12 April 2023 14:24:34 UTC