class Gammo::Parser::AfterAfterFrameset

Section 12.2.6.4.23.

Public Instance Methods

comment_token(token) click to toggle source
# File lib/gammo/parser/insertion_mode/after_after_frameset.rb, line 5
def comment_token(token)
  parser.document.append_child Node::Comment.new(data: token.data)
end
default(_) click to toggle source
# File lib/gammo/parser/insertion_mode/after_after_frameset.rb, line 26
def default(_)
  # ignore the token
  halt true
end
doctype_token(token) click to toggle source
# File lib/gammo/parser/insertion_mode/after_after_frameset.rb, line 22
def doctype_token(token)
  halt InBody.new(parser).process
end
start_tag_token(token) click to toggle source
# File lib/gammo/parser/insertion_mode/after_after_frameset.rb, line 13
def start_tag_token(token)
  case token.tag
  when Tags::Html
    halt InBody.new(parser).process
  when Tags::Noframes
    halt InHead.new(parser).process
  end
end
text_token(token) click to toggle source
# File lib/gammo/parser/insertion_mode/after_after_frameset.rb, line 9
def text_token(token)
  halt InBody.new(parser).process unless token.data.gsub(/[^\s]/, '').empty?
end