This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25617 - This is not entirely clear on what happens if contentEditable elements contain elements that are not contentEditable - what happens if the user wants to delete the non-editable element?
Summary: This is not entirely clear on what happens if contentEditable elements contai...
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-08 23:57 UTC by contributor
Modified: 2014-05-12 12:46 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2014-05-08 23:57:24 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html
Multipage: http://www.whatwg.org/C#contenteditable
Complete: http://www.whatwg.org/c#contenteditable
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
This is not entirely clear on what happens if contentEditable elements contain
elements that are not contentEditable - what happens if the user wants to
delete the non-editable element?

I'd expect the correct answer is "the element will be deleted, since the
container is editable".

Posted from: 74.125.59.177
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1982.0 Safari/537.36
Comment 1 Ian 'Hixie' Hickson 2014-05-09 17:28:13 UTC
I believe this is covered by the HTML Editing APIs spec:
   https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html
Comment 2 Rachel Blum 2014-05-09 20:09:17 UTC
It probably does, thanks for pointing me there. (Still parsing the spec, will file bug on editing spec if it turns out it doesn't cover case in question)