1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:48:11 +00:00

LibWeb: Add support for HTMLOrSVGElement.dataset

This commit is contained in:
Luke Wilde 2021-09-26 15:24:41 +01:00 committed by Andreas Kling
parent 37347cbcb6
commit f6b24a72ee
12 changed files with 259 additions and 1 deletions

View file

@ -7,6 +7,7 @@
#pragma once
#include <LibWeb/DOM/Element.h>
#include <LibWeb/HTML/DOMStringMap.h>
#include <LibWeb/HTML/EventNames.h>
#include <LibWeb/HTML/GlobalEventHandlers.h>
@ -35,6 +36,8 @@ public:
bool cannot_navigate() const;
NonnullRefPtr<DOMStringMap> dataset() const { return m_dataset; }
protected:
virtual void parse_attribute(const FlyString& name, const String& value) override;
@ -48,6 +51,8 @@ private:
Inherit,
};
ContentEditableState content_editable_state() const;
NonnullRefPtr<DOMStringMap> m_dataset;
};
}