Bug 113065

Summary: It is possible to delete content past the div with contenteditable enabled
Product: WebKit Reporter: Claudio Saavedra <csaavedra>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: enrica, rniwa, wingo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Claudio Saavedra
Reported 2013-03-22 08:35:39 PDT
Go to http://html5demos.com/contenteditable , place the cursor anywhere inside the editable div, and press and hold the Delete key. Everything outside the editable view will be removed from the page.
Attachments
Andy Wingo
Comment 1 2013-03-22 09:21:26 PDT
Similarly (and similar to https://bugzilla.mozilla.org/show_bug.cgi?id=853887), putting the cursor *after* the G and pressing backspace twice pulls the first line out of the editable div.
Andy Wingo
Comment 2 2013-03-22 09:25:43 PDT
(In reply to comment #1) > Similarly (and similar to https://bugzilla.mozilla.org/show_bug.cgi?id=853887), putting the cursor *after* the G and pressing backspace twice pulls the first line out of the editable div. Oddly, I can't reliably reproduce this. It happens sometimes but not always.
Claudio Saavedra
Comment 3 2013-04-18 08:57:15 PDT
It's a bug in the demo. Go figure why they think it's a good idea to set document.designMode = 'on' when the contenteditable element is focused and 'off' on the blur event. Without that hack it's impossible to reproduce this bug.
Note You need to log in before you can comment on or make changes to this bug.