/** * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ /** * @ignore * File overview: DOM iterator which iterates over list items, lines and paragraphs. */ 'use strict'; ( function() { /** * Represents the iterator class. It can be used to iterate * over all elements (or even text nodes in case of {@link #enlargeBr} set to `false`) * which establish "paragraph-like" spaces within the passed range. * * //

[foo

bar]

* var iterator = range.createIterator(); * iterator.getNextParagraph(); // h1 element * iterator.getNextParagraph(); // p element * * //