# File lib/html5/html5parser/in_body_phase.rb, line 392
    def endTagListItem(name)
      # AT Could merge this with the Block case
      @tree.generateImpliedEndTags(name) if in_scope?(name)

      unless @tree.open_elements.last.name == name
        parse_error("end-tag-too-early", {"name" => name})
      end

      remove_open_elements_until(name) if in_scope?(name)
    end