Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: timelapse
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (19 sloc) 0.556 kb
<!DOCTYPE html>
<p>This tests forward deleting 200 characters with 10ms intervals.
The caret shown below should not blink while the characters are being deleted.</p>
<div id="test" contenteditable></div>
var test = document.getElementById('test');
var text = '';
for (var i = 0; i < 200; i++)
text += 'a';
test.textContent = text;
getSelection().collapse(test, 0);
for (var i = 0; i < 200; i++)
setTimeout(function () {document.execCommand('ForwardDelete', false, null);}, i * 10);
Jump to Line
Something went wrong with that request. Please try again.