@bender-ui: collapsed @bender-tags: ticket, 462, 0.4.0, iteration4
Open console and inspect a paragraph in editable. Remember to not blur editor after setting selection.
Expected results:
<em></em> was inserted into editable (along with filler characters).
editor.document.selection.hasAttribute( 'italic' ) returns true.
document.getSelection().anchorNode.parentNode returns <em> element.
Expected results:
<strong> element from previous test got removed.
<strong> element got broken.
editor.document.selection.hasAttribute( 'bold' ) returns false.
document.getSelection().anchorNode returns <p> element.