Phase
# File lib/feed_tools/vendor/html5/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
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/after_body_phase.rb, line 39 def endTagOther(name) parse_error("unexpected-end-tag-after-body", {"name" => name}) @parser.phase = @parser.phases[:inBody] @parser.phase.processEndTag(name) end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/after_body_phase.rb, line 14 def processCharacters(data) parse_error("unexpected-char-after-body") @parser.phase = @parser.phases[:inBody] @parser.phase.processCharacters(data) end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/after_body_phase.rb, line 8 def processComment(data) # This is needed because data is to be appended to the <html> element # here and not to whatever is currently open. @tree.insert_comment(data, @tree.open_elements.first) end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/after_body_phase.rb, line 20 def processStartTag(name, attributes) parse_error("unexpected-start-tag-after-body", {"name" => name}) @parser.phase = @parser.phases[:inBody] @parser.phase.processStartTag(name, attributes) end
Generated with the Darkfish Rdoc Generator 2.