-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selection.getRangeAt(). getRangeAt() issue on Safari #11457
Comments
Thanks for the report! Which script is producing the error? I'm asking because #4872 did not add a Other examples checking for
|
@ocean90 how about adding the condition on all |
Is this fixed in #11209? |
@johngodley Thanks! That's the fixes I've added too and it's working fine :) Hoping it'll got merge soon. Thanks again! |
Closing per confirmation at #11457 (comment) . Noting there were similar recent issues in Safari, also fixed in #15576 (expected for Gutenberg 5.7 / WordPress 5.2.1). |
@youknowriad I'm suddenly getting error on safari regarding
const range = getSelection().getRangeAt( 0 );
. It says:IndexSizeError: DOM Exception 1: Index or size was negative, or greater than the allowed value.
Seems like safari doesn't fully support it yet : https://developer.mozilla.org/en-US/docs/Web/API/Selection/getRangeAt .
Thanks!
-- copied from my comment here : #4872 . Thanks!
The text was updated successfully, but these errors were encountered: