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

replaceChild does not fail if oldnode is null. #230

Open
akayami opened this issue Feb 4, 2018 · 0 comments
Open

replaceChild does not fail if oldnode is null. #230

akayami opened this issue Feb 4, 2018 · 0 comments

Comments

@akayami
Copy link

akayami commented Feb 4, 2018

node.replaceChild(document.createTextNode('a'), null);
node.replaceChild(document.createTextNode('a'), null);

will result in in node having two textNodes with value 'a'.

Each call should fail instead of magically appending.

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