Closed
Bug 379638
Opened 17 years ago
Closed 4 years ago
Selection is not replaceable if innerHTML is set after designMode="on"
Categories
(Core :: DOM: Editor, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: phil.crosby, Unassigned)
References
()
Details
(Keywords: testcase)
Attachments
(1 file)
1.14 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.0.7) Gecko/20060911 Camino/1.0.3 Build Identifier: Doing this: iframe1.contentDocument.designMode="on"; iframe1.contentDocument.body.innerHTML="Select some text, and try and type over it"; and then making a selection inside the iframe, and trying to type over it, will not replace the contents of your selection. See the test case. Reproducible: Always Steps to Reproduce: 1. 2. 3. Test case available here: http://philisoft.com/bugs/j/moz/setiframecontents.html
Reporter | ||
Comment 1•17 years ago
|
||
Contents of the test case: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <!--https://bugzilla.mozilla.org/show_bug.cgi?id=379638 --> <html> <head> <script type="text/javascript"> function iframe1Load(){ var iframe1 = document.getElementById('iframe1'); iframe1.contentDocument.designMode="on"; iframe1.contentDocument.body.innerHTML="Select some text, and try and type over it"; } function iframe2Load(){ var iframe2 = document.getElementById('iframe2'); // set the content, _then_ turn design mode on iframe2.contentDocument.body.innerHTML="Select some text, and try and type over it"; iframe2.contentDocument.designMode="on"; } </script> </head> </html> <body> editable iframe 1:<br/> <iframe id="iframe1" onload="iframe1Load();"></iframe> <br/> <br/> editable iframe 2:<br/> <iframe id="iframe2" onload="iframe2Load();"></iframe> </body>
Reporter | ||
Updated•17 years ago
|
OS: Mac OS X → All
Comment 2•17 years ago
|
||
Confirmed. I'm also seeing this on branch and Mozilla1.7, so no (recent) regression.
Comment 3•17 years ago
|
||
Comment 4•4 years ago
|
||
This is fixed in 2010-10-19 build.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•