Bug ID: 26142
Summary: execCommand() should work on <textarea> and <input>.
Component: HTML Editing APIs
QA Contact: sideshowbarker+html-editing-...@gmail.com
CC: m...@w3.org, email@example.com
Currently, the editing spec defines that something is editable when the
following is true:
> Something is editable if it is a node; it is not an editing host;
> it does not have a contenteditable attribute set to the false state;
> its parent is an editing host or editable; and either it is an HTML
> element, or it is an svg or math element, or it is not an Element
> and its parent is an HTML element.
I think this should be expanded to include HTML form fields that can accept
text input. This is already the behaviour in Chrome and Internet Explorer for
some commands, though Firefox throws an error.
Although the majority of formatting commands might be useless, insertText,
keyboards, along with cut, copy, paste, undo, redo and selectAll from the
There's also a use case for editors that switch between a designmode enabled
iframe for formatted editing and a text area for raw editing - these editors
would be able to reuse a lot of the same very short code (especially in the
case of "insertText") without having to slice, concat and set the element
You are receiving this mail because:
You are on the CC list for the bug.