@bender-ui: collapsed
@bender-tags: ticket, 462, 0.4.0, iteration4
### Selection attributes conversion test [#462](https://github.com/ckeditor/ckeditor5-engine/issues/462)
Open console and inspect a paragraph in editable. Remember to not blur editor after setting selection.
#### Test 1
1. Put caret inside unstyled word.
2. Press italic key in toolbar.
Expected results:
`` was inserted into editable (along with filler characters).
`editor.document.selection.hasAttribute( 'italic' )` returns `true`.
`document.getSelection().anchorNode.parentNode` returns `` element.
#### Test 2
1. Put caret inside bold word.
2. Press bold key in toolbar.
Expected results:
`` element from previous test got removed.
`` element got broken.
`editor.document.selection.hasAttribute( 'bold' )` returns `false`.
`document.getSelection().anchorNode` returns `` element.