lib/druid/elements/table_row.rb in druid-ts-1.1.4 vs lib/druid/elements/table_row.rb in druid-ts-1.1.5
- old
+ new
@@ -27,9 +27,10 @@
private
def find_index_by_title(title)
table = element.parent
+ table = table.parent if table.tag_name == 'tbody'
first_row = table[0]
first_row.cells.find_index { |column| column.text.include? title}
end
end