Class HTML5::InFramesetPhase
In: lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb
Parent: Phase

Methods

Public Instance methods

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 34
34:     def endTagFrameset(name)
35:       if @tree.open_elements.last.name == 'html'
36:         # inner_html case
37:         parse_error("unexpected-frameset-in-frameset-innerhtml")
38:       else
39:         @tree.open_elements.pop
40:       end
41:       if (not @parser.inner_html and
42:         @tree.open_elements.last.name != 'frameset')
43:         # If we're not in inner_html mode and the the current node is not a
44:         # "frameset" element (anymore) then switch.
45:         @parser.phase = @parser.phases[:afterFrameset]
46:       end
47:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 49
49:     def endTagNoframes(name)
50:       @parser.phases[:inBody].processEndTag(name)
51:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 53
53:     def endTagOther(name)
54:       parse_error("unexpected-end-tag-in-frameset", {"name" => name})
55:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 12
12:     def processCharacters(data)
13:       parse_error("unexpected-char-in-frameset")
14:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 20
20:     def startTagFrame(name, attributes)
21:       @tree.insert_element(name, attributes)
22:       @tree.open_elements.pop
23:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 16
16:     def startTagFrameset(name, attributes)
17:       @tree.insert_element(name, attributes)
18:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 25
25:     def startTagNoframes(name, attributes)
26:       @parser.phases[:inBody].processStartTag(name, attributes)
27:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 29
29:     def startTagOther(name, attributes)
30:       parse_error("unexpected-start-tag-in-frameset",
31:             {"name" => name})
32:     end

[Validate]