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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 15 13:49:59 PST 2009


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





------- Comment #2 from eric at webkit.org  2009-01-15 13:49 PDT -------
This is our current behavior:

<u style=""><span class="Apple-style-span" style="text-decoration:
none;">foo</span></u>

Which seems at least partially caused by this code:

void
ApplyStyleCommand::removeInlineStyle(PassRefPtr<CSSMutableStyleDeclaration>
style, const Position &start, const Position &end)


   RefPtr<CSSValue> textDecorationSpecialProperty =
style->getPropertyCSSValue(CSSPropertyWebkitTextDecorationsInEffect);

   if (textDecorationSpecialProperty) {
       pushDownTextDecorationStyleAtBoundaries(start.downstream(),
end.upstream());
       style = style->copy();
       style->setProperty(CSSPropertyTextDecoration,
textDecorationSpecialProperty->cssText(),
style->getPropertyPriority(CSSPropertyWebkitTextDecorationsInEffect));
   }

Which I don't understand why it exists.


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