# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_select_phase.rb, line 45 def endTagOptgroup(name) # </optgroup> implicitly closes <option> if @tree.open_elements.last.name == 'option' and @tree.open_elements[-2].name == 'optgroup' @tree.open_elements.pop end # It also closes </optgroup> if @tree.open_elements.last.name == 'optgroup' @tree.open_elements.pop # But nothing else else parse_error("unexpected-end-tag-in-select", {"name" => "optgroup"}) end end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_select_phase.rb, line 37 def endTagOption(name) if @tree.open_elements.last.name == 'option' @tree.open_elements.pop else parse_error("unexpected-end-tag-in-select", {"name" => "option"}) end end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_select_phase.rb, line 80 def endTagOther(name) parse_error("unexpected-end-tag-in-select", {"name" => name}) end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_select_phase.rb, line 60 def endTagSelect(name) if in_scope?('select', true) remove_open_elements_until('select') @parser.reset_insertion_mode else # inner_html case parse_error end end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_select_phase.rb, line 71 def endTagTableElements(name) parse_error("unexpected-end-tag-in-select", {"name" => name}) if in_scope?(name, true) endTagSelect('select') @parser.phase.processEndTag(name) end end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_select_phase.rb, line 12 def processCharacters(data) @tree.insertText(data) end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_select_phase.rb, line 22 def startTagOptgroup(name, attributes) @tree.open_elements.pop if @tree.open_elements.last.name == 'option' @tree.open_elements.pop if @tree.open_elements.last.name == 'optgroup' @tree.insert_element(name, attributes) end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_select_phase.rb, line 16 def startTagOption(name, attributes) # We need to imply </option> if <option> is the current node. @tree.open_elements.pop if @tree.open_elements.last.name == 'option' @tree.insert_element(name, attributes) end
Generated with the Darkfish Rdoc Generator 2.