diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee
index 49af13b98..204ce9fa5 100755
--- a/src/Linkification/Linkify.coffee
+++ b/src/Linkification/Linkify.coffee
@@ -245,8 +245,8 @@ Linkify =
regExp: /(http|www).*\.(gif|png|jpg|jpeg|bmp)$/
style: 'border: 0; width: auto; height: auto;'
el: (a) ->
- el = $.el 'div',
- innerHTML: '
'
+ el = $.el 'div'
+ el.innerHTML = '
'
el.firstChild.href = el.firstChild.firstChild.src = a.dataset.href
el
,