1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:28:11 +00:00

LibWeb: Make the innerHTML setter spec compliant

This adds innerHTML to ShadowRoot in the process.
This commit is contained in:
Luke Wilde 2021-09-13 22:42:57 +01:00 committed by Andreas Kling
parent f62477c093
commit 8e0f3436a2
8 changed files with 109 additions and 9 deletions

View file

@ -28,6 +28,9 @@ public:
// NOTE: This is intended for the JS bindings.
String mode() const { return m_closed ? "closed" : "open"; }
String inner_html() const;
ExceptionOr<void> set_inner_html(String const&);
private:
// ^Node
virtual FlyString node_name() const override { return "#shadow-root"; }