Javascript inside HTML import not affecting imported HTML
问题 I am importing an html document, form.html , from a script located in my index.html file. form.html is a basically a fragment of HTML and at the bottom of the html is an internal script that attaches the html to the main document: Afterwards, I reference an external script that is supposed to do some stuff to the HTML in form.html . However, this fails to have an affect in Firefox. If I inspect the <head> of the main document in Firefox developer tools, I can see the "document fragment"