Correct typo
Clearify code in ranges
Don't mutate the DOM in trimPreceedingNodes()