[whatwg] Proposal: Undeletable elements within contentEditable

Joseph Thomas jthoma12 at calpoly.edu
Thu Jun 24 13:48:25 PDT 2010


> Date: Thu, 24 Jun 2010 20:08:50 +0400
> From: Nikita Vasilyev <me at elv1s.ru>

> The current version of spec http://www.whatwg.org/specs/web-apps/current-work/multipage/editing.html#contenteditable
> does not define any way to make an element within contentEditable
> undeletable. I propose "undeletable" attribute:

It seems like the ideal way to handle this would be to handle the
MutationEvent (and cancel it, but unfortunately they are
non-cancelable. Perhaps a set of cancelable events, i.e.
UserMutationEvent.

( see http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgroupings-mutationevents
)


More information about the whatwg mailing list