1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:37:45 +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

@ -81,9 +81,8 @@ public:
NonnullRefPtr<CSS::CSSStyleDeclaration> style_for_bindings();
// FIXME: innerHTML also appears on shadow roots. https://w3c.github.io/DOM-Parsing/#dom-innerhtml
String inner_html() const;
void set_inner_html(StringView);
ExceptionOr<void> set_inner_html(String const&);
bool is_focused() const;
virtual bool is_focusable() const { return false; }