mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:32:46 +00:00 
			
		
		
		
	LibWeb: Implement more of HTMLParser::the_end() and bring closer to spec
This commit is contained in:
		
							parent
							
								
									c772134e25
								
							
						
					
					
						commit
						e7af6af626
					
				
					 4 changed files with 75 additions and 12 deletions
				
			
		|  | @ -178,4 +178,11 @@ void EventLoop::process() | |||
|         schedule(); | ||||
| } | ||||
| 
 | ||||
| // https://html.spec.whatwg.org/multipage/webappapis.html#queue-a-global-task
 | ||||
| void queue_global_task(HTML::Task::Source source, DOM::Document& document, Function<void()> steps) | ||||
| { | ||||
|     // FIXME: This should take a global object as input and find the relevant document for it.
 | ||||
|     main_thread_event_loop().task_queue().add(HTML::Task::create(source, &document, move(steps))); | ||||
| } | ||||
| 
 | ||||
| } | ||||
|  |  | |||
|  | @ -58,5 +58,6 @@ private: | |||
| }; | ||||
| 
 | ||||
| EventLoop& main_thread_event_loop(); | ||||
| void queue_global_task(HTML::Task::Source, DOM::Document&, Function<void()> steps); | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling