x.y.
z.These tests are about manipulating the nodes in your document.
I advise you to reload this page between tests; executing some tests may preclude others from working.
x.appendChild(y)
x.appendChild(z)
y.appendChild(z)
var test = y.cloneNode(true);
test.appendChild(document.createTextNode(' (cloned node)'));
x.appendChild(test);
var test = y.cloneNode(false);
test.appendChild(document.createTextNode(' (cloned node)'));
x.appendChild(test);
y.insertBefore(x,z);
y.removeChild(z);
y.replaceChild(x,z);