Bug 18813
Summary: | formatBlock both adds spans and removes existing span styles | ||
---|---|---|---|
Product: | WebKit | Reporter: | a.h.s. boy <spud> |
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Major | CC: | rniwa |
Priority: | P2 | ||
Version: | 525.x (Safari 3.1) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 | ||
URL: | http://dev.dadamanifesto.org/bug_execCommand.php |
a.h.s. boy
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ryosuke Niwa
URL on this bug no longer works. Without a test case, we cannot really confirm or fix this bug.
a.h.s. boy
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.
Ryosuke Niwa
(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.