Is there a method to pass an HTML file in an extension to a web page via the content script or pass the HTML as a DOM element rather than a string?
Currently, the HTML that is passed is a string held in the background page as a template element and insertAdjacentHTML is used to add it to the document. From another question here I think a DOMParser could be used also on that string. But is it possible to pass the HTML from the extension to the page as a DOM tree rather than string or to reference an HTML file saved in the extension itself, rather than holding the HTML in a template element in the background page and passing as a string?
Thank you.