mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
LibWeb/HTML: Use DOM's post connection steps for <script> elements
This aligns our behaviour with WebKit and Chrome.
See: ddd2d0dd
This commit is contained in:
parent
02efb64e64
commit
0a216f9c14
Notes:
github-actions[bot]
2024-12-10 10:39:52 +00:00
Author: https://github.com/shannonbooth
Commit: 0a216f9c14
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2863
Reviewed-by: https://github.com/Lubrsi ✅
6 changed files with 82 additions and 16 deletions
|
@ -43,7 +43,8 @@ public:
|
|||
|
||||
bool is_parser_inserted() const { return !!m_parser_document; }
|
||||
|
||||
virtual void inserted() override;
|
||||
virtual void children_changed() override;
|
||||
virtual void post_connection() override;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/scripting.html#dom-script-supports
|
||||
static bool supports(JS::VM&, StringView type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue