Skip to content

Commit

Permalink
browser
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgeoa committed Feb 4, 2024
1 parent 6ab4f04 commit 2eaee8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rdfxmlparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2eaee8e

Please sign in to comment.