WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
13125
removeformat execCommand loses input elements
https://bugs.webkit.org/show_bug.cgi?id=13125
Summary
removeformat execCommand loses input elements
J Boss
Reported
2007-03-19 21:02:26 PDT
In an iframe with designMode on, if execCommand('removeformat',false,null) is called on the iframe and the selection contains an <input> element, the <input> element is removed from the document.
Attachments
Add attachment
proposed patch, testcase, etc.
Alex Steitz
Comment 1
2007-05-25 03:28:48 PDT
This also true for any image. All images within the selection get removed from the document when calling "removeFormat".
Marcos Almeida
Comment 2
2010-10-14 16:40:40 PDT
Plexode repro for the image case:
http://plexode.com/eval3/#ht=%3Cdiv%20contentEditable%3D%22true%22%3EHello%20%3Cb%3EWorld!%3C%2Fb%3E%3Cbr%3E%0A%3Cimg%20src%3D%22http%3A%2F%2Fwww.google.com%2Fimages%2Flogo.gif%22%3E%3Cbr%3E%0AGoodbye!%3C%2Fdiv%3E&ohh=0&ohj=0&jt=document.execCommand('RemoveFormat'%2C%20false%2C%20undefined)%3B&ojh=0&ojj=0&ms=100&oth=0&otj=0&cex=1
click set html, then select the text plus the image, then click eval js This affects the closure editor!
Ryosuke Niwa
Comment 3
2010-10-25 14:03:58 PDT
This bug has been fixed since
http://trac.webkit.org/changeset/70283
.
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