`editor.doesElementContainSelection`

Thank you. I've had good reviewers.