# File lib/html5/html5parser/in_body_phase.rb, line 169 def startTagHeading(name, attributes) endTagP('p') if in_scope?('p') # Uncomment the following for IE7 behavior: # HEADING_ELEMENTS.each do |element| # if in_scope?(element) # parse_error("unexpected-start-tag", {"name" => name}) # # remove_open_elements_until do |element| # HEADING_ELEMENTS.include?(element.name) # end # # break # end # end @tree.insert_element(name, attributes) end