Add Element.contains polyfill.