# File lib/html5/html5parser/after_body_phase.rb, line 26 def endTagHtml(name) if @parser.inner_html parse_error else # XXX: This may need to be done, not sure # Don't set last_phase to the current phase but to the inBody phase # instead. No need for extra parse errors if there's something after </html>. # Try "<!doctype html>X</html>X" for instance. @parser.last_phase = @parser.phase @parser.phase = @parser.phases[:trailingEnd] end end