mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibXML+LibWeb: Use existing HTML entities table for XML parsing too
For XHTML documents, resolve named character entities (e.g., ) using the HTML entity table via a getEntity SAX callback. This avoids parsing a large embedded DTD on every document and matches the approach used by Blink and WebKit. This also removes the now-unused DTD infrastructure: - Remove resolve_external_resource callback from Parser::Options - Remove resolve_xml_resource() function and its ~60KB embedded DTD - Remove all call sites passing the unused callback
This commit is contained in:
committed by
Tim Ledbetter
parent
35bb1e20ee
commit
1b41659efd
Notes:
github-actions[bot]
2026-01-09 19:14:36 +00:00
Author: https://github.com/sideshowbarker Commit: https://github.com/LadybirdBrowser/ladybird/commit/1b41659efd2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7375 Reviewed-by: https://github.com/alimpfard ✅ Reviewed-by: https://github.com/gmta Reviewed-by: https://github.com/tcl3 ✅
@@ -0,0 +1,9 @@
|
||||
<!doctype html>
|
||||
<title>Test reference</title>
|
||||
<style>
|
||||
html, body { margin: 0 }
|
||||
</style>
|
||||
<iframe src="about:blank"></iframe>
|
||||
<div>
|
||||
PASS
|
||||
</div>
|
||||
@@ -0,0 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
Test passes if it correctly shows Á in the subframe.
|
||||
<hr>
|
||||
<iframe srcdoc="&Aacute"></iframe>
|
||||
Reference in New Issue
Block a user