code: function isInStub(dom) {
    while (dom) {
      if (dom.inStub) return true
      dom = dom.parentNode
    }
    return false
  }
docs: Check whether a DOM node is in stub mode, useful for the riot 'if' directive
  @param   { Object }  dom - DOM node we want to parse
  @returns { Boolean } -