New issue
Advanced search Search tips

Issue 558919 link

Starred by 4 users

Issue metadata

Status: Available
Owner: ----
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug

Sign in to add a comment

execCommand should not work on INPUT/TEXTAREA

Project Member Reported by, Nov 20 2015

Issue description

INPUT/TEXTAREA aren't contenteditable.

Other browsers:
Chrome: execCommand works on INPUT/TEXTAREA, same as Safari
Firefox: execCommand does NOT works on INPUT/TEXTAREA
IE: "Delete" and "SelectAll" commands work. Maybe more but InsertHTML
Safari: execCommand works on INPUT/TEXTAREA

We need usage count for this to decide whether we fix this or not.

Comment 1 by, Nov 20 2015

Labels: Cr-Blink-Forms Hotlist-Interop
Project Member

Comment 2 by, Nov 20 2015

Project Member

Comment 3 by, Jul 19 2016

Labels: Hotlist-OpenBugWithCL
A change has landed for this issue, but it's been open for over 6 months. Please review and close it if applicable. If this issue should remain open, remove the "Hotlist-OpenBugWithCL" label. If no action is taken, it will be archived in 30 days.

For more details visit - Your friendly Sheriffbot

Comment 4 by, Jul 19 2016

Labels: -Pri-2 -Hotlist-OpenBugWithCL Pri-3

Comment 5 by, Jul 20 2016

Components: -Blink>Editing Blink>Editing>Command
Use counter says is real world usage of execCommand on INPUT/TEXTAREA is less than 0.0061%. I think it is OK to prevent running execCommand on INPUT/TEXTAREA.

I don't think we should change this. It's the only way left to modify a text input and have your edits be in the undo stack. Not supporting copy or paste commands would also be sad.Since

Edge supports some commands, and Safari/Chrome support most commands, Firefox should be changed here.

Comment 7 by, Jan 18 2017

#c6 is make sense.
Editing team proposed to INPUT/TEXTAREA to support some execCommand in

Comment 8 by, Mar 7 2017

Project Member

Comment 9 by, Apr 18 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit - Your friendly Sheriffbot

Comment 10 by, Apr 19 2018

Labels: -Hotlist-Recharge-Cold
Status: Available (was: Untriaged)

Sign in to add a comment