Skip to content

Commit

Permalink
Merge pull request #632 from linkeddata/issue#75
Browse files Browse the repository at this point in the history
XML Literal in browser
  • Loading branch information
bourgeoa authored Apr 21, 2024
2 parents ac7c600 + 2eaee8e commit b56cd73
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 b56cd73

Please sign in to comment.