Method: HTML5::AfterBodyPhase#endTagHtml
- Defined in:
- lib/html5/html5parser/after_body_phase.rb
#endTagHtml(name) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/html5/html5parser/after_body_phase.rb', line 26 def endTagHtml(name) if @parser.inner_html parse_error "end-html-in-innerhtml" 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[:afterAfterBody] end end |