Opened 7 years ago

Last modified 7 years ago

#7531 confirmed Bug

Unlink in Firefox leaves a span-tag if style or class attributes are set

Reported by: Niklas Nilsson Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc:

Description

If a link has a class or style attribute, unlinking in Firefox 4.0 will leave a span tag behind with the same class/style attributes.

Steps to reproduce:

  1. In source mode, enter
    <a class="class" href="#" style="font-weight:bold;">Test</a>
    
  2. Switch back to WYSIWYG
  3. Select the text
  4. Click unlink
  5. Go to source mode, HTML is now
    <span class="class" style="font-weight:bold;">Test</span>
    

Change History (1)

comment:1 Changed 7 years ago by Jakub Ś

Keywords: Firefox removed
Status: newconfirmed
Version: 3.5.23.0

This happens in Firefox and Opera.

Opera behaves a little different:

  1. When selecting whole link or placing cursor behind letter "t" and using "unlink" it produces:
    Test<a class="class" href="#" style="font-weight:bold;"><span style="display: none">&nbsp;</span></a>
    
  2. When placing cursor before "T" unlink option doesn't work
  3. When placing cursor inside word "Test" it produces
    T<span style="display: none">&nbsp;</span>est
    
Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy