Bug 18813 - formatBlock both adds spans and removes existing span styles
Summary: formatBlock both adds spans and removes existing span styles
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 525.x (Safari 3.1)
Hardware: Mac OS X 10.5
: P2 Major
Assignee: Nobody
URL: http://dev.dadamanifesto.org/bug_exec...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-30 08:00 PDT by a.h.s. boy
Modified: 2010-09-24 12:36 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description a.h.s. boy 2008-04-30 08:00:17 PDT
This isn't exactly a duplicate of the existing "adds unwanted spans" bug, so I'm filing separately.

The URL above points to a page containing a test case. The iframe document contains some text that begins with a word wrapped in a span and given a style attribute making the text red. The text ends with a standard A tag link.

Clicking the test case link wraps the text in a P tag as expected, but it also _removes_ the contents of the style attribute on the first word (but leaving style=""), and then it _adds_ a style tag around the link at the end, coloring the text black and overriding the standard A link color.
Comment 1 Ryosuke Niwa 2010-09-24 11:18:34 PDT
URL on this bug no longer works.  Without a test case, we cannot really confirm or fix this bug.
Comment 2 a.h.s. boy 2010-09-24 12:33:07 PDT
Wow...after 2 and a half YEARS, I wouldn't have thought the bug was still active. I long ago abandoned the course of development that led to the revelation of this bug. Obviously I have no objection to closing it, but I'll leave the status up to you.
Comment 3 Ryosuke Niwa 2010-09-24 12:36:30 PDT
(In reply to comment #2)
> Wow...after 2 and a half YEARS, I wouldn't have thought the bug was still active. I long ago abandoned the course of development that led to the revelation of this bug. Obviously I have no objection to closing it, but I'll leave the status up to you.

Hi, thanks for the reply.  Some bugs such as https://bugs.webkit.org/show_bug.cgi?id=3710 stays on the bugzilla for 5-6 years.  I'll close this bug for now.  If anyone encounters this bug again and can reproduce the problem, he/she can reopen this bug or file a new one.