Bug 113065
Summary: | It is possible to delete content past the div with contenteditable enabled | ||
---|---|---|---|
Product: | WebKit | Reporter: | Claudio Saavedra <csaavedra> |
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | enrica, rniwa, wingo |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Claudio Saavedra
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Andy Wingo
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
(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
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.