Open Bug 378931 Opened 17 years ago Updated 2 years ago

execCommand("unlink") unexpectedly replaces <a> with <span>

Categories

(Core :: DOM: Editor, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: amla70, Unassigned)

Details

Attachments

(1 file)

Reported in http://dev.fckeditor.net/ticket/430 

Go to http://www.fckeditor.net/nightly/fckeditor/_samples/default.html switch to source mode and paste:
<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/" class="myCssClass">FCKeditor</a>.</p>

Switch to WYSIWYG, now select the link and use the unlink (it just makes sure that the full link is selected and calls execCommand( 'Unlink', false, null) )

Switch to source and theres a span instead of the link. 

Tested in Firefox 2.0.0.3 and Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a4pre) Gecko/20070426 Minefield/3.0a4pre
Attached file testcase
This testcase shows the bug without any extra stuff.
Summary: Midas: unlink creates a span → execCommand("unlink") unexpectedly replaces <a> with <span>
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: