Bug 23800 - Header elements are not always preserved during paste
Summary: Header elements are not always preserved during paste
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2009-02-06 15:04 PST by Justin Garcia
Modified: 2009-02-06 16:43 PST (History)
1 user (show)

See Also:


Attachments
patch (8.14 KB, patch)
2009-02-06 15:07 PST, Justin Garcia
oliver: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Garcia 2009-02-06 15:04:53 PST
Go to http://www.psc.edu/science/ALCOA/ALCOA-light.html in Safari
Select and copy the bolded word Lightweighting at the top of the page
Paste as HTML into a new empty email 

The text looks the same but it's not inside an H3, like the original.  This impacts the Leopard Server WiKis, as it makes it difficult to remove the H3 styling (it has to be done manually instead of with the paragraph mode controls).

<rdar://problem/4128080>
Comment 1 Justin Garcia 2009-02-06 15:07:09 PST
Created attachment 27422 [details]
patch
Comment 2 Oliver Hunt 2009-02-06 15:12:56 PST
Comment on attachment 27422 [details]
patch

> Index: LayoutTests/editing/execCommand/4128080-2.html
> ===================================================================
> --- LayoutTests/editing/execCommand/4128080-2.html	(revision 0)
> +++ LayoutTests/editing/execCommand/4128080-2.html	(revision 0)
> \ No newline at end of file
> Index: LayoutTests/editing/execCommand/4128080-1.html
> ===================================================================
> --- LayoutTests/editing/execCommand/4128080-1.html	(revision 0)
> +++ LayoutTests/editing/execCommand/4128080-1.html	(revision 0)

> \ No newline at end of file
You should add newlines :D

r=me