Opened 13 years ago

Closed 11 years ago

#8082 closed Bug (duplicate)

[WebKit] <font> tag with "Apple-style-span" class is left when deleting content

Reported by: Wiktor Walc Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version: 3.0
Keywords: WebKit VendorFix Cc: satya_minnekanti@…

Description

  1. Load the default replacebyclass sample
  2. Select all
  3. Set text color to red
  4. Press "delete" and start typing
  5. Result:
    <p><font class="Apple-style-span" color="#FF0000">foo bar</font></p>
    

Confirmed in Chrome and Safari on both Win 7 and Mac.

Change History (13)

comment:1 Changed 13 years ago by Wiktor Walc

Status: newconfirmed

comment:2 Changed 13 years ago by Garry Yao

Component: GeneralCore : Styles

Affects also other inline styles:

  1. Open a bold style then typing some text;
  2. Select the bold element by either Ctrl-A or elements path bar;
  3. Press Del key;
    • Actual Result: a "b" element is opened.

comment:3 Changed 13 years ago by Garry Yao

Affects also other keystrokes:

  1. Open a bold style then type a word;
  2. Delete the word with Ctrl-Backspace;
    • Actual Result: a "b" element is opened.

comment:4 Changed 13 years ago by Satya Minnekanti

Cc: satya_minnekanti@… added

comment:5 Changed 13 years ago by Garry Yao

We knew from Webkit team that their have this issue fixed recently, let's have our fingers crossed for the incoming browser update.

comment:7 Changed 13 years ago by Garry Yao

Keywords: VendorFix added

comment:8 Changed 12 years ago by Jakub Ś

#9049 was marked as duplicate.

comment:9 Changed 12 years ago by Jakub Ś

If you select font-name type character and press delete font tag will be left. The only good news is that Chrome now drops "Apple-style-span" attribute.

Safari:
<font class="Apple-style-span" face="'comic sans ms', cursive">h</font>

Chrome:
<font face="comic sans ms, cursive">d</font>

comment:10 Changed 12 years ago by Jakub Ś

#3164 was marked as duplicate.

comment:11 Changed 11 years ago by Jakub Ś

#10038 was marked as duplicate.

comment:12 Changed 11 years ago by Jakub Ś

Similar issue with other tags was described in #8438

comment:13 Changed 11 years ago by Piotrek Koszuliński

Resolution: duplicate
Status: confirmedclosed

Webkit does not add Apple-style-span class any more, although it still transforms span{color} to font tag. But this issue has its ticket #8438 and all Webkit issues with backspace are grouped in #9998.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy