mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb/SVG: Process script element when its text content changes
This commit is contained in:
committed by
Jelle Raaijmakers
parent
db7aa68340
commit
a187d5f28f
Notes:
github-actions[bot]
2025-02-26 15:09:59 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/a187d5f28fa Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3703 Reviewed-by: https://github.com/awesomekling ✅
@@ -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>
|
||||
Reference in New Issue
Block a user