﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36353	Add `content` to `Script` media asset	Johannes Maron		"This is a follow-up to #35886

I noticed that the `Script` does support any attribute, but not a content or innerHTML.

Currently:

{{{
element_template = '<script src=""{path}""{attributes}></script>'
}}}

Better:

{{{
element_template = '<script src=""{path}""{attributes}>{content}</script>'
}}}

You might want to just drop a `import ""#myPackage""` inside the script tag, to lead a file from your importmap.

This would look something like:


{{{
Script(type=""module"", content=""import 'myPackage'"")
}}}


I am not sure, if this is a bug, feature request or cleanup, someone should review the ticket type.
"	Cleanup/optimization	new	Forms	5.2	Normal			Johannes Maron	Unreviewed	0	0	0	0	0	0
