[Webkit-unassigned] [Bug 23496] execCommand('bold') will remove <b style='font-style:italic'>, it should probably replace it with <span foo='bar'>
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 22 23:59:59 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=23496
------- Comment #1 from eric at webkit.org 2009-01-22 23:59 PDT -------
Firefox did slightly better:
Test to make sure we do not remove extra styling hidden on html styling
elements (b, i, s, etc.) when removing those elements.
On success, you will see a series of "PASS" messages, followed by "TEST
COMPLETE".
FAIL one underline command converted <u style='font-weight: bold'>test</u> to
<span style="font-weight: bold;">test</span>, expected <b>test</b>
FAIL one bold command converted <b style='text-decoration: underline'>test</b>
to <span style="text-decoration: underline;">test</span>, expected <u>test</u>
FAIL one strikethrough command converted <s style='text-decoration: underline;
font-weight: bold'>test</s> to <s style="text-decoration: underline;
font-weight: bold;">test</s>, expected <b><u>test</u></b>
PASS one bold command converted <b style='text-decoration: overline'>test</b>
to <span style="text-decoration: overline;">test</span>
FAIL one underline command converted <u foo='bar'>test</u> to test, expected
<span foo="bar">test</span>
PASS successfullyParsed is true
TEST COMPLETE
At least their styling looks correct after the commands, even if the resulting
html doesn't look exactly as expected. FF also fails to maintain foo="bar",
which I'm not sure if we care about our not.
--
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