mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 11:44:58 +00:00
LibWeb: Make factory methods of DOM::Document fallible
This commit is contained in:
parent
552663a2ba
commit
0d9076c9f5
8 changed files with 17 additions and 24 deletions
|
@ -3448,7 +3448,7 @@ DOM::Document& HTMLParser::document()
|
|||
Vector<JS::Handle<DOM::Node>> HTMLParser::parse_html_fragment(DOM::Element& context_element, StringView markup)
|
||||
{
|
||||
// 1. Create a new Document node, and mark it as being an HTML document.
|
||||
auto temp_document = DOM::Document::create(context_element.realm());
|
||||
auto temp_document = DOM::Document::create(context_element.realm()).release_value_but_fixme_should_propagate_errors();
|
||||
temp_document->set_document_type(DOM::Document::Type::HTML);
|
||||
|
||||
// 2. If the node document of the context element is in quirks mode, then let the Document be in quirks mode.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue