Copy any text from input element to content-editable region, WebKit adds "white-space: pre" style to the text. Reproduction steps: 1. Go http://www.mozilla.org/editor/midasdemo/ 2. Go HTML source mode, and put <input> 3. Go back to WYSIWYG mode, and type something in the input element. 4. Copy & paste what you typed in the element to outside. 5. "white-space: pre" is added to this text. Check it on HTML source mode. This bug causes major websites such as Gmail to include "white-space: pre" in outgoing e-mails.
I have a feeling that WebKit is explicitly adding white-space: pre to input element. +ap for her expertise on forms.
I do not know anything about this specifically, but without "white-space: pre", multiple spaces would be contracted to one space. Just try "<p>l l</p>" in an HTML document. Contenteditable inserts NBSPs to avoid this, but this trick cannot be used with form elements. Perhaps it can be used when serializing content for pasteboard, but to start considering this, it would help to know why the current behavior is a problem.
(In reply to comment #2) > Just try "<p>l > l</p>" in an HTML document. That was meant to be "l", many spaces, "l".
(In reply to comment #2) > I do not know anything about this specifically Sorry wrong username. I meant to add Adele. +adele & -ap. Sorry about the confusion.