Summary: | WebKit execCommand bold/italic should remove strong/em tags (since IE inserts them) | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> | ||||
Component: | HTML Editing | Assignee: | Eric Seidel (no email) <eric> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | jparent, justin.garcia, ojan | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.5 | ||||||
Attachments: |
|
Description
Eric Seidel (no email)
2009-01-22 16:58:31 PST
Created attachment 26948 [details]
Remove <strong>/<em> when toggling bold/italic to match IE (not FF)
LayoutTests/ChangeLog | 9 +++++++++
.../editing/execCommand/toggle-styles-expected.txt | 4 ++--
WebCore/ChangeLog | 12 ++++++++++++
WebCore/editing/ApplyStyleCommand.cpp | 6 ++++--
4 files changed, 27 insertions(+), 4 deletions(-)
Why do we want to diverge from ffx? "<insert name here> recommends" is not valid justification Actually, I didn't give the right information. FF's current behavior is clearly wrong IMO. So we're not really diverging. We're diverging from our old behavior, which if you're a semantic web lover, is possibly more "correct" than this new behavior... but less useful, and less IE-compatible. <strong>foo</strong> document.execCommand("bold") produces: WebKit trunk: <strong><span class="Apple-style-span" style="font-weight: normal;">test</span></strong> IE: test FF <strong>test</strong> // clearly wrong IMO after patch: test Comment on attachment 26948 [details]
Remove <strong>/<em> when toggling bold/italic to match IE (not FF)
Seems OK. r=me
Landed. |