Contents

browserAccessibilitySelectedTextRange()

Returns the range of selected text in the element.

Declaration

func browserAccessibilitySelectedTextRange() -> NSRange

Return Value

The selection’s range. If there’s no selection, returns (0, NSNotFound).

See Also

Improving browser accessibility