[w3c/DOM-Parsing] Serializing DOM as rendered, including Shadow DOM (#58)

As a web developer, there are times when I may want to get a string representation of the page as rendered in the DOM. For example, I want to copy and paste the rendered DOM into a service that checks for SEO, Microdata, HTML markup validation, accessibility, etc.

Doing this manually would very difficult, because there is no "rendered" version available -- in JavaScript you would have to manually replace the slot elements.

I think it would be helpful if we had a way to do this natively, either as part of XMLSerializer, or as a DOM property: `.renderedInnerHTML` or similar.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/DOM-Parsing/issues/58

Received on Monday, 6 January 2020 05:27:28 UTC