()
| 600 | } |
| 601 | |
| 602 | function activeElt() { |
| 603 | // IE and Edge may throw an "Unspecified Error" when accessing document.activeElement. |
| 604 | // IE < 10 will throw when accessed while the page is loading or in an iframe. |
| 605 | // IE > 9 and Edge will throw when accessed in an iframe if document.body is unavailable. |
| 606 | var activeElement |
| 607 | try { |
| 608 | activeElement = document.activeElement |
| 609 | } catch (e) { |
| 610 | activeElement = document.body || null |
| 611 | } |
| 612 | while (activeElement && activeElement.shadowRoot && activeElement.shadowRoot.activeElement) { |
| 613 | activeElement = activeElement.shadowRoot.activeElement |
| 614 | } |
| 615 | return activeElement |
| 616 | } |
| 617 | |
| 618 | function addClass(node, cls) { |
| 619 | var current = node.className |
no outgoing calls
no test coverage detected