Kaynağa Gözat

Docs and minor test naming fix.

Aleksander Nowodzinski 5 yıl önce
ebeveyn
işleme
8715e0dc90

+ 3 - 2
packages/ckeditor5-engine/src/model/range.js

@@ -502,8 +502,9 @@ export default class Range {
 	}
 
 	/**
-	 * Returns an element contained by a range. The element will be returned when it is the **only** node
-	 * within the range and **fully–contained** at the same time.
+	 * Returns an {@link module:engine/model/element~Element Element} contained by a range.
+	 * The element will be returned when it is the **only** node within the range and **fully–contained**
+	 * at the same time.
 	 *
 	 * @returns {module:engine/model/element~Element|null}
 	 */

+ 1 - 1
packages/ckeditor5-engine/tests/model/range.js

@@ -1351,7 +1351,7 @@ describe( 'Range', () => {
 		} );
 	} );
 
-	describe( 'getContainerElement()', () => {
+	describe( 'getContainedElement()', () => {
 		beforeEach( () => {
 			prepareRichRoot( root );
 		} );