W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2005

[whatwg] What exactly is contentEditable for?

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Mon, 15 Aug 2005 21:47:24 +1000
Message-ID: <430080CC.2010005@lachy.id.au>
Anne van Kesteren wrote:
> Quoting dolphinling <dolphinling at myrealbox.com>:
>> Perhaps I've missed something, but while I've seen lots on what 
>> contentEditable does and how it works and how various other things are 
>> associated with it, I've never actually seen anything explaining *why* 
>> it exists. So... what's it good for?
> Could you be more specific? It basically enables WYSIWYG editing for web 
> pages.
> (With the freedom that you can restrict certain elements from being 
> edited, et
> cetera.)

How is that any different from a text area form control with a specified 
accept type of text/html, which would allow a UA to load any external 
editor (eg. XStandard) or degrade to a regular text area?


<textarea content-type="text/html">
&lt;p&gt;Markup goes in here.  User can edit with plain text editor or 
UA can load WYSIWYG editor for text/html (or whatever ever MIME type is 

That would be a far better option than using contentEditable, which is 
not only conceptually broken, but *all* implementations of it are so 
incredibly broken, that trying to standardise it is like dragging a dead 
horse through mud.

Lachlan Hunt
Received on Monday, 15 August 2005 04:47:24 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:42 UTC