Class | HTML5::AfterBodyPhase |
In: |
lib/feed_tools/vendor/html5/lib/html5/html5parser/after_body_phase.rb
|
Parent: | Phase |
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/after_body_phase.rb, line 26 26: def endTagHtml(name) 27: if @parser.inner_html 28: parse_error 29: else 30: # XXX: This may need to be done, not sure 31: # Don't set last_phase to the current phase but to the inBody phase 32: # instead. No need for extra parse errors if there's something after </html>. 33: # Try "<!doctype html>X</html>X" for instance. 34: @parser.last_phase = @parser.phase 35: @parser.phase = @parser.phases[:trailingEnd] 36: end 37: end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/after_body_phase.rb, line 39 39: def endTagOther(name) 40: parse_error("unexpected-end-tag-after-body", {"name" => name}) 41: @parser.phase = @parser.phases[:inBody] 42: @parser.phase.processEndTag(name) 43: end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/after_body_phase.rb, line 14 14: def processCharacters(data) 15: parse_error("unexpected-char-after-body") 16: @parser.phase = @parser.phases[:inBody] 17: @parser.phase.processCharacters(data) 18: end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/after_body_phase.rb, line 8 8: def processComment(data) 9: # This is needed because data is to be appended to the <html> element 10: # here and not to whatever is currently open. 11: @tree.insert_comment(data, @tree.open_elements.first) 12: end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/after_body_phase.rb, line 20 20: def processStartTag(name, attributes) 21: parse_error("unexpected-start-tag-after-body", {"name" => name}) 22: @parser.phase = @parser.phases[:inBody] 23: @parser.phase.processStartTag(name, attributes) 24: end