Class: HTML5::AfterHeadPhase
- Inherits:
-
Phase
- Object
- Phase
- HTML5::AfterHeadPhase
show all
- Defined in:
- lib/html5/html5parser/after_head_phase.rb
Instance Method Summary
collapse
Methods inherited from Phase
#adjust_foreign_attributes, #adjust_mathml_attributes, #assert, end_tag_handlers, handle_end, handle_start, #in_scope?, #initialize, #processComment, #processDoctype, #processEndTag, #processSpaceCharacters, #processStartTag, #remove_open_elements_until, #startTagHtml, start_tag_handlers, tag_handlers
Constructor Details
This class inherits a constructor from HTML5::Phase
Instance Method Details
#anything_else ⇒ Object
49
50
51
52
|
# File 'lib/html5/html5parser/after_head_phase.rb', line 49
def anything_else
@tree.insert_element('body', {})
@parser.phase = @parser.phases[:inBody]
end
|
#endTagBodyHtmlBr(name) ⇒ Object
40
41
42
43
|
# File 'lib/html5/html5parser/after_head_phase.rb', line 40
def endTagBodyHtmlBr(name)
anything_else
@parser.phase.processEndTag(name)
end
|
#endTagOther(name) ⇒ Object
45
46
47
|
# File 'lib/html5/html5parser/after_head_phase.rb', line 45
def endTagOther(name)
parse_error("unexpected-end-tag", {"name" => name})
end
|
#process_eof ⇒ Object
9
10
11
12
|
# File 'lib/html5/html5parser/after_head_phase.rb', line 9
def process_eof
anything_else
@parser.phase.process_eof
end
|
#processCharacters(data) ⇒ Object
14
15
16
17
|
# File 'lib/html5/html5parser/after_head_phase.rb', line 14
def processCharacters(data)
anything_else
@parser.phase.processCharacters(data)
end
|
#startTagBody(name, attributes) ⇒ Object
19
20
21
22
|
# File 'lib/html5/html5parser/after_head_phase.rb', line 19
def startTagBody(name, attributes)
@tree.insert_element(name, attributes)
@parser.phase = @parser.phases[:inBody]
end
|
#startTagFrameset(name, attributes) ⇒ Object
24
25
26
27
|
# File 'lib/html5/html5parser/after_head_phase.rb', line 24
def startTagFrameset(name, attributes)
@tree.insert_element(name, attributes)
@parser.phase = @parser.phases[:inFrameset]
end
|
#startTagFromHead(name, attributes) ⇒ Object
29
30
31
32
33
|
# File 'lib/html5/html5parser/after_head_phase.rb', line 29
def startTagFromHead(name, attributes)
parse_error("unexpected-start-tag-out-of-my-head", {"name" => name})
@parser.phase = @parser.phases[:inHead]
@parser.phase.processStartTag(name, attributes)
end
|
#startTagOther(name, attributes) ⇒ Object
35
36
37
38
|
# File 'lib/html5/html5parser/after_head_phase.rb', line 35
def startTagOther(name, attributes)
anything_else
@parser.phase.processStartTag(name, attributes)
end
|