LibWeb: Implement "plaintext-only" state for contenteditable

This commit is contained in:
Jelle Raaijmakers 2024-12-01 23:40:08 +01:00 committed by Andreas Kling
commit 217567981a
Notes: github-actions[bot] 2024-12-02 23:21:14 +00:00
5 changed files with 104 additions and 14 deletions

View file

@ -105,9 +105,11 @@ private:
// https://html.spec.whatwg.org/multipage/custom-elements.html#attached-internals
GC::Ptr<ElementInternals> m_attached_internals;
// https://html.spec.whatwg.org/#attr-contenteditable
enum class ContentEditableState {
True,
False,
PlaintextOnly,
Inherit,
};
ContentEditableState m_content_editable_state { ContentEditableState::Inherit };