Class HTML5::InCellPhase
In: lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb
Parent: Phase
Phase XmlElementPhase InTablePhase RootElementPhase InHeadPhase AfterHeadPhase AfterFramesetPhase XmlRootPhase InitialPhase InTableBodyPhase InFramesetPhase InColumnGroupPhase InCaptionPhase TrailingEndPhase InSelectPhase BeforeHeadPhase InCellPhase InBodyPhase AfterBodyPhase InRowPhase Exception SerializeError EOF AssertionError ParseError HTMLSanitizer HTMLTokenizer XhmlRootPhase XMLParser XHTMLParser HTMLParser String EncodingBytes HTMLSerializer XHTMLSerializer TreeWalkers::Base NonRecursiveTreeWalker TreeWalker TreeWalker Base TreeWalker Element DocumentFragment Node CommentNode DocumentType TextNode Document Base::Node Node Node Base::TreeBuilder TreeBuilder TreeBuilder TreeBuilder Element DocumentFragment CommentNode DocumentType TextNode Document Element DocumentFragment CommentNode DocumentType TextNode Document Enumerable TestData Base OptionalTagFilter InjectMetaCharset WhitespaceFilter HTMLSanitizeFilter HTMLSanitizeModule SimpleDelegator HTMLInputStream EncodingParser ContentAttrParser Node TreeBuilder lib/feed_tools/vendor/html5/lib/html5/html5parser/trailing_end_phase.rb lib/feed_tools/vendor/html5/lib/html5/constants.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/after_frameset_phase.rb lib/feed_tools/vendor/html5/lib/html5/liberalxmlparser.rb lib/feed_tools/vendor/html5/lib/html5/serializer/xhtmlserializer.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/in_caption_phase.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/in_table_body_phase.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/initial_phase.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/root_element_phase.rb lib/feed_tools/vendor/html5/lib/html5/serializer/htmlserializer.rb lib/feed_tools/vendor/html5/lib/html5/tokenizer.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/before_head_phase.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/in_select_phase.rb lib/feed_tools/vendor/html5/lib/html5/inputstream.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/in_table_phase.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/in_row_phase.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/phase.rb lib/feed_tools/vendor/html5/lib/html5/html5parser.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/in_body_phase.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/in_head_phase.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/after_body_phase.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/after_head_phase.rb lib/feed_tools/vendor/html5/lib/html5/sanitizer.rb lib/feed_tools/vendor/html5/lib/html5/html5parser/in_column_group_phase.rb lib/feed_tools/vendor/html5/lib/html5/treewalkers/base.rb lib/feed_tools/vendor/html5/lib/html5/treewalkers/hpricot.rb Hpricot TokenConstructor lib/feed_tools/vendor/html5/lib/html5/treewalkers/rexml.rb REXML lib/feed_tools/vendor/html5/lib/html5/treewalkers/simpletree.rb SimpleTree TreeWalkers HTMLSanitizeModule lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb Hpricot lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb REXML lib/feed_tools/vendor/html5/lib/html5/treebuilders/base.rb Base lib/feed_tools/vendor/html5/lib/html5/treebuilders/simpletree.rb SimpleTree TreeBuilders lib/feed_tools/vendor/html5/tests/preamble.rb TestSupport Sniffer lib/feed_tools/vendor/html5/lib/html5/filters/whitespace.rb lib/feed_tools/vendor/html5/lib/html5/filters/optionaltags.rb lib/feed_tools/vendor/html5/lib/html5/filters/base.rb lib/feed_tools/vendor/html5/lib/html5/filters/inject_meta_charset.rb lib/feed_tools/vendor/html5/lib/html5/filters/sanitizer.rb Filters HTML5 dot/m_66_0.png

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]