diff --git a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js index 1697209f89..fc004f9005 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js @@ -773,7 +773,7 @@ ve.init.mw.ViewPageTarget.static.checkForWikitextWarning = function ( surface, w if ( !selection ) { return; } - node = doc.getBranchNodeFromOffset( selection.start ); + node = doc.getBranchNodeFromOffset( selection.getRange().start ); if ( !( node instanceof ve.ce.ContentBranchNode ) ) { return; }