Class HTML5::RootElementPhase
In: lib/feed_tools/vendor/html5/lib/html5/html5parser/root_element_phase.rb
Parent: Phase

Methods

Public Instance methods

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/root_element_phase.rb, line 34
34:     def insert_html_element
35:       element = @tree.createElement('html', {})
36:       @tree.open_elements << element
37:       @tree.document.appendChild(element)
38:       @parser.phase = @parser.phases[:beforeHead]
39:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/root_element_phase.rb, line 18
18:     def processCharacters(data)
19:       insert_html_element
20:       @parser.phase.processCharacters(data)
21:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/root_element_phase.rb, line 11
11:     def processComment(data)
12:       @tree.insert_comment(data, @tree.document)
13:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/root_element_phase.rb, line 29
29:     def processEndTag(name)
30:       insert_html_element
31:       @parser.phase.processEndTag(name)
32:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/root_element_phase.rb, line 15
15:     def processSpaceCharacters(data)
16:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/root_element_phase.rb, line 23
23:     def processStartTag(name, attributes)
24:       @parser.first_start_tag = true if name == 'html'
25:       insert_html_element
26:       @parser.phase.processStartTag(name, attributes)
27:     end

[Source]

   # File lib/feed_tools/vendor/html5/lib/html5/html5parser/root_element_phase.rb, line 6
6:     def process_eof
7:       insert_html_element
8:       @parser.phase.process_eof
9:     end

[Validate]