WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
12198
execcommand italic and bold commands should generate <i> and <b>
https://bugs.webkit.org/show_bug.cgi?id=12198
Summary
execcommand italic and bold commands should generate <i> and <b>
Anne van Kesteren
Reported
2007-01-10 08:31:01 PST
I heard that currently "italic" and "bold" generic something along the lines of: <span style="font-style:italic"> ... </span> that's not really useful. Given that this is mostly used by WYSIWYG editors generating <em> and <strong> isn't particularly useful either (that's what IE does at the moment).
Attachments
test case
(211 bytes, text/html)
2007-04-25 06:26 PDT
,
Alexey Proskuryakov
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Dan POPA
Comment 1
2007-03-05 01:38:45 PST
(In reply to
comment #0
)
> I heard that currently "italic" and "bold" generic something along the lines > of: > > <span style="font-style:italic"> ... </span> > > that's not really useful. Given that this is mostly used by WYSIWYG editors > generating <em> and <strong> isn't particularly useful either (that's what IE > does at the moment). >
Consider implementing document.execCommand("styleWithCSS", false, bool) as in Gecko. When bool is false, formatting commands should use tags instead of styled spans. Use B,I no STRONG,EM.
Dan POPA
Comment 2
2007-03-05 01:48:49 PST
OK, Use STRONG,EM not B,I .
Alexey Proskuryakov
Comment 3
2007-04-25 06:26:20 PDT
Created
attachment 14175
[details]
test case Anne, this seems to work as expected in a current nightly: <i><b>Test</b></i> I do not know if this has changed, or was always so.
Alexey Proskuryakov
Comment 4
2007-04-25 12:37:05 PDT
I've also tried
r18386
(from December 2006), and it also added <b> and <i>. Closing as INVALID. Going to file a separate bug for styleWithCSS.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug