# File lib/html5/html5parser/in_body_phase.rb, line 365
    def endTagBlock(name)
      #Put us back in the right whitespace handling mode
      @processSpaceCharactersDropNewline = false if name == 'pre'

      @tree.generateImpliedEndTags if in_scope?(name)

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

      if in_scope?(name)
        remove_open_elements_until(name)
      end
    end