lib/hatemile/implementation/accessible_navigation_implementation.rb
##
# Generate the list of skippers of page.
#
# @return [Hatemile::Util::Html::HTMLDOMElement] The list of skippers of
#   page.
Generate the list of skippers of page.
Generate the list of skippers of page .
def generate_list_skippers
        container = @parser.find("##{ID_CONTAINER_SKIPPERS}").first_result
        html_list = nil
        if container.nil?
          local = @parser.find('body').first_result
          unless local.nil?
            container = @parser.create_element('div')
            container.set_attribute('id', ID_CONTAINER_SKIPPERS)
            local.prepend_element(container)
          end
        end
        unless container.nil?
          html_list = @parser.find(container).find_children('ul').first_result
          if html_list.nil?
            html_list = @parser.create_element('ul')
            container.append_element(html_list)
          end
        end
        @list_skippers_added = true
        html_list
      end
def generate_list_skippers container = @parser . find ( "##{ID_CONTAINER_SKIPPERS}" ) . first_result html_list = nil if container . nil? local = @parser . find ( 'body' ) . first_result unless local . nil? container = @parser . create_element ( 'div' ) container . set_attribute ( 'id' , ID_CONTAINER_SKIPPERS ) local . prepend_element ( container ) end end unless container . nil? html_list = @parser . find ( container ) . find_children ( 'ul' ) . first_result if html_list . nil? html_list = @parser . create_element ( 'ul' ) container . append_element ( html_list ) end end @list_skippers_added = true html_list end
Generate the list of skippers of page.
Generate the list of skippers of page .
The list of skippers of page.
The list of skippers of page .
Hatemile::Util::Html::HTMLDOMElement