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:
Jeff Glass
2023-09-25 07:27:47 -05:00
committed by GitHub
parent f0be7ef418
commit ffee4add4a
2 changed files with 28 additions and 9 deletions

View File

@@ -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) {