code: function (Vue) {
    var ref = Vue.util;
    var extend = ref.extend;
  
    return {
      functional: true,
      props: {
        name: {
          type: String
        },
        tag: {
          type: String,
          default: 'form'
        }
      },
      render: function render (
        h,
        ref
      ) {
        var props = ref.props;
        var data = ref.data;
        var parent = ref.parent;
        var children = ref.children;
        var slots = ref.slots;
  
        if (!parent._validation) {
          // TODO: should be warned
          return children
        }
        var tag = props.tag || 'form';
        walkChildren(parent._validation, props.name, children);
        var newData = extend({ attrs: {}}, data);
        if (tag === 'form') {
          newData.attrs.novalidate = true;
        }
        return h(tag, newData, children)
      }
    }
  }
docs: /*