mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 02:37:41 -05:00
Fix target attribute lookup on <script type="py"> (#1751)
* queryTarget takes element as first param * Add test for 'target' attribute on script tags test_tag_target_attribute
This commit is contained in:
@@ -206,7 +206,7 @@ for (const [TYPE, interpreter] of TYPES) {
|
||||
} = element;
|
||||
const hasTarget = !!target?.value;
|
||||
const show = hasTarget
|
||||
? queryTarget(target.value)
|
||||
? queryTarget(element, target.value)
|
||||
: document.createElement("script-py");
|
||||
|
||||
if (!hasTarget) {
|
||||
|
||||
Reference in New Issue
Block a user