public/ckeditor/4.4dev/core/dom/node.js
function( normalized ) {
		var address = [];
		var $documentElement = this.getDocument().$.documentElement;
		var node = this.$;

		while ( node && node != $documentElement ) {
			var parentNode = node.parentNode;

			if ( parentNode ) {
				// Get the node index. For performance, call getIndex
				// directly, instead of creating a new node object.
				address.unshift( this.getIndex.call( { $: node }, normalized ) );
			}

			node = parentNode;
		}

		return address;
	}
function( normalized ) {
		var address = [];
		var $documentElement = this.getDocument().$.documentElement;
		var node = this.$;

		while ( node && node != $documentElement ) {
			var parentNode = node.parentNode;

			if ( parentNode ) {
				// Get the node index. For performance, call getIndex
				// directly, instead of creating a new node object.
				address.unshift( this.getIndex.call( { $: node }, normalized ) );
			}

			node = parentNode;
		}

		return address;
	}
function ( normalized ) { var address = [ ] ; var $documentElement = this . getDocument ( ) . $ . documentElement ; var node = this . $ ; while ( node && node != $documentElement ) { var parentNode = node . parentNode ; if ( parentNode ) { // Get the node index. For performance, call getIndex // directly, instead of creating a new node object. address . unshift ( this . getIndex . call ( { $ : node } , normalized ) ) ; } node = parentNode ; } return address ; }
Retrieves a uniquely identifiable tree address for this node.
The tree address returned is an array of integers, with each integer
indicating a child index of a DOM node, starting from
`document.documentElement`.

For example, assuming `<body>` is the second child
of `<html>` (`<head>` being the first),
and we would like to address the third child under the
fourth child of `<body>`, the tree address returned would be:
`[1, 3, 2]`.

The tree address cannot be used for finding back the DOM tree node once
the DOM tree structure has been modified.

@param {Boolean} [normalized=false] See {@link #getIndex}.
@returns {Array} The address.
Retrieves a uniquely identifiable tree address for this node . The tree address returned is an array of integers with each integer indicating a child index of a DOM node starting from document . documentElement .