mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:42:43 +00:00 
			
		
		
		
	LibWeb: Update Document::create_and_initialize() to match latest spec
This commit is contained in:
		
							parent
							
								
									2c3bb26551
								
							
						
					
					
						commit
						359d8a3dc2
					
				
					 4 changed files with 44 additions and 49 deletions
				
			
		|  | @ -165,7 +165,7 @@ void FrameLoader::load_html(StringView html, const AK::URL& url) | |||
|         .browsing_context = browsing_context(), | ||||
|         .navigable = nullptr, | ||||
|     }; | ||||
|     auto document = DOM::Document::create_and_initialize(DOM::Document::Type::HTML, "text/html", move(navigation_params)).release_value_but_fixme_should_propagate_errors(); | ||||
|     auto document = DOM::Document::create_and_initialize(DOM::Document::Type::HTML, "text/html", navigation_params).release_value_but_fixme_should_propagate_errors(); | ||||
|     browsing_context().set_active_document(document); | ||||
| 
 | ||||
|     auto parser = HTML::HTMLParser::create(document, html, "utf-8"); | ||||
|  | @ -324,7 +324,7 @@ void FrameLoader::resource_did_load() | |||
|         .browsing_context = browsing_context(), | ||||
|         .navigable = nullptr, | ||||
|     }; | ||||
|     auto document = DOM::Document::create_and_initialize(DOM::Document::Type::HTML, "text/html", move(navigation_params)).release_value_but_fixme_should_propagate_errors(); | ||||
|     auto document = DOM::Document::create_and_initialize(DOM::Document::Type::HTML, "text/html", navigation_params).release_value_but_fixme_should_propagate_errors(); | ||||
|     document->set_url(url); | ||||
| 
 | ||||
|     if (resource()->encoding().has_value()) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Aliaksandr Kalenik
						Aliaksandr Kalenik