-
Notifications
You must be signed in to change notification settings - Fork 39
Behavior of insert* commands for contenteditable=plaintext-only #419
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
Comments
https://software.hixie.ch/utilities/js/live-dom-viewer/saved/11814 (compare with
LF seems more useful for plaintext-only. |
Yeah, if linebreaks are not preserved like And I wonder, if |
Blink uses |
I've noticed that Chrome and Firefox behave differently with carriage returns(Enter key); Firefox inserts Imagine if this feature is used in code highlighting scenarios, where users usually don't want the extra This would seriously affect interoperability, and I think it's something that needs to be standardized in the specification as soon as possible. |
@yisibl that seems to be because Chromium forces https://software.hixie.ch/utilities/js/live-dom-viewer/saved/13730 @kojiishi do you know why this happens in Chromium? |
I haven't looked into the code, but at a glance, the Chrome behavior looks more natural to me because /cc @tkent-google |
Yeah, we assumed web developers didn't want |
OK, though forcing computed style is "magic". Maybe it's enough to have a normal UA style rule?
If developers set it back to @rniwa any opinions? |
See https://bugzilla.mozilla.org/show_bug.cgi?id=1291467#c17 by @masayuki-nakano
cc @howard-e
The text was updated successfully, but these errors were encountered: