Consider merging https://chromium.googlesource.com/chromium/blink/+/496b731fbfccba1a4ac26e44a34e0e8ea70b0a80 Isolate elements are treated as neutral in UBA however Blink UBA implementation iterates over all the isolate characters. The purpose of this patch is reduce the algorithm complexity skipping isolate elements when found in the UBA. Additionaly, rename the pastEnd variable to lastParagraphEnded.