# File lib/html5/filters/optionaltags.rb, line 18
      def each
        slider do |previous, token, nexttok|
          type = token[:type]
          if type == :StartTag
            yield token unless token[:data].empty? and is_optional_start(token[:name], previous, nexttok)
          elsif type == :EndTag
            yield token unless is_optional_end(token[:name], nexttok)
          else
            yield token
          end
        end
      end