yiminghe/dom-align

make sure activeElement has focus method then activeElement.focus()

yes1am opened this issue · 0 comments

In IE11, If activeElement is a svg element, call focus() method cause error.

Internet Explorer Version: 11.0.9600.18893IS

zm0e170000011s0urBF52

demo

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