Given a <div>Multiple Spaces</div>
When I copy the content of it
Then I should get Multiple Spaces
Actual Behaviour
Given a <div>Multiple Spaces</div>
When I copy the content of it
Then I actually get Multiple Spaces
To Reproduce
Add any two or more space for a element content
Execute the copy command
You'll get a squished text
Browsers Affected
Brave
Chrome
Not tested others
Operational System
13.3.1 (a) (22E772610a) Apple M2
Temporary Solutions
Set the text into an attribute like data-clipboard-text instead use a tag content. By the way the browser squish it too, so display the text for a plain user copy is not a cool thing.
Question
Is there any way of add a innerText or innerHTML option?
🐛 Bug Report
Expected Behaviour
Given a
<div>Multiple Spaces</div>
When I copy the content of it Then I should getMultiple Spaces
Actual Behaviour
Given a
<div>Multiple Spaces</div>
When I copy the content of it Then I actually getMultiple Spaces
To Reproduce
Browsers Affected
Not tested others
Operational System
13.3.1 (a) (22E772610a) Apple M2
Temporary Solutions
Set the text into an attribute like
data-clipboard-text
instead use a tag content. By the way the browser squish it too, so display the text for a plain user copy is not a cool thing.Question
Is there any way of add a
innerText
orinnerHTML
option?