Scenario

contenteditable behavior differs when inside an iframe

When a contenteditable region is inside an iframe, its behavior may differ from when it's in the main document. Selection, focus, and event handling may be inconsistent.

other
Scenario ID
scenario-contenteditable-iframe

Details

When a contenteditable region is inside an iframe, its behavior may differ from when it’s in the main document. Selection, focus, and event handling may be inconsistent.

References

Scenario flow

Visual view of how this scenario connects to its concrete cases and environments. Nodes can be dragged and clicked.

React Flow mini map

Variants

Each row is a concrete case for this scenario, with a dedicated document and playground.

Case OS Device Browser Keyboard Status
ce-0048-contenteditable-in-iframe Windows 11 Desktop or Laptop Any Edge 120.0 US draft

Cases

Open a case to see the detailed description and its dedicated playground.

Related Scenarios

Other scenarios that share similar tags or category.

Tags: iframe

contenteditable behavior is restricted inside sandboxed iframes

When contenteditable elements are inside an iframe with the sandbox attribute, their behavior may be restricted or broken depending on which sandbox tokens are enabled. Without allow-scripts or allow-same-origin, many contenteditable features (like rich text editing, clipboard access, or event handling) may not work properly.

0 cases

Comments & Discussion

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