mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Flesh out prepare_script and execute_script
This fills in a bunch of the FIXMEs that was in prepare_script. execute_script is almost finished, it's just missing the module side. As an aside, let's not assert when inserting a script element with innerHTML.
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 22:46:47 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/3f5532d43e4 Pull-request: https://github.com/SerenityOS/serenity/pull/5150 Reviewed-by: https://github.com/linusg
@@ -62,6 +62,13 @@ private:
|
||||
bool m_ready_to_be_parser_executed { false };
|
||||
bool m_failed_to_load { false };
|
||||
|
||||
enum class ScriptType {
|
||||
Classic,
|
||||
Module
|
||||
};
|
||||
|
||||
ScriptType m_script_type { ScriptType::Classic };
|
||||
|
||||
Function<void()> m_script_ready_callback;
|
||||
|
||||
String m_script_source;
|
||||
|
||||
Reference in New Issue
Block a user