         unless descend is true
           descend = descend - 1
         nextPattern = @pattern
+        lastElementNode = undefined
         if node.childNodes?.length
           for child in node.childNodes
             switch h.getNodeType(child)

        return @pattern1
      if @pattern2 instanceof NotAllowed
        return @pattern2
      if @pattern1 instanceof Empty or @pattern1 instanceof GoodElement
        return @pattern2.check(node, descend)
      if @pattern2 instanceof Empty
        return @pattern1.check(node, descend)
      _nodelog node, "p1 group, checking pattern1 #{@pattern1} against", node, [this, @pattern1, node]
      p1 = @pattern1.check(node, descend)

      "#{@pattern}+"
    nullable: =>
      @pattern.nullable()
    require: (node) =>
      return new MissingContent("missing #{this}", this)
    _check: (node, descend) =>
      p1 = @pattern.check(node, descend)
