Browser issue Editing a list and adding an hyperlink to the list

I can reproduce this though it looks like a browser issue as we mostly just use the browser when linking elements. It's adding an <a> tag immediately after the </li> for some reason. It only happens when you have the whole <li> selected - it looks like the browser changes the selection to select the <li> itself.
 
Top Bottom