[Webkit-unassigned] [Bug 23466] New: WebKit editing commands should remove empty (attribute-less) span tags (like FF does)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 21 16:16:45 PST 2009


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

           Summary: WebKit editing commands should remove empty (attribute-
                    less) span tags (like FF does)
           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, jparent at google.com


WebKit editing commands should remove empty (attribute-less) span tags (like FF
does) 

Right now we do something like this:

<span style="font-weight: bold">test</span>

document.execCommand("bold", false, null);

<span>test</span>

where as FF would remove the same <span> tags.  After talking with Ojan and
Julie here @ the Goog (who have both written a lot of JS HTML Editing code), we
agree that FF's behavior is more what authors will like.  Authors can trivially
cause us to leave the <span> tags, but adding any attribute.  For example <span
a> would cause us to leave the span tag instead of removing it (after my fix).

Test case (and fix) forthcoming.


-- 
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