Follow-up If556afa10: Fix typo: nodeType -> nodeName

Change-Id: I19915647981787f7bbf2c86fc7bd02308d5da218
This commit is contained in:
Ed Sanders 2015-09-29 17:35:23 +01:00
parent d3d81ca258
commit 074f7bcefe

View file

@ -153,7 +153,7 @@ ve.ce.MWInlineExtensionNode.prototype.onParseSuccess = function ( deferred, resp
contentNodes = $.parseHTML( data.content );
// Inline nodes may come back in a wrapper paragraph; in that case, unwrap it
if ( contentNodes.length === 1 && contentNodes[ 0 ].nodeType === 'P' ) {
if ( contentNodes.length === 1 && contentNodes[ 0 ].nodeName === 'P' ) {
contentNodes = Array.prototype.slice.apply( contentNodes[ 0 ].childNodes );
}
deferred.resolve( contentNodes );