Some tests of working new ChildNode, ParentNode methods and classList in JavaScript.
You can try if your browser supports this new things or tests your polyfills :-)
New elements much simplify DOM operations.
More information:
- https://developer.mozilla.org/pl/docs/Web/API/ChildNode
- https://developer.mozilla.org/en-US/docs/Web/API/ParentNode
- https://developer.mozilla.org/pl/docs/Web/API/Element/classList
Tests are written in Polish language with description methods.
Check this on https://warmaxis.github.io/New_ChildNode_ParentNode_methods_and_classList_JS_tests/
Created by Michał Milanowski
Tests:
- childNodes.after()
- ParentNode.append()
- childNodes.before()
- ParentNode.prepend()
- childNodes.remove()
- childNodes.replaceWith()
Tests:
- element.classList.add()
- element.classList.remove()
- element.classList.contains()
- element.classList.toggle()
- JavaScript
- ES8
- MDN docs
- HTML