mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +02:00
LibWeb: Add support for inline SVG element scripts
This commit is contained in:
committed by
Sam Atkins
parent
c4efc0a5aa
commit
4821d284c6
Notes:
sideshowbarker
2024-07-17 05:18:58 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/4821d284c6 Pull-request: https://github.com/SerenityOS/serenity/pull/21227 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/kemzeb
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user