From 611e0c9af7c1948ad46c5471a426ec751e73a1ea Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 28 Nov 2016 17:48:31 +0000 Subject: Call freshElement to create self-closing elements --- test/document-to-html.tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/document-to-html.tests.js') diff --git a/test/document-to-html.tests.js b/test/document-to-html.tests.js index 2543779..c739900 100644 --- a/test/document-to-html.tests.js +++ b/test/document-to-html.tests.js @@ -581,7 +581,7 @@ test('can add custom handler for images', function() { var converter = new DocumentConverter({ convertImage: function(element, messages) { return element.read("utf8").then(function(altText) { - return [Html.selfClosingElement("img", {alt: altText})]; + return [Html.freshElement("img", {alt: altText})]; }); } }); -- cgit v1.2.3