Fixed: INVALID_STATE_ERR: DOM Exception 11 (WebKit). Thanks https://github.com/geksilla