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:
Shannon Booth 2024-12-10 19:35:21 +13:00 committed by Luke Wilde
parent 02efb64e64
commit 0a216f9c14
Notes: github-actions[bot] 2024-12-10 10:39:52 +00:00
6 changed files with 82 additions and 16 deletions

View file

@ -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)