var Element = require('./Element')
var Window = require('./Window')

var ReactFauxDOM = {
  Element: Element,
  defaultView: Window,
  createElement: function (nodeName) {
    return new Element(nodeName)
  },
  compareDocumentPosition: function () {
    // The selector engine tries to validate with this, but we don't care.
    // 8 = DOCUMENT_POSITION_CONTAINS, so we say all nodes are in this document.
    return 8
  }
}

Element.prototype.ownerDocument = ReactFauxDOM

module.exports = ReactFauxDOM

var Element = require('./Element')
var Window = require('./Window')

var ReactFauxDOM = {
  Element: Element,
  defaultView: Window,
  createElement: function (nodeName) {
    return new Element(nodeName)
  },
  createElementNS: function (namespace, nodeName) {
    return this.createElement(nodeName)
  },
  compareDocumentPosition: function () {
    // The selector engine tries to validate with this, but we don't care.
    // 8 = DOCUMENT_POSITION_CONTAINS, so we say all nodes are in this document.
    return 8
  }
}

Element.prototype.ownerDocument = ReactFauxDOM

module.exports = ReactFauxDOM

Add createElementNS, just calls createElement
Add createElementNS, just calls createElement
