[whatwg] Submitting contentEditable Content In A Form

Hugh Guiney hugh.guiney at gmail.com
Fri Sep 7 01:57:02 PDT 2012


I'm developing a CMS and would like to be able to submit user-edited
content back to the server, but at present, it's not possible to do
this without copying the contents of the edited element with
JavaScript into, say, a hidden form field. I think that there should
be some mechanism to associate contentEditable elements with
forms—maybe the combination of contentEditable="true" and the presence
of @name creates an implicit form control? The value sent to the
server could be equivalent to that element's innerHTML. Thoughts?


More information about the whatwg mailing list