Phenomenon
When a contenteditable element is inside a cross-origin iframe, CORS restrictions may prevent certain operations. Accessing the contenteditable from the parent frame may be blocked, and some editing operations may be restricted.
Reproduction example
- Create a page with a cross-origin iframe.
- Inside the iframe, create a contenteditable div.
- Try to access the contenteditable from the parent frame.
- Try to programmatically modify the content.
- Observe any CORS-related errors or restrictions.
Observed behavior
- In Safari on macOS, CORS restrictions apply to cross-origin iframes.
- Accessing contenteditable content from parent frame may be blocked.
- Some operations may be restricted due to same-origin policy.
- Error messages may not be clear.
Expected behavior
- CORS restrictions should be clearly documented.
- Or, there should be a standard way to work with cross-origin contenteditable.
- Error messages should be helpful.