# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_caption_phase.rb, line 32 def endTagCaption(name) if ignoreEndTagCaption # inner_html case assert @parser.inner_html parse_error "unexpected-end-tag", {"name" => name} else # AT this code is quite similar to endTagTable in "InTable" @tree.generateImpliedEndTags unless @tree.open_elements[-1].name == 'caption' parse_error("expected-one-end-tag-but-got-another", {"gotName" => "caption", "expectedName" => @tree.open_elements.last.name}) end remove_open_elements_until('caption') @tree.clearActiveFormattingElements @parser.phase = @parser.phases[:inTable] end end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_caption_phase.rb, line 61 def endTagIgnore(name) parse_error("unexpected-end-tag", {"name" => name}) end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_caption_phase.rb, line 65 def endTagOther(name) @parser.phases[:inBody].processEndTag(name) end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_caption_phase.rb, line 54 def endTagTable(name) parse_error "unexpected-end-table-in-caption" ignoreEndTag = ignoreEndTagCaption @parser.phase.processEndTag('caption') @parser.phase.processEndTag(name) unless ignoreEndTag end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_caption_phase.rb, line 12 def ignoreEndTagCaption !in_scope?('caption', true) end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_caption_phase.rb, line 16 def processCharacters(data) @parser.phases[:inBody].processCharacters(data) end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_caption_phase.rb, line 28 def startTagOther(name, attributes) @parser.phases[:inBody].processStartTag(name, attributes) end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_caption_phase.rb, line 20 def startTagTableElement(name, attributes) parse_error "unexpected-end-tag", {"name" => name} #XXX Have to duplicate logic here to find out if the tag is ignored ignoreEndTag = ignoreEndTagCaption @parser.phase.processEndTag('caption') @parser.phase.processStartTag(name, attributes) unless ignoreEndTag end
Generated with the Darkfish Rdoc Generator 2.