Skip to content
Advertisement

html5, what is isContentEditable?

chrome supports the isContentEditable property (lists it in the “Inspect Element”), but reports false for INPUT, FORM – actually, everything.

too me, for example, seems that INPUT, non-readonly, should be true.

does anybody know what’s going on?

Advertisement

Answer

isContentEditable doesn’t have anything to do with forms and input boxes. It was designed to be a way to flag inline editable html content.

You can see a working example here: http://www.navioo.com/javascript/dhtml/isContentEditable_Example_4513.html

You can read about it

here: http://www.w3.org/TR/2009/WD-html5-20090423/editing.html

or: http://blog.whatwg.org/the-road-to-html-5-contenteditable

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement