mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 12:46:06 +00:00
LibWeb: Make SVGSVGElement.getElementById() return Element? (nullable)
This is wrong in the spec, and there's already a bug open.
This commit is contained in:
parent
8b097b38dd
commit
96e074b38f
Notes:
github-actions[bot]
2025-01-21 01:07:31 +00:00
Author: https://github.com/awesomekling
Commit: 96e074b38f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3329
Reviewed-by: https://github.com/gmta ✅
3 changed files with 11 additions and 1 deletions
8
Tests/LibWeb/Text/input/SVG/svg-svg-getElementById.html
Normal file
8
Tests/LibWeb/Text/input/SVG/svg-svg-getElementById.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<script src="../include.js"></script>
|
||||
<svg id="svgRoot"></svg>
|
||||
<script>
|
||||
test(() => {
|
||||
const x = svgRoot.getElementById("x");
|
||||
println(`PASS: ${x === null}`);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue