I am using my own XBL bindings within XHTML for an editor-like application.
A subtree of the document should be contenteditable (including
XBL-generated content). This works fine as long as the element marked as
contenteditable is an explicit (non-anonymous) element.
Now I would like to start the contenteditable tree in a binding, i.e.
the root of the editable sutree should be an anonymous div element. This
does not seem to work.
Please see example code at http://pastebin.mozilla.org/664560
There a three lines shown by the example (tested with Firefox 3.5.1):
Line 1 should be editable. It is editable but without showing caret.
Line 2 I would like to be editable. But it is not.
Line 3 is only for reference.
Is there any way to do something like this?
Thanks!
Thomas Weiser