Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(htmlelement): clean 'inherit' concept in contentEditable #31935

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions files/en-us/web/api/htmlelement/contenteditable/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ This enumerated attribute can have the following values:
- '`true`' indicates that the element is `contenteditable`.
- '`false`' indicates that the element cannot be edited.
- '`plaintext-only`' indicates that the element's raw text is editable, but rich text formatting is disabled.
- '`inherit`' indicates that the element inherits its parent's editable
status.

You can use the {{domxref("HTMLElement.isContentEditable")}} property to test the
computed boolean value of this property.

If the attribute is missing or its value is invalid, its value is inherited from its parent element: so the element
is editable (or not) based on the parent element.

## Value

A string.
Expand Down
Loading