Copied text via doubleclick has whitespace in this site

Discussion of bugs in Mozilla Firefox
Post Reply
darkred
Posts: 240
Joined: March 13th, 2010, 6:10 am

Copied text via doubleclick has whitespace in this site

Post by darkred »

It'about bugmenot.com

When copying any user/pass text, it contains leading spaces.
e.g.
if the username is 'abc' then the copied text is

Code: Select all

'    abc' 
(i.e it has 4 leading spaces).

Examining the HTML code in inspector reveals that there's no whitespace in there:

Code: Select all

<dl><dt>Username:</dt>
<dd><kbd>abc</kbd></dd>
<dt>Password:</dt>
<dd><kbd>abc</kbd></dd>
To reproduce (using either Nightly 51 or FF 48 x64)
please click this link and then open any of the 6 displayed results:
https://www.google.com/#q=bugmenot

In all other browsers I tested (Chrome 52, Edge 11, IE 11) the issue doesn't occur.
I filed this bug: 1298706 - Copied text (that is enclosed in <kbd> in HTML) via doubleclicking has leading whitespace tags in this site
Last edited by darkred on August 29th, 2016, 1:13 pm, edited 2 times in total.
'(Firefox for desktop) list fixed bugs in Mercurial' userscript:
as a list: v4.2.2 and, as a sortable table: either v5.5.4 (for all channel users) or v5.5.4 (especially for inbound users).
My other userscripts: GreasyFork OpenUserJS
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Copied text via doubleclick has whitespace in this site

Post by therube »

I've seen that too.

Code: Select all

<dt>Password:</dt><dd><kbd>blablabla</kbd></dd>
Maybe that means something to someone?


The same happens here, http://www.w3schools.com/tags/tryit.asp ... efault_css.
When you copy 'Keyboard input', you end up with ' Keyboard input '.
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Post Reply