class Gammo::Parser::AfterFrameset

Section 12.2.6.4.21.

Public Instance Methods

comment_token(token) click to toggle source
# File lib/gammo/parser/insertion_mode/after_frameset.rb, line 7
def comment_token(token)
  parser.add_child Node::Comment.new(data: token.data)
end
default(_) click to toggle source
# File lib/gammo/parser/insertion_mode/after_frameset.rb, line 33
def default(_)
  # ignore the token
  halt true
end
end_tag_token(token) click to toggle source
# File lib/gammo/parser/insertion_mode/after_frameset.rb, line 25
def end_tag_token(token)
  case token.tag
  when Tags::Html
    parser.insertion_mode = AfterAfterFrameset
    halt true
  end
end
start_tag_token(token) click to toggle source
# File lib/gammo/parser/insertion_mode/after_frameset.rb, line 16
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_frameset.rb, line 11
def text_token(token)
  s = token.data.gsub(/[^\s]/, '')
  parser.add_text(s) unless s.empty?
end