Open Bug 435709 Opened 16 years ago Updated 3 years ago

Inline tags are replaced by <span> tags with certain editing actions.

Categories

(Core :: DOM: Editor, defect, P5)

x86
All
defect

Tracking

()

UNCONFIRMED

People

(Reporter: m.kou, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008051202 Firefox/3.0
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008051202 Firefox/3.0

When performing some editing operations with Midas, inline tags like <strong> and <em> may be replaced by <span> tags erroneously by Midas.

Reproducible: Sometimes

Steps to Reproduce:
1. Prepare an Midas editable iframe with some bold text enclosed by <strong>.
2. Carefully select the bold text, with one or two characters before the bold text and nothing after it.
3. Press Delete. (this step is optional)
4. Type some random characters.
5. Examine the HTML source code.
Actual Results:  
Quite often, you'll find a <span style="font-weight: bold;"> tag is added by Midas - something the user not intended to do - after the procedure.

Expected Results:  
If Midas is trying to re-imitate the bold text after the user typed something, it should use the <strong> tag given to it, not invent a new <span> tag to make the result look the same.

This bug is causing the bug https://dev.fckeditor.net/ticket/2210 in FCKeditor, and it should be affecting all similar web-based RTEs as well.

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority and severity.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: