Skip to content

Commit

Permalink
Merge pull request #86 from jacobxperez/develop
Browse files Browse the repository at this point in the history
Fix template parser
  • Loading branch information
jacobxperez authored May 21, 2024
2 parents 7a71d6a + dc333d7 commit 3f9b95b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/index.880915d0.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/js/rams/core/components/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export const template = {
parser(string, mimeType = 'text/html') {
// The string to be parsed. It must contain either an HTML, xml, XHTML, or svg document.
const parser = new DOMParser();
return (parsedSource = parser.parseFromString(string, mimeType));
const parsedSource = parser.parseFromString(string, mimeType);
return parsedSource;
},
create(html, id) {
const template = document.createElement('template');
Expand Down

0 comments on commit 3f9b95b

Please sign in to comment.