()
| 112 | } |
| 113 | |
| 114 | function activeElt() { |
| 115 | // IE and Edge may throw an "Unspecified Error" when accessing document.activeElement. |
| 116 | // IE < 10 will throw when accessed while the page is loading or in an iframe. |
| 117 | // IE > 9 and Edge will throw when accessed in an iframe if document.body is unavailable. |
| 118 | var activeElement; |
| 119 | try { |
| 120 | activeElement = document.activeElement; |
| 121 | } catch(e) { |
| 122 | activeElement = document.body || null; |
| 123 | } |
| 124 | while (activeElement && activeElement.shadowRoot && activeElement.shadowRoot.activeElement) |
| 125 | { activeElement = activeElement.shadowRoot.activeElement; } |
| 126 | return activeElement |
| 127 | } |
| 128 | |
| 129 | function addClass(node, cls) { |
| 130 | var current = node.className; |
no outgoing calls
no test coverage detected