ladybird/Tests/LibWeb/Crash/DOM/base-element-insert-crash.html
Callum Law 71b039a721 LibWeb: Use document's global object in is_base_allowed_for_document
Previously we were using the document's window - this was both contrary
to spec and causing crashes when the document did not have a window (for
instance the `temp_document` in `HTMLParser::parse_html_fragment`.

This means we no longer crash when navigating between pages on
https://rocketlabcorp.com
2025-08-16 14:19:05 +02:00

7 lines
157 B
HTML

<!DOCTYPE html>
<html id="html">
<head></head>
<script>
document.head.innerHTML = `<base href="https://example.com">`;
</script>
</html>