lib/hatemile/implementation/accessible_association_implementation.rb
##
# Set the scope of header cells of table header.
#
# @param table_header [Hatemile::Util::Html::HTMLDOMElement] The table
#   header.
# @return [void]
Set the scope of header cells of table header.
Set the scope of header cells of table header .
def prepare_header_cells(table_header)
        cells = @parser.find(table_header).find_children('tr').find_children(
          'th'
        ).list_results
        cells.each do |cell|
          next unless Hatemile::Util::CommonFunctions.is_valid_element?(cell)
          @id_generator.generate_id(cell)
          cell.set_attribute('scope', 'col')
        end
      end
def prepare_header_cells ( table_header ) cells = @parser . find ( table_header ) . find_children ( 'tr' ) . find_children ( 'th' ) . list_results cells . each do | cell | next unless Hatemile :: Util :: CommonFunctions . is_valid_element? ( cell ) @id_generator . generate_id ( cell ) cell . set_attribute ( 'scope' , 'col' ) end end
Set the scope of header cells of table header.
Set the scope of header cells of table header .
None
void
table_header
The table header.
The table header .