diff --git a/modules/ve-mw/ce/nodes/ve.ce.MWExtensionNode.js b/modules/ve-mw/ce/nodes/ve.ce.MWExtensionNode.js index 5bd3a0b7e0..feb6c54bd1 100644 --- a/modules/ve-mw/ce/nodes/ve.ce.MWExtensionNode.js +++ b/modules/ve-mw/ce/nodes/ve.ce.MWExtensionNode.js @@ -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 );