When fetching from the backend, the docs recommend returning snippets of html instead of JSON. Is it technically valid to return a snippet of HTML with a content type of “text/html”?
There’s no standards saying you need !DOCTYPE or a head or body?
There’s no standards saying you need !DOCTYPE or a head or body?
E.g.
Content-type: application/vnd+yourorg.htmlx+html-snippet
Basically that nowadays it’s fine to use text/html for html fragments, because the content is still html, even if it’s not a full document.