# File lib/html5/treebuilders/base.rb, line 302 def generateImpliedEndTags(exclude=nil) name = @open_elements[-1].name # XXX td, th and tr are not actually needed if (%w[dd dt li p td th tr].include?(name) and name != exclude) @open_elements.pop # XXX This is not entirely what the specification says. We should # investigate it more closely. generateImpliedEndTags(exclude) end end