We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to add text node using HTML.js?
HTML.body.add(document.createTextNode('foo')) HTML.js:207 Uncaught TypeError: Cannot use 'in' operator to search for 'length' in undefined
The text was updated successfully, but these errors were encountered:
HTML.body.appendChild(document.createTextNode('foo'));
or for lists:
HTML.query('.example').each('appendChild', document.createTextNode('foo'));
That said, i think it'd be better if add() supported non-element nodes. So, leave this open please. I'll fix it as soon as i get a chance. :)
add()
Sorry, something went wrong.
I would definetely like this feature, because I need something like this:
HTML.body.add([document.createTextNode('foo'), document.createTextNode('bar')]
Ah, multiple text nodes! Yeah, definitely need to add support for that. :)
814a03b
No branches or pull requests
Is it possible to add text node using HTML.js?
The text was updated successfully, but these errors were encountered: