'use strict';

const wrapNode = require('./lib/node');

/**
 * Import given node into `the-dom`
 *
 * @param {Node} node Node to import
 * @return {Object} Wrapped node
 */
exports.import = (node) => wrapNode(node);

/**
 * Import an HTML document into `the-dom`
 *
 * @param {HTMLDocument} doc Document to import
 * @return {Object} A hash with doctype, body, head, html props
 */
exports.html = (node) => ({
    body: wrapNode(node.body),
    head: wrapNode(node.head),
    html: wrapNode(node.documentElement),
    doctype: wrapNode(node.doctype)
});

@@ -394,20 +394,62 @@
 l = 
-(node) =%3E (%7B
+doc =%3E (%7B%0A    create: name =%3E doc.createElement(name),
 %0A   
@@ -464,20 +464,19 @@
 rapNode(
-node
+doc
 .body),%0A
@@ -494,20 +494,19 @@
 rapNode(
-node
+doc
 .head),%0A
@@ -520,28 +520,27 @@
 l: wrapNode(
-node
+doc
 .documentEle
@@ -568,20 +568,19 @@
 rapNode(
-node
+doc
 .doctype

Add `create` method