metalabdesign/wysihtml5 — pull request #13 by mogstad (2013-12-11 16:08:30+00:00)
Title: Replace `Element.contains` with `Element.compareDocumentPosition`

`Element.contains` doesn't work for text nodes.