getCursorPosition doesn't need a container parameter