Fix <script src> + test all py-script attributes (#1434)

This commit is contained in:
Andrea Giammarchi
2023-04-28 18:08:53 +02:00
committed by GitHub
parent 92643539cf
commit 0a4e36ae09
2 changed files with 65 additions and 6 deletions

View File

@@ -89,7 +89,7 @@ export function make_PyScript(interpreter: InterpreterClient, app: PyScriptApp)
const pyScriptTag = document.createElement('py-script-tag') as PyScript;
// move attributes to the live resulting pyScriptTag reference
for (const name of ['output', 'stderr']) {
for (const name of ['output', 'src', 'stderr']) {
const value = script.getAttribute(name);
if (value) {
pyScriptTag.setAttribute(name, value);