[Webkit-unassigned] [Bug 28968] New: execCommand("fontsize") on certain selected html generates too many SPAN tags.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 4 04:16:32 PDT 2009


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

           Summary: execCommand("fontsize") on certain selected html
                    generates too many SPAN tags.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: dpopa at adobe.com


execCommand("fontsize") on certain selected html generates too many SPAN tags.

1. Have this HTML code inside a contentEditable DIV:
  (code beautified, class="Apple-span-style" removed)

A man with 2 
<span style="font-family: Courier New, Courier">
    font faces
</span>
<br />
Death comes in all 
<span style="font-size: large">
    font sizes
</span>


2. Select all and apply execCommand("fontsize", false, 7)


Actual results:
<span style="font-size: -webkit-xxx-large;">
    A man with 2 
</span>
<span style="font-family: Courier New, Courier">
    <span style="font-size: -webkit-xxx-large;">
        font faces
    </span>
</span>
<span style="font-size: -webkit-xxx-large;">
    <br>
    Death comes in all font sizes
</span>




Expected results:
<span style="font-size: -webkit-xxx-large;">
    A man with 2 
    <span style="font-family: Courier New, Courier">
        font faces
    </span>
    <br>
    Death comes in all font sizes
</span>

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



More information about the webkit-unassigned mailing list