diff --git a/modules/ve2/dm/annotations/ve.dm.LinkAnnotation.js b/modules/ve2/dm/annotations/ve.dm.LinkAnnotation.js index ed57c27d84..91a8c44ff3 100644 --- a/modules/ve2/dm/annotations/ve.dm.LinkAnnotation.js +++ b/modules/ve2/dm/annotations/ve.dm.LinkAnnotation.js @@ -23,7 +23,7 @@ ve.dm.LinkAnnotation.converters = { 'domElementTypes': ['a'], 'toDomElement': function( subType, annotation ) { if ( annotation.type ) { - var link = dom.createElement( 'a' ); + var link = document.createElement( 'a' ); link.setAttribute( 'data-type', 'link/' + subType ); return link; }