[webkit-dev] [HTML Editing] WebKit's implementation of removeFormat is completely different from other UAs.

Ryosuke Niwa rniwa at webkit.org
Mon Jul 26 16:37:04 PDT 2010

Filed as Bug 43017 - removeFormant needs to be


On Mon, Jul 26, 2010 at 4:27 PM, Ryosuke Niwa <rniwa at webkit.org> wrote:

> On Mon, Jul 26, 2010 at 1:10 PM, Maciej Stachowiak <mjs at apple.com> wrote:
>>  I agree.  We should test and see what other browsers do in various
>> cases.
>> But since it's impossible for us to enumerate every possible formatting, I
>> propose to just remove text-decoration, font-weight, etc... and the
>> corresponding presentational elements probably using ApplyStyleCommand as a
>> starting point.  We can then file a separate bug or so to uncover edge cases
>> and polish the behavior.
>> Sure it's possible. We can test every CSS property and every HTML element.
>> It should be easy to write a test case that checks every case exhaustively.
>> I don't think it makes sense to change our behavior based on a guess of what
>> other browsers do.
> I don't think that captures all possible formatting because CSS in
> particular has interesting effects when combined with other styles. What I
> meant is that we can't test every combination of all CSS properties & HTML
> elements (i.e. enumerating every possible DOM with every possible
> combinations of CSS properties applied every possible way on each DOM)
> simply because there are infinitely many of them. Although I'd guess that
> some of them are reputations so we might be able to find a finite subset
> that suffice the purpose. anyhow, I agree that testing every CSS property
> and every HTML element will be a good idea.  That'll at least give us a
> starting point.
> Best,
> Ryosuke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100726/343e1e21/attachment.html>

More information about the webkit-dev mailing list