[Webkit-unassigned] [Bug 12319] Paste of simple rich text results in way too verbose markup

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 29 17:38:54 PDT 2012


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


Ryosuke Niwa <rniwa at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED




--- Comment #3 from Ryosuke Niwa <rniwa at webkit.org>  2012-03-29 17:38:54 PST ---
(In reply to comment #2)
> I hope you don't mind reopening this to reconsider.  This is definitely not minimal, because it doesn't take nested context into account.  How about:
> 
> <div style="font-family: Helvetica; font-size: 12px;"> <!-- But only if this div's container is NOT already helvetica or 12px -->
> <p style="margin: 0px;">foo</p> <!-- in this case, we want each paragraph to have its own zero margin
> <p style="margin: 0px;">bar</p>
> <p style="margin: 0px;">baz</p>
> </div>

I don't think we want do this. The goal here is not to generate the minimal markup. If that were the goal, we must be generating

<a style="font: Helvetica 12px;"><p style="margin:0">foo</p><p style="marin:0">bar</p><p style="margin:0">baz</p></a>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list