From a6b2eee9c383668a18ee467b96179dccd67af715 Mon Sep 17 00:00:00 2001 From: n-sviridenko Date: Fri, 9 Aug 2019 21:50:08 +0200 Subject: [PATCH] recognize self-closing tags --- lib/microdataToRdf.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/microdataToRdf.js b/lib/microdataToRdf.js index 95fa7d1..aa61990 100644 --- a/lib/microdataToRdf.js +++ b/lib/microdataToRdf.js @@ -12,7 +12,8 @@ function microdataToRdf (html, config) { var registry = config.registry; var dom = microdataDom(htmlparser.parseDOM(html, { - decodeEntities: true + decodeEntities: true, + recognizeSelfClosing: true }), config); var nextId = 0;