'use strict';

function createTextNode(text) {
    return document.createTextNode(text);
}
function createComment(text) {
    return document.createComment(text);
}
function insertBefore(parentNode, newNode, referenceNode) {
    parentNode.insertBefore(newNode, referenceNode);
}
function removeChild(node, child) {
    node.removeChild(child);
}
function appendChild(node, child) {
    node.appendChild(child);
}
function parentNode(node) {
    return node.parentNode;
}
function nextSibling(node) {
    return node.nextSibling;
}
function tagName(elm) {
    return elm.tagName;
}
function setTextContent(node, text) {
    node.textContent = text;
}
function getTextContent(node) {
    return node.textContent;
}
function isElement(node) {
    return node.nodeType === 1;
}
function isText(node) {
    return node.nodeType === 3;
}
function isComment(node) {
    return node.nodeType === 8;
}

exports.appendChild = appendChild;
exports.createComment = createComment;
exports.createTextNode = createTextNode;
exports.getTextContent = getTextContent;
exports.insertBefore = insertBefore;
exports.isComment = isComment;
exports.isElement = isElement;
exports.isText = isText;
exports.nextSibling = nextSibling;
exports.parentNode = parentNode;
exports.removeChild = removeChild;
exports.setTextContent = setTextContent;
exports.tagName = tagName;
