Trailing whitespaces are removed when pasting text in Firefox
OS: Windows 10-11 · Device: Desktop or Laptop Any · Browser: Firefox 120+ · Keyboard: US QWERTY
Open case →Scenario
Trailing whitespaces are removed when pasting text in Firefox
Visual view of how this scenario connects to its concrete cases and environments. Nodes can be dragged and clicked.
Each row is a concrete case for this scenario, with a dedicated document and playground.
| Case | OS | Device | Browser | Keyboard | Status |
|---|---|---|---|---|---|
| ce-0302-firefox-trailing-whitespace-paste-en | Windows 10-11 | Desktop or Laptop Any | Firefox 120+ | US QWERTY | draft |
Open a case to see the detailed description and its dedicated playground.
OS: Windows 10-11 · Device: Desktop or Laptop Any · Browser: Firefox 120+ · Keyboard: US QWERTY
Open case →Other scenarios that share similar tags or category.
After pasting content into a contenteditable region, the caret position does not end up at the expected location, sometimes jumping to the beginning of the pasted content or to an unexpected position.
Architecting a consistent document state by neutralizing browser inconsistencies in HTML insertion and character encoding.
When editing content inside an element with `position:relative`, the text caret (cursor) is completely invisible. Text can be typed and appears in the editor, but there's no visual feedback of where the insertion point is located.
When using the Clipboard API (navigator.clipboard.readText() or navigator.clipboard.read()) to programmatically paste content into a contenteditable region, the paste operation may fail or not work as expected.
Editing text within code blocks (<pre><code>) in contenteditable elements behaves inconsistently across browsers. Line breaks, indentation, whitespace preservation, and formatting may be handled differently, making it difficult to maintain code formatting.
Have questions, suggestions, or want to share your experience? Join the discussion below.