UIWebView wraps pasted text in <font size="3">

Originator:heath.borders
Number:rdar://13606025 Date Originated:08-Apr-2013 11:50 PM
Status:Open Resolved:
Product:iPad SDK Product Version:6.1
Classification:Serious Bug Reproducible:Always
 
08-Apr-2013 11:50 PM Heath Borders:
Summary:
Pasting text into a contenteditable element with a font-size style defined wraps the pasted text in <font size="3">.

Steps to Reproduce:
1. Run the attached project.
2. Paste plain text into the red box
3. Paste plain text into the blue box
4. Click the 'show red' button
5. Click the 'show blue' button

Expected Results:
The 'show red' button should show innerHTML with no <font> element or a <font> element matching the font-size style of the contenteditable div, similar to the output of the 'show blue' button

Actual Results:
The 'show red' button shows innerHTML with the pasted content wrapped in a <font size="3"> element.

Regression:

Notes:


08-Apr-2013 11:50 PM Heath Borders:
'UIWebViewPlainTextPasteBug.zip' was successfully uploaded

Example project: https://github.com/hborders/UIWebViewPlainTextPasteBug

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!