Range.enlarge() with ENLARGE_ELEMENT argument will stop enlarging when contenteditable attribute is encountered.
Changelog entry.
Merge branch 't/10879' into major