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

appendChild(document.createElement(pNodeType)) is not a function #345

Open
RudiSchloesser opened this issue May 3, 2021 · 0 comments
Open

Comments

@RudiSchloesser
Copy link

Version 2.8.2 raise the exception "appendChild is not a function" at line 4174.

 var vNewNode = pParent.appendChild(document.createElement(pNodeType));

By replacing this with:

var vNewNode = document.createElement(pNodeType);
pParent.append(vNewNode);
if (pAttribs) {
    for (var i = 0; i + 1 < pAttribs.length; i += 2) {
        vNewNode.setAttribute(pAttribs[i], pAttribs[i + 1]);
    }
}

fixes this problem and also the error, that vNewNode is "undefined".

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

No branches or pull requests

1 participant