Class: Gammo::Parser::AfterFrameset
Overview
Instance Attribute Summary
#parser
Instance Method Summary
collapse
#initialize, #process
Instance Method Details
#character_token(token) ⇒ Object
11
12
13
14
|
# File 'lib/gammo/parser/insertion_mode/after_frameset.rb', line 11
def character_token(token)
s = token.data.gsub(/[^\s]/, '')
parser.add_text(s) unless s.empty?
end
|
7
8
9
|
# File 'lib/gammo/parser/insertion_mode/after_frameset.rb', line 7
def (token)
parser.add_child Node::Comment.new(data: token.data)
end
|
#default(_) ⇒ Object
33
34
35
36
|
# File 'lib/gammo/parser/insertion_mode/after_frameset.rb', line 33
def default(_)
halt true
end
|
#end_tag_token(token) ⇒ Object
25
26
27
28
29
30
31
|
# 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) ⇒ Object