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

Clarify the nested case of contenteditable=true and contenteditable=plaintext-only #470

Open
masayuki-nakano opened this issue Sep 25, 2024 · 1 comment
Labels
Agenda+ Agenda item to be inserted in the Editing TF meeting queue

Comments

@masayuki-nakano
Copy link
Collaborator

There are 2 simple cases:

<div contenteditable="true">
  <div contenteditable="plaintext-only">plaintext-only</div>
</div>
<div contenteditable="plaintext-only">
  <div contenteditable="true">rich text allowed</div>
</div>

Perhaps, initial shipping of contenteditable=plaintext-only of Firefox may depend on the topmost editing host value (i.e., focused editing host) because there are complicated issues.

For example, in the following cases, it's unclear whether rich text or plaintext should be pasted.

<div contenteditable="true">
  [rich text
  <div contenteditable="plaintext-only">plaintext-only]</div>
</div>
<div contenteditable="true">
  <div contenteditable="plaintext-only">[plaintext-only</div>
  rich text]
</div>

It seems that Chrome considers it from anchor node of selection. So, if you make the above selections with opposite direction, you'll see different result.

@johanneswilm johanneswilm added the Agenda+ Agenda item to be inserted in the Editing TF meeting queue label Sep 26, 2024
@rniwa
Copy link
Contributor

rniwa commented Sep 26, 2024

Filed https://bugs.webkit.org/show_bug.cgi?id=280419 to track this issue in WebKit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Agenda+ Agenda item to be inserted in the Editing TF meeting queue
Projects
None yet
Development

No branches or pull requests

3 participants