User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-GB; rv:126.96.36.199) Gecko/20100625 Firefox/3.6.6 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-GB; rv:188.8.131.52) Gecko/20100625 Firefox/3.6.6 When one selects text from some web pages, copy it, and paste it in a terminal or text editor (e.g. Emacs), extraneous line breaks appear. These line breaks come from the HTML source. This behavior is incorrect because line breaks in text from HTML source are interpreted as normal white space for rendering. Reproducible: Always Steps to Reproduce: 1. Open the above URL. 2. Select all the text. 3. Paste the selection in a terminal or text editor (such as Emacs). Actual Results: The pasted text is: Paragraph with two line breaks in the HTML source. Paragraph without line breaks in the HTML source. Expected Results: The pasted text should be: Paragraph with two line breaks in the HTML source. Paragraph without line breaks in the HTML source. This is the first time I see such a problem. Maybe a regression. This problem doesn't occur on all the pages with line breaks, but when it occurs, it occurs every time.
Created attachment 455601 [details] Testcase (same as given URL) Here's the testcase as an attachment.
I now understand why the problem doesn't always occur: it occurs when the page is served as application/xhtml+xml, but not when it is served as text/html.
Same problem with Iceweasel (Debian's Firefox) 3.5.10 under Linux (Debian).