Parent

Class/Module Index [+]

Quicksearch

HTML5::InCellPhase

Public Instance Methods

endTagIgnore(name) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb, line 49
def endTagIgnore(name)
  parse_error("unexpected-end-tag", {"name" => name})
end
endTagImply(name) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb, line 53
def endTagImply(name)
  if in_scope?(name, true)
    closeCell
    @parser.phase.processEndTag(name)
  else
    # sometimes inner_html case
    parse_error
  end
end
endTagOther(name) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb, line 63
def endTagOther(name)
  @parser.phases[:inBody].processEndTag(name)
end
endTagTableCell(name) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb, line 32
def endTagTableCell(name)
  if in_scope?(name, true)
    @tree.generateImpliedEndTags(name)
    if @tree.open_elements.last.name != name
      parse_error("unexpected-cell-end-tag", {"name" => name})

      remove_open_elements_until(name)
    else
      @tree.open_elements.pop
    end
    @tree.clearActiveFormattingElements
    @parser.phase = @parser.phases[:inRow]
  else
    parse_error("unexpected-end-tag", {"name" => name})
  end
end
processCharacters(data) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb, line 14
def processCharacters(data)
  @parser.phases[:inBody].processCharacters(data)
end
startTagOther(name, attributes) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb, line 28
def startTagOther(name, attributes)
  @parser.phases[:inBody].processStartTag(name, attributes)
end
startTagTableOther(name, attributes) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb, line 18
def startTagTableOther(name, attributes)
  if in_scope?('td', true) or in_scope?('th', true)
    closeCell
    @parser.phase.processStartTag(name, attributes)
  else
    # inner_html case
    parse_error
  end
end

Protected Instance Methods

closeCell() click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_cell_phase.rb, line 69
def closeCell
  if in_scope?('td', true)
    endTagTableCell('td')
  elsif in_scope?('th', true)
    endTagTableCell('th')
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.