This also adds emulation of Element.setCapture() as only Firefox and Internet Explorer/Edge currently supports it.