mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
LibWeb: Start working on spec-aligned HTML scripting semantics
This patch adds HTML::Script and HTML::ClassicScript (subclass of the former.)
This commit is contained in:
parent
612a23d6fc
commit
0839442da5
Notes:
sideshowbarker
2024-07-18 04:22:18 +09:00
Author: https://github.com/awesomekling
Commit: 0839442da5
5 changed files with 105 additions and 0 deletions
26
Userland/Libraries/LibWeb/HTML/Scripting/ClassicScript.cpp
Normal file
26
Userland/Libraries/LibWeb/HTML/Scripting/ClassicScript.cpp
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/HTML/Scripting/ClassicScript.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
NonnullRefPtr<ClassicScript> ClassicScript::create(URL base_url, RefPtr<JS::Script> script_record)
|
||||
{
|
||||
return adopt_ref(*new ClassicScript(move(base_url), move(script_record)));
|
||||
}
|
||||
|
||||
ClassicScript::ClassicScript(URL base_url, RefPtr<JS::Script> script_record)
|
||||
: Script(move(base_url))
|
||||
, m_script_record(move(script_record))
|
||||
{
|
||||
}
|
||||
|
||||
ClassicScript::~ClassicScript()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue