This adds a call to getRootNode to get either the Document or the ShadowRoot to use when calculating whether the textarea has focus. getRootNode is guarded for older browser compatibility (IE).
This adds a call to getRootNode to get either the Document or the ShadowRoot to use when calculating whether the textarea has focus. getRootNode is guarded for older browser compatibility (IE).