Bug 12321
| Summary: | Bold, italic text should be optionally marked up as <b>, <strong>, etc. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Dan Wood <dwood> |
| Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | Keywords: | InRadar |
| Priority: | P2 | ||
| Version: | 420+ | ||
| Hardware: | Mac | ||
| OS: | OS X 10.4 | ||
Dan Wood
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Mark Rowe (bdash)
<rdar://problem/5685602>
Justin Garcia
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 ***