mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-19 16:00:42 -05:00
Fix <script src> + test all py-script attributes (#1434)
This commit is contained in:
committed by
GitHub
parent
92643539cf
commit
0a4e36ae09
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user