function genElement (el, state) {
    if (el.parent) {
      el.pre = el.pre || el.parent.pre;
    }