mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 07:24:58 +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)));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue