[Webkit-unassigned] [Bug 23496] New: execCommand('bold') will remove <b style='font-style:italic'>, it should probably replace it with <span foo='bar'>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 22 23:56:26 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=23496

           Summary: execCommand('bold') will remove <b style='font-
                    style:italic'>, it should probably replace it with <span
                    foo='bar'>
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: eric at webkit.org
                CC: justin.garcia at apple.com, ojan at google.com,
                    jparent at google.com


execCommand('bold') will remove <b foo='bar'>, it should probably replace it
with <span foo='bar'>.

I'm not sure what the proper behavior here is.

Our current (epic fail!) behavior is:

Test to make sure we do not remove extra styling hidden on html styling
elements (b, i, s, etc.) when removing those elements.

On success, you will see a series of "PASS" messages, followed by "TEST
COMPLETE".


FAIL one underline command converted <u style='font-weight: bold'>test</u> to
<u style="font-weight: bold; "><span class="Apple-style-span"
style="text-decoration: none;">test</span></u>, expected <b>test</b>
FAIL one bold command converted <b style='text-decoration: underline'>test</b>
to test, expected <u>test</u>
FAIL one strikethrough command converted <s style='text-decoration: underline;
font-weight: bold'>test</s> to <s style="font-weight: bold; ">test</s>,
expected <b><u>test</u></b>
FAIL one bold command converted <b style='text-decoration: overline'>test</b>
to test, expected <span style='text-decoration: overline'>test</span>
FAIL one underline command converted <u foo='bar'>test</u> to <u foo="bar"
style=""><span class="Apple-style-span" style="text-decoration:
none;">test</span></u>, expected <span foo='bar'>test</span>
PASS successfullyParsed is true

TEST COMPLETE


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list