Index: /CKEditor/branches/features/pasting/_source/plugins/pastefromword/plugin.js
===================================================================
--- /CKEditor/branches/features/pasting/_source/plugins/pastefromword/plugin.js	(revision 4458)
+++ /CKEditor/branches/features/pasting/_source/plugins/pastefromword/plugin.js	(revision 4459)
@@ -111,8 +111,8 @@
 	};
 
-	elementPrototype.nearestParent = function( tagName )
+	elementPrototype.getAncestor = function( tagName )
 	{
 		var parent = this.parent;
-		while( parent && !parent.name == tagName )
+		while( parent && parent.name != tagName )
 			parent = parent.parent;
 		return parent;
@@ -689,5 +689,5 @@
 					{
 						// 'td' in 'thead' is actually <th>.
-						if ( element.nearestParent( 'thead') )
+						if ( element.getAncestor( 'thead') )
 							element.name = 'th';
 					},
