Bug 16883 - Consider supporting some commands in plaintext editors
Consider supporting some commands in plaintext editors
Status: NEW
Product: WebAppsWG
Classification: Unclassified
Component: HTML Editing APIs
unspecified
All Windows 3.1
: P2 enhancement
: ---
Assigned To: Aryeh Gregor
HTML Editing APIs spec bugbot
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-29 06:36 UTC by Aryeh Gregor
Modified: 2012-12-04 00:51 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aryeh Gregor 2012-04-29 06:36:28 UTC
Test-case:

data:text/html,<!DOCTYPE html>
<input value=abc>
<script>
var input = document.body.firstChild;
input.selectionStart = 1;
input.selectionEnd = 2;
document.execCommand("delete");
</script>

This works in IE 10 Developer Preview and Chrome 20 dev, but not Firefox 15.0a1 or Opera Next 12.00 alpha.  It might make sense to spec it.  (Ryosuke pointed this out on the whatwg list: <http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-April/035566.html>)