diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-11-28 17:48:31 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-11-28 17:48:31 +0000 |
| commit | 611e0c9af7c1948ad46c5471a426ec751e73a1ea (patch) | |
| tree | 28954bd7f66bd306345f36eebca20df1bd1b07ee /lib/images.js | |
| parent | 5428d4daeebd8d1fa8a67b20e2f8a238d3b0abbf (diff) | |
Call freshElement to create self-closing elements
Diffstat (limited to 'lib/images.js')
| -rw-r--r-- | lib/images.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/images.js b/lib/images.js index fdc3601..fef0ca3 100644 --- a/lib/images.js +++ b/lib/images.js @@ -10,7 +10,7 @@ exports.imgElement = function(func) { if (element.altText) { attributes.alt = element.altText; } - return [Html.selfClosingElement("img", attributes)]; + return [Html.freshElement("img", attributes)]; }); }; }; |
