1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:37:46 +00:00

LibWeb: Ensure DocumentObserver document_completely_loaded() is called

This stopped being called for anything without a navigable container
after 76a97d8, due to the early return. This broke SVG <use> elements
that reference elements defined later in the document.
This commit is contained in:
MacDue 2023-12-26 19:51:15 +00:00 committed by Andreas Kling
parent 785c9d5c2b
commit daecf741d4
3 changed files with 31 additions and 6 deletions

View file

@ -0,0 +1,11 @@
<!doctype html>
<svg style="display: none">
<symbol id="earlier-reference">
<rect x="0" y="0" width="64" height="64" fill="green" />
</symbol>
</svg>
<div>
<svg width="100" height="100">
<use xlink:href="#earlier-reference"></use>
</svg>
</div>