[Webkit-unassigned] [Bug 25006] New: Style attribute contents are different after pasting
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 2 11:02:13 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=25006
Summary: Style attribute contents are different after pasting
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
URL: http://www.mozilla.org/editor/midasdemo/
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Editing
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: sullivan at google.com
CC: eric at webkit.org, jparent at google.com
Steps to reproduce:
1. Go to midas demo: http://www.mozilla.org/editor/midasdemo/
2. Enter the following text
a
b
3. Highlight "a" and press Indent button. (Resulting HTML: <blockquote
class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none;
padding: 0px;">a</blockquote><div>b</div>)
4. Select all, copy, and paste at the end. (Resulting HTML: <blockquote
class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none;
padding: 0px;">a</blockquote><div>b</div><div><blockquote
class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px;
margin-bottom: 0px; margin-left: 40px; border-top-style: none;
border-right-style: none; border-bottom-style: none; border-left-style: none;
border-width: initial; border-color: initial; padding-top: 0px; padding-right:
0px; padding-bottom: 0px; padding-left: 0px;
">a</blockquote><div>b</div><div><br></div></div>)
Actual result:
Style attribute of pasted HTML is different than original:
Original: "margin: 0 0 0 40px; border: none; padding: 0px;"
Pasted: "margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left:
40px; border-top-style: none; border-right-style: none; border-bottom-style:
none; border-left-style: none; border-width: initial; border-color: initial;
padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "
Also, if the content is styled by CSS applied to the document, these styles get
added to the inlined pasted CSS as well.
Expected result:
Pasted HTML should be same as original.
--
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