mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-24 02:09:28 +00:00
LibHTML: Optionally pass document URL to the HTML parser
This makes the document URL available to all the parse_attributes() callbacks, in case they need it for anything.
This commit is contained in:
@@ -175,8 +175,7 @@ void HtmlView::load(const URL& url)
|
||||
}
|
||||
|
||||
String html = String::copy(f->read_all());
|
||||
auto document = parse_html(html);
|
||||
document->set_url(url);
|
||||
auto document = parse_html(html, url);
|
||||
document->normalize();
|
||||
|
||||
set_document(document);
|
||||
|
||||
Reference in New Issue
Block a user