Parent

Class/Module Index [+]

Quicksearch

HTML5::InTableBodyPhase

Public Instance Methods

endTagIgnore(name) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_table_body_phase.rb, line 66
def endTagIgnore(name)
  parse_error("unexpected-end-tag-in-table-body",
        {"name" => name})
end
endTagOther(name) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_table_body_phase.rb, line 71
def endTagOther(name)
  @parser.phases[:inTable].processEndTag(name)
end
endTagTable(name) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_table_body_phase.rb, line 55
def endTagTable(name)
  if in_scope?('tbody', true) or in_scope?('thead', true) or in_scope?('tfoot', true)
    clearStackToTableBodyContext
    endTagTableRowGroup(@tree.open_elements.last.name)
    @parser.phase.processEndTag(name)
  else
    # inner_html case
    parse_error
  end
end
endTagTableRowGroup(name) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_table_body_phase.rb, line 44
def endTagTableRowGroup(name)
  if in_scope?(name, true)
    clearStackToTableBodyContext
    @tree.open_elements.pop
    @parser.phase = @parser.phases[:inTable]
  else
    parse_error("unexpected-end-tag-in-table-body",
            {"name" => name})
  end
end
processCharacters(data) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_table_body_phase.rb, line 12
def processCharacters(data)
  @parser.phases[:inTable].processCharacters(data)
end
startTagOther(name, attributes) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_table_body_phase.rb, line 40
def startTagOther(name, attributes)
  @parser.phases[:inTable].processStartTag(name, attributes)
end
startTagTableCell(name, attributes) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_table_body_phase.rb, line 22
def startTagTableCell(name, attributes)
  parse_error("unexpected-cell-in-table-body", {"name" => name})
  startTagTr('tr', {})
  @parser.phase.processStartTag(name, attributes)
end
startTagTableOther(name, attributes) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_table_body_phase.rb, line 28
def startTagTableOther(name, attributes)
  # XXX AT Any ideas on how to share this with endTagTable?
  if in_scope?('tbody', true) or in_scope?('thead', true) or in_scope?('tfoot', true)
    clearStackToTableBodyContext
    endTagTableRowGroup(@tree.open_elements.last.name)
    @parser.phase.processStartTag(name, attributes)
  else
    # inner_html case
    parse_error
  end
end
startTagTr(name, attributes) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_table_body_phase.rb, line 16
def startTagTr(name, attributes)
  clearStackToTableBodyContext
  @tree.insert_element(name, attributes)
  @parser.phase = @parser.phases[:inRow]
end

Protected Instance Methods

clearStackToTableBodyContext() click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_table_body_phase.rb, line 77
def clearStackToTableBodyContext
  until ]tbody tfoot thead html].include?(name = @tree.open_elements.last.name)
    parse_error("unexpected-implied-end-tag-in-table",
            {"name" => @tree.open_elements.last.name})
    @tree.open_elements.pop
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.