[whatwg] What exactly is contentEditable for?

Lachlan Hunt wrote:
> And, as I demonstrated in an earlier e-mail with the widgEditor I linked 
> to, it's not hard for an author to provide a script that converts the 
> textarea to a WYSIWYG editor using the contentEditable DOM interface. 
> It's not much different from the scripts that are being written to add 
> support for other extensions in today's browsers.

It is important for web applications to be able to make only certain 
parts of a page editable. It is also important to be able to add event 
listeners to the page to capture certain events. From a semantic point 
of view contentEditable is much better than a textarea hack.

Submission could be handled using the 'form' attribute as suggested 
earlier in this thread by Hallvord Reiar Michaelsen Steen. (Perhaps 
allowing the 'name' attribute as well to make it even better.)

Kind regards,

Anne


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>

Received on Wednesday, 24 August 2005 02:03:52 UTC