Bug 12321

Summary: Bold, italic text should be optionally marked up as <b>, <strong>, etc.
Product: WebKit Reporter: Dan Wood <dwood>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Severity: Normal Keywords: InRadar
Priority: P2    
Version: 420+   
Hardware: Macintosh   
OS: OS X 10.4   

Description Dan Wood 2007-01-18 12:43:52 PST
To reproduce:

0. Launch Blot_editableDiv_showSource, my modified version of "Blot" available from <http://dan.karelia.com/webkit/Blot_editableDiv_showSource.zip> with DYLD_FRAMEWORK_PATH pointing to TOT.  (I'm using r18941)

1. Click on the top panel
2. Type some text
3. Select some of it
4. Hit command-B.
5. Likewise, make something italic

Result:  The bolded text is surrounded in a verbose, heavy span, e.g.: <span class="Apple-style-span" style="font-weight: bold;">webkats</span>

There needs to be a programable ability to specify that bold/italic text should be marked up as <b>/<i> or <strong>/<em> instead of the font-weight style span

Note also that the internal apple class should not be there.
Comment 1 Mark Rowe (bdash) 2008-01-12 19:10:25 PST
Comment 2 Justin Garcia 2008-02-01 12:58:25 PST
This will be address by:

<https://bugs.webkit.org/show_bug.cgi?id=13490> Implement execCommand("styleWithCSS", ...)

*** This bug has been marked as a duplicate of 13490 ***