fix drag and drop bug

when dragging and dropping, fix the error where when one is dragged over
the other an invalid value is dragged, because value instead of
innerHtml is used