mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 19:59:17 +00:00
LibWeb: Add HTMLElement::is_content_editable()
This commit is contained in:
committed by
Andreas Kling
parent
934aa6af6a
commit
e3c75d7b6f
@@ -98,6 +98,14 @@ bool HTMLElement::is_focusable() const
|
||||
return m_content_editable_state == ContentEditableState::True;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#dom-iscontenteditable
|
||||
bool HTMLElement::is_content_editable() const
|
||||
{
|
||||
// The isContentEditable IDL attribute, on getting, must return true if the element is either an editing host or
|
||||
// editable, and false otherwise.
|
||||
return is_editable();
|
||||
}
|
||||
|
||||
StringView HTMLElement::content_editable() const
|
||||
{
|
||||
switch (m_content_editable_state) {
|
||||
|
||||
Reference in New Issue
Block a user