Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/linkeddata/rdflib.js into main
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgeoa committed Apr 23, 2024
2 parents 0aa77d2 + b56cd73 commit 43709c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
strategy:
matrix:
node-version:
- 14.x
- 16.x
- 18.x
steps:
Expand All @@ -31,7 +30,7 @@ jobs:
- run: npm run build:browser
- run: npm run build:esm
- name: Save build
if: matrix.node-version == '16.x'
if: matrix.node-version == '18.x'
uses: actions/upload-artifact@v2
with:
name: build
Expand Down Expand Up @@ -63,7 +62,7 @@ jobs:
name: build
- uses: actions/setup-node@v1
with:
node-version: 16.x
node-version: 18.x
- uses: rlespinasse/github-slug-action@v3.x
- name: Append commit hash to package version
run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
Expand All @@ -83,7 +82,7 @@ jobs:
name: build
- uses: actions/setup-node@v1
with:
node-version: 16.x
node-version: 18.x
- name: Disable pre- and post-publish actions
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
- uses: JS-DevTools/npm-publish@v1
Expand Down
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 43709c6

Please sign in to comment.