WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
113065
It is possible to delete content past the div with contenteditable enabled
https://bugs.webkit.org/show_bug.cgi?id=113065
Summary
It is possible to delete content past the div with contenteditable enabled
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug