Replace `Element.contains` with `Element.compareDocumentPosition`
Merge pull request #13 from metalabdesign/fix_selection_event_ie

Replace `Element.contains` with `Element.compareDocumentPosition`