Case ce-0107-blockquote-enter-safari · Scenario scenario-blockquote-behavior

Pressing Enter in blockquote may create nested blockquotes in Safari

OS: macOS 14.0 Device: Desktop or Laptop Any Browser: Safari 17.0 Keyboard: US Status: draft
blockquote nested enter safari

Phenomenon

When pressing Enter inside a blockquote element in Safari, nested blockquote structures may be created unexpectedly. This breaks the intended quote structure and creates invalid or confusing HTML.

Reproduction example

  1. Create a blockquote: <blockquote><p>Quoted text</p></blockquote>
  2. Place cursor inside the blockquote text
  3. Press Enter

Observed behavior

  • A nested blockquote may be created: <blockquote><p>Text</p><blockquote><p></p></blockquote></blockquote>
  • Or the blockquote structure may break
  • DOM structure becomes malformed
  • Visual appearance may be unexpected

Expected behavior

  • A new paragraph should be created within the same blockquote
  • No nested blockquotes should be created
  • Blockquote structure should be maintained
  • Behavior should be consistent with Chrome/Edge

Browser Comparison

  • Chrome/Edge: Creates paragraph within blockquote (correct)
  • Firefox: May break blockquote structure
  • Safari: May create nested blockquotes (this case)

Notes and possible direction for workarounds

  • Intercept Enter key in blockquote context
  • Prevent default behavior
  • Manually create paragraph within blockquote
  • Normalize blockquote structure after operations
Before

Quoted text

blockquote element, cursor inside text
→
After Enter (Bug)

Quoted text

Enter creates nested blockquote (incorrect structure)
vs
✅ Expected

Quoted text

Expected: New paragraph created within same blockquote

Browser compatibility matrix

This matrix shows which browser and OS combinations have documented cases for this scenario. The current case is highlighted. Click on a cell to view other cases.

Current case
Confirmed
Draft
— No case documented

All variants (detailed table)

Complete list of all cases for this scenario with full environment details.

Case OS Device Browser Keyboard Status
ce-0107-blockquote-enter-safari macOS 14.0 Desktop or Laptop Any Safari 17.0 US draft
ce-0137-blockquote-exit-difficult Windows 11 Desktop or Laptop Any Chrome 120.0 US draft
ce-0156-blockquote-nested-on-paste Windows 11 Desktop or Laptop Any Safari 17.0 US draft
ce-0169-blockquote-formatting-breaks Windows 11 Desktop or Laptop Any Firefox 120.0 US draft

Playground for this case

Use the reported environment as a reference and record what happens in your environment while interacting with the editable area.

Reported environment
OS: macOS 14.0
Device: Desktop or Laptop Any
Browser: Safari 17.0
Keyboard: US
Your environment
Sample HTML:
Event log
Use this log together with the case description when filing or updating an issue.
0 events
Interact with the editable area to see events here.

Comments & Discussion

Have questions, suggestions, or want to share your experience? Join the discussion below.