- From: Tito <notifications@github.com>
- Date: Tue, 15 Oct 2024 18:54:25 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 16 October 2024 01:54:28 UTC
I am using SSR with web components, `getHTML` is not enough. It would be nice to have `getOutterHTML`. Let's say I want to save the full page, I have to do this ugly thing to be able to save the `html` element attributes too. ```js let content = '<!DOCTYPE html>\n' content += document.documentElement.outerHTML.match(/^<html[^>]*>/)[0] || '' content += document.documentElement.getHTML({ serializableShadowRoots: true, }) content += '</html>' ```` -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/1079 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/1079@github.com>
Received on Wednesday, 16 October 2024 01:54:28 UTC