Binary serach for insert and range delete. ref() returns DOM-node instead of HTML-string.