mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:38:11 +00:00
LibWeb: Add HTMLElement::is_content_editable()
This commit is contained in:
parent
934aa6af6a
commit
e3c75d7b6f
5 changed files with 18 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue