Bug 34799

Summary: In designMode, BACKSPACE generates Apple-style-span tags
Product: WebKit Reporter: Frederico Caldeira Knabben <fredck>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ayg, enrica, rniwa, sullivan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on:    
Bug Blocks: 9915    

Description Frederico Caldeira Knabben 2010-02-10 07:01:52 PST
This one can be easily tested in the CKEditor demo page:
http://ckeditor.com/demo

1. Simply load the following HTML on source view and move back to the WYSIWYG view:
<h1>test</h1><p>test2</p> 

2. Put the caret at the beginning of the "test2" paragraph.

3. Hit BACKSPACE.

Switch back to the source view to check the code. You'll have this:
<h1>test<span class="Apple-style-span" style="font-size: 12px; font-weight: normal; ">test2</span></h1>

The additional <span> tag has been added to the DOM.