From 2eaee8e708374ff2ad697c62202b3cd72e54d244 Mon Sep 17 00:00:00 2001 From: bourgeoa Date: Sun, 4 Feb 2024 16:21:46 +0100 Subject: [PATCH] browser --- src/rdfxmlparser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rdfxmlparser.js b/src/rdfxmlparser.js index cc00eebe3..ebe77a711 100644 --- a/src/rdfxmlparser.js +++ b/src/rdfxmlparser.js @@ -330,7 +330,8 @@ export default class RDFParser { frame.datatype = RDFParser.ns.RDF + 'XMLLiteral' frame = this.buildFrame(frame) // Don't include the literal node, only its children - frame.addLiteral(dom.childNodes) + // see https://github.com/linkeddata/rdflib.js/issues/75 + frame.addLiteral(dom.innerHTML || dom.childNodes) dig = false } else if (nv === 'Resource') { frame = this.buildFrame(frame, frame.element)