Using iframe's `srcdoc` attribute to embed dynamically generated HTML