Today in any current browser you can do execCommand("bold") to embolden text.
Indeed. And it will work, provided you haven't used Backspace to collapse your selection to the start of a DIV in IE. And you haven't selected your text by SHIFT+Left Arrow such that it oversteps the beginning of an editable paragraph and enters the no-mans-land between it and the non-editable div before it in Firefox. And you haven't previously issued an "insertorderedlist", causing the known issue in IE. And that you didn't issue your contentEditable=true as the result of the mouse click that placed the caret inside the text of a H1 tag.
And dozens of other tiny things that continually jump out to bite you that need to be worked around in every single browser just to get it to work.
So yes, I'll grant you "technically possible", but not anything beyond that.
Indeed. And it will work, provided you haven't used Backspace to collapse your selection to the start of a DIV in IE. And you haven't selected your text by SHIFT+Left Arrow such that it oversteps the beginning of an editable paragraph and enters the no-mans-land between it and the non-editable div before it in Firefox. And you haven't previously issued an "insertorderedlist", causing the known issue in IE. And that you didn't issue your contentEditable=true as the result of the mouse click that placed the caret inside the text of a H1 tag.
And dozens of other tiny things that continually jump out to bite you that need to be worked around in every single browser just to get it to work.
So yes, I'll grant you "technically possible", but not anything beyond that.