'use strict'
require('html-element')
const parseStatic = require('../../../static')
const props = parseStatic.property
const elems = parseStatic.element

exports.static = exports.state = renderElement

function renderElement (target) {
  var node = document.createElement(target.node)
  props(target, node)
  elems(target, node)
  if (!target.isStatic) { tree._[uid] = node }
  return node
}

'use strict'
require('html-element')
const parseStatic = require('../../../static')
const props = parseStatic.property
const elems = parseStatic.element

exports.static = exports.state = renderElement

function renderElement (target, type, stamp, subs, tree, id, pnode) {
  var node = document.createElement(target.node)
  props(target, node)
  elems(target, node)
  if (!target.isStatic) { tree._[uid] = node }
  return node
}

fix in node version of render