dom-align
dom-align copied to clipboard
make sure activeElement has focus method then activeElement.focus()
In IE11, If activeElement is a svg element, call focus() method cause error.
Internet Explorer Version: 11.0.9600.18893IS

demo
<body>
<svg>
<circle id="mycircle" cx="400" cy="300" r="50" />
<svg>
</body>