[Webkit-unassigned] [Bug 20215] execCommand('underline') can't remove <U> underlines

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 23 00:30:54 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=20215





------- Comment #3 from eric at webkit.org  2009-01-23 00:30 PDT -------
This is basically the same as bug

I've written a test.  Our current results:

Test to make sure we remove span tags with no attributes if we removed the last
attribute.

On success, you will see a series of "PASS" messages, followed by "TEST
COMPLETE".


FAIL one underline command converted test to <span class="Apple-style-span"
style="text-decoration: underline;">test</span>, expected <u>test</u>
PASS two underline commands converted test to test
FAIL one strikethrough command converted test to <span class="Apple-style-span"
style="text-decoration: line-through;">test</span>, expected <s>test</s>
PASS two strikethrough commands converted test to test
FAIL one strikethrough command converted <u>test</u> to <u><span
class="Apple-style-span" style="text-decoration:
line-through;">test</span></u>, expected <s><u>test</u></s>
FAIL one underline command converted <s>test</s> to <s><span
class="Apple-style-span" style="text-decoration: underline;">test</span></s>,
expected <u><s>test</s></u>
FAIL one strikethrough command converted <span style='text-decoration:
overline'>test</span> to <span class="Apple-style-span" style="text-decoration:
line-through;">test</span>, expected <s><span style='text-decoration:
overline'>test</span></s>
FAIL one underline command converted <span style='text-decoration:
overline'>test</span> to <span class="Apple-style-span" style="text-decoration:
underline;">test</span>, expected <u><span style='text-decoration:
overline'>test</span></u>
PASS successfullyParsed is true

TEST COMPLETE


Of course FF does even worse, since FF seems to want to put the styling on the
containing div, instead of inserting a <u> or a <span> inside the editable div
(like my results expect).

On success, you will see a series of "PASS" messages, followed by "TEST
COMPLETE".
FAIL one underline command converted test to test, expected <u>test</u>
PASS two underline commands converted test to test
FAIL one strikethrough command converted test to test, expected <s>test</s>
PASS two strikethrough commands converted test to test
FAIL one strikethrough command converted <u>test</u> to <u>test</u>, expected
<s><u>test</u></s>
FAIL one underline command converted <s>test</s> to <s>test</s>, expected
<u><s>test</s></u>
FAIL one strikethrough command converted <span style='text-decoration:
overline'>test</span> to <span style="text-decoration: overline;">test</span>,
expected <s><span style='text-decoration: overline'>test</span></s>
FAIL one underline command converted <span style='text-decoration:
overline'>test</span> to <span style="text-decoration: overline;">test</span>,
expected <u><span style='text-decoration: overline'>test</span></u>
PASS successfullyParsed is true

TEST COMPLETE


-- 
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