Class HTML5::InCellPhase
In: lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb
Parent: Phase

Methods

Public Instance methods

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb, line 49
49:     def endTagIgnore(name)
50:       parse_error("unexpected-end-tag", {"name" => name})
51:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb, line 53
53:     def endTagImply(name)
54:       if in_scope?(name, true)
55:         closeCell
56:         @parser.phase.processEndTag(name)
57:       else
58:         # sometimes inner_html case
59:         parse_error
60:       end
61:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb, line 63
63:     def endTagOther(name)
64:       @parser.phases[:inBody].processEndTag(name)
65:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb, line 32
32:     def endTagTableCell(name)
33:       if in_scope?(name, true)
34:         @tree.generateImpliedEndTags(name)
35:         if @tree.open_elements.last.name != name
36:           parse_error("unexpected-cell-end-tag", {"name" => name})
37: 
38:           remove_open_elements_until(name)
39:         else
40:           @tree.open_elements.pop
41:         end
42:         @tree.clearActiveFormattingElements
43:         @parser.phase = @parser.phases[:inRow]
44:       else
45:         parse_error("unexpected-end-tag", {"name" => name})
46:       end
47:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb, line 14
14:     def processCharacters(data)
15:       @parser.phases[:inBody].processCharacters(data)
16:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb, line 28
28:     def startTagOther(name, attributes)
29:       @parser.phases[:inBody].processStartTag(name, attributes)
30:     end

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb, line 18
18:     def startTagTableOther(name, attributes)
19:       if in_scope?('td', true) or in_scope?('th', true)
20:         closeCell
21:         @parser.phase.processStartTag(name, attributes)
22:       else
23:         # inner_html case
24:         parse_error
25:       end
26:     end

Protected Instance methods

[Source]

    # File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb, line 69
69:     def closeCell
70:       if in_scope?('td', true)
71:         endTagTableCell('td')
72:       elsif in_scope?('th', true)
73:         endTagTableCell('th')
74:       end
75:     end

[Validate]