mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
LibWeb/SVG: Process script element when its text content changes
This commit is contained in:
parent
db7aa68340
commit
a187d5f28f
Notes:
github-actions[bot]
2025-02-26 15:09:59 +00:00
Author: https://github.com/tcl3
Commit: a187d5f28f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3703
Reviewed-by: https://github.com/awesomekling ✅
6 changed files with 42 additions and 3 deletions
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<div id="script-container"></div>
|
||||
<script>
|
||||
let scriptRan = false;
|
||||
test(() => {
|
||||
let script = document.createElementNS("http://www.w3.org/2000/svg", "script");
|
||||
script.textContent = `scriptRan = true;`;
|
||||
document.getElementById('script-container').appendChild(script);
|
||||
println(`SVG script ran: ${scriptRan}`);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue