What does the files attribute do in a JavaScript sandbox?
Closed this issue · 1 comments
Danny-Engelman commented
I have something like:
<script id="inline" type="text/plain">
console.log("running inline script");
</script>
<codapi-snippet engine="browser" editor="basic" sandbox="javascript" output-mode="dom" files="#inline" >
</codapi-snippet>
is files="#inline"
supposed to run the script inside that tag? Thta console
is not executed
Additional question: I presume this does document.querySelector("#inline")
can this be a Web Component shadowDOM reference?
nalgeon commented
files
are only supported by the codapi
engine.
can this be a Web Component shadowDOM reference
Nope.