mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Follow-up If556afa10: Fix typo: nodeType -> nodeName
Change-Id: I19915647981787f7bbf2c86fc7bd02308d5da218
This commit is contained in:
parent
d3d81ca258
commit
074f7bcefe
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue