Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isRaw is undefined when calling utils.appendChild #9

Open
pgoldrbx opened this issue Oct 23, 2017 · 0 comments
Open

isRaw is undefined when calling utils.appendChild #9

pgoldrbx opened this issue Oct 23, 2017 · 0 comments

Comments

@pgoldrbx
Copy link
Contributor

Original comments: #5 (comment)

Calling utils.appendChild with a raw element throws an error.

const html = require('jsonml.js/lib/html');
const utils = require('jsonml.js/lib/utils');

const jml = ['div']
const rawEl = html.raw('foo');
utils.appendChild(jml, rawEl); // TypeError: exports.isRaw is not a function

Indeed, exports.isRaw is not defined within utils.js. It is, however, defined within html.js. So, the fix should be fairly straightforward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant