Closed Bug 241191 Opened 21 years ago Closed 10 months ago

midas - insert html command (cmd_insertHTML) should select the inserted html

Categories

(Core :: DOM: Editor, defect)

x86
Windows 2000
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: martijn.martijn, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7b) Gecko/20040323 Firefox/0.8.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7b) Gecko/20040323 Firefox/0.8.0+ execCommand('inserthtml', false, '<b>b</b>') does work fine, after using the command the inserted html is not selected. This is not consistent with other execCommands. It would be much handier if the inserted html would get selected. I wil attach a testcase to show exactly what I mean. Reproducible: Always Steps to Reproduce: 1. 2. 3.
-Type some text in the midas iframe. -Select some text in the midas iframe. - Button "execCommand('bold', false, false)" makes the selection bold and retains the selection - Button "execCommand('inserthtml',false,'<b>b</b>')" deletes the old selected text and inserts the new html, but doesn't select the inserted html
Keywords: testcase
Assignee: mozeditor → nobody
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: bugzilla
QA Contact: editor
Severity: normal → S3

According to the testcase, Chrome selects all text in the <iframe> with the focus() call after execCommand. However, as far as I've tested, Chrome does not select inserted content and that matches with "insertText" command. So, we should not change our behavior from both compatibility and consistent points of view.

Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: