mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
LibWeb: Add support for inline SVG element scripts
This commit is contained in:
parent
c4efc0a5aa
commit
4821d284c6
6 changed files with 74 additions and 10 deletions
|
@ -1,7 +1,8 @@
|
|||
<script src="../include.js"></script>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"><script id="svg-script-element"></script></svg>
|
||||
<script>
|
||||
test(() => {
|
||||
println(`Name = ${document.getElementById('svg-script-element').constructor.name}`);
|
||||
});
|
||||
</script>
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<script id="svg-script-element">
|
||||
test(() => {
|
||||
println(`Hello from ${document.getElementById('svg-script-element').constructor.name}!`);
|
||||
});
|
||||
</script>
|
||||
</svg>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue