5 const italic
= document
.createElementNS('http://www.w3.org/1999/xhtml', 'i')
7 document
.documentElement
.contentEditable
= 'true'
8 const selection
= document
.getSelection()
9 const range
= selection
.getRangeAt(0)
10 const attribute
= italic
.attributes
.getNamedItem('dir')
11 range
.setEnd(attribute
, (2361162229 % attribute
.childNodes
))
12 document
.queryCommandState('heading')
15 document
.addEventListener('DOMContentLoaded', start
)